{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-native/issues/851","repository_url":"https://api.github.com/repos/driftyco/ionic-native","labels_url":"https://api.github.com/repos/driftyco/ionic-native/issues/851/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-native/issues/851/comments","events_url":"https://api.github.com/repos/driftyco/ionic-native/issues/851/events","html_url":"https://github.com/driftyco/ionic-native/issues/851","id":193750209,"number":851,"title":"2.2.10 broke Device plugin (and probably other plugins?)","user":{"login":"biesbjerg","id":230182,"avatar_url":"https://avatars.githubusercontent.com/u/230182?v=3","gravatar_id":"","url":"https://api.github.com/users/biesbjerg","html_url":"https://github.com/biesbjerg","followers_url":"https://api.github.com/users/biesbjerg/followers","following_url":"https://api.github.com/users/biesbjerg/following{/other_user}","gists_url":"https://api.github.com/users/biesbjerg/gists{/gist_id}","starred_url":"https://api.github.com/users/biesbjerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biesbjerg/subscriptions","organizations_url":"https://api.github.com/users/biesbjerg/orgs","repos_url":"https://api.github.com/users/biesbjerg/repos","events_url":"https://api.github.com/users/biesbjerg/events{/privacy}","received_events_url":"https://api.github.com/users/biesbjerg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ihadeed","id":13794420,"avatar_url":"https://avatars.githubusercontent.com/u/13794420?v=3","gravatar_id":"","url":"https://api.github.com/users/ihadeed","html_url":"https://github.com/ihadeed","followers_url":"https://api.github.com/users/ihadeed/followers","following_url":"https://api.github.com/users/ihadeed/following{/other_user}","gists_url":"https://api.github.com/users/ihadeed/gists{/gist_id}","starred_url":"https://api.github.com/users/ihadeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihadeed/subscriptions","organizations_url":"https://api.github.com/users/ihadeed/orgs","repos_url":"https://api.github.com/users/ihadeed/repos","events_url":"https://api.github.com/users/ihadeed/events{/privacy}","received_events_url":"https://api.github.com/users/ihadeed/received_events","type":"User","site_admin":false},"assignees":[{"login":"ihadeed","id":13794420,"avatar_url":"https://avatars.githubusercontent.com/u/13794420?v=3","gravatar_id":"","url":"https://api.github.com/users/ihadeed","html_url":"https://github.com/ihadeed","followers_url":"https://api.github.com/users/ihadeed/followers","following_url":"https://api.github.com/users/ihadeed/following{/other_user}","gists_url":"https://api.github.com/users/ihadeed/gists{/gist_id}","starred_url":"https://api.github.com/users/ihadeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihadeed/subscriptions","organizations_url":"https://api.github.com/users/ihadeed/orgs","repos_url":"https://api.github.com/users/ihadeed/repos","events_url":"https://api.github.com/users/ihadeed/events{/privacy}","received_events_url":"https://api.github.com/users/ihadeed/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2016-12-06T11:37:04Z","updated_at":"2016-12-06T14:47:06Z","closed_at":"2016-12-06T12:33:40Z","body":"After updating to 2.2.10, when accessing `Device` plugin, it is undefined.\r\n\r\nI'm calling it when platform is ready. Other plugins I'm using seems to work (`AppVersion`, `SocialSharing`)\r\n\r\nSnippets from my code;\r\n\r\n```\r\nimport { GoogleAnalytics, Device, AppVersion, SocialSharing } from 'ionic-native';\r\n\r\n... \r\n\r\n\tpublic onSupport(): void {\r\n\t\tthis._platform.ready().then(() => {\r\n\t\t\tSocialSharing.canShareViaEmail()\r\n\t\t\t\t.then(() => {\r\n\t\t\t\t\tconst subject = this._getLocalizedSubject();\r\n\t\t\t\t\tconst body =\r\n\t\t\t\t\t\tthis._getLocalizedBody() +\r\n\t\t\t\t\t\t`\\n\\n\\n\\n\\n` +\r\n\t\t\t\t\t\t`------------------------------\\n` +\r\n\t\t\t\t\t\t`**INFO**\\n` +\r\n\t\t\t\t\t\tthis._getDebugInfo()\r\n\r\n\t\t\t\t\treturn SocialSharing.shareViaEmail(body, subject, [config.supportEmail]);\r\n\t\t\t\t})\r\n\t\t\t\t.catch(err => {\r\n\t\t\t\t\tconst alert = this._alertController.create({\r\n\t\t\t\t\t\ttitle: this._translateService.instant('Error occurred'),\r\n\t\t\t\t\t\tmessage: JSON.stringify(err),\r\n\t\t\t\t\t\tbuttons: [\r\n\t\t\t\t\t\t\tthis._translateService.instant('OK')\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t});\r\n\t\t\t\t\talert.present(alert);\r\n\t\t\t\t});\r\n\t\t});\r\n\t}\r\n```\r\n\r\nAfter downgrading to 2.2.9, `Device` works again."},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-native/issues/comments/265167746","html_url":"https://github.com/driftyco/ionic-native/issues/851#issuecomment-265167746","issue_url":"https://api.github.com/repos/driftyco/ionic-native/issues/851","id":265167746,"user":{"login":"ihadeed","id":13794420,"avatar_url":"https://avatars.githubusercontent.com/u/13794420?v=3","gravatar_id":"","url":"https://api.github.com/users/ihadeed","html_url":"https://github.com/ihadeed","followers_url":"https://api.github.com/users/ihadeed/followers","following_url":"https://api.github.com/users/ihadeed/following{/other_user}","gists_url":"https://api.github.com/users/ihadeed/gists{/gist_id}","starred_url":"https://api.github.com/users/ihadeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihadeed/subscriptions","organizations_url":"https://api.github.com/users/ihadeed/orgs","repos_url":"https://api.github.com/users/ihadeed/repos","events_url":"https://api.github.com/users/ihadeed/events{/privacy}","received_events_url":"https://api.github.com/users/ihadeed/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T14:47:06Z","updated_at":"2016-12-06T14:47:06Z","body":"@samarthagarwal \r\n![image](https://cloud.githubusercontent.com/assets/13794420/20929679/db44c092-bb98-11e6-841c-f2c717af9aed.png)\r\n\r\n\r\n"}}
{"actor":{"display_login":"ihadeed"}}