{"action":"closed","issue":{"url":"https://api.github.com/repos/kaltura/player-sdk-native-ios/issues/29","labels_url":"https://api.github.com/repos/kaltura/player-sdk-native-ios/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/kaltura/player-sdk-native-ios/issues/29/comments","events_url":"https://api.github.com/repos/kaltura/player-sdk-native-ios/issues/29/events","html_url":"https://github.com/kaltura/player-sdk-native-ios/issues/29","id":69185027,"number":29,"title":"DeviceParamsHandler overwrites NSUserDefaults","user":{"login":"tbrannam","id":78813,"avatar_url":"https://avatars.githubusercontent.com/u/78813?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrannam","html_url":"https://github.com/tbrannam","followers_url":"https://api.github.com/users/tbrannam/followers","following_url":"https://api.github.com/users/tbrannam/following{/other_user}","gists_url":"https://api.github.com/users/tbrannam/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrannam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrannam/subscriptions","organizations_url":"https://api.github.com/users/tbrannam/orgs","repos_url":"https://api.github.com/users/tbrannam/repos","events_url":"https://api.github.com/users/tbrannam/events{/privacy}","received_events_url":"https://api.github.com/users/tbrannam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T17:47:44Z","updated_at":"2015-04-17T18:25:55Z","closed_at":"2015-04-17T18:25:55Z","body":"Libraries and frameworks should not override the application's defaults.\r\n\r\nDeviceParamsHandler.m is trying to override the UserAgent string (to later be read by Cordova?) \r\n\r\ncalling registerDefaults will override any default that the application may have registered,\r\n`[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];`\r\n\r\nit would be more appropriate to call\r\n`[[NSUserDefaults standardUserDefaults] setObject: finalUA forKey:@\"UserAgent\"];`\r\n\r\nwhich would only override the single property"}}