{"action":"created","issue":{"url":"https://api.github.com/repos/infil00p/cordova-crosswalk-engine/issues/65","repository_url":"https://api.github.com/repos/infil00p/cordova-crosswalk-engine","labels_url":"https://api.github.com/repos/infil00p/cordova-crosswalk-engine/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/infil00p/cordova-crosswalk-engine/issues/65/comments","events_url":"https://api.github.com/repos/infil00p/cordova-crosswalk-engine/issues/65/events","html_url":"https://github.com/infil00p/cordova-crosswalk-engine/issues/65","id":187762640,"number":65,"title":"OneSignal doesnt work when using crosswalk??","user":{"login":"thebasix","id":5365000,"avatar_url":"https://avatars.githubusercontent.com/u/5365000?v=3","gravatar_id":"","url":"https://api.github.com/users/thebasix","html_url":"https://github.com/thebasix","followers_url":"https://api.github.com/users/thebasix/followers","following_url":"https://api.github.com/users/thebasix/following{/other_user}","gists_url":"https://api.github.com/users/thebasix/gists{/gist_id}","starred_url":"https://api.github.com/users/thebasix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebasix/subscriptions","organizations_url":"https://api.github.com/users/thebasix/orgs","repos_url":"https://api.github.com/users/thebasix/repos","events_url":"https://api.github.com/users/thebasix/events{/privacy}","received_events_url":"https://api.github.com/users/thebasix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-07T16:43:20Z","updated_at":"2016-11-08T22:34:05Z","closed_at":null,"body":"So I have this code in my app.component.ts\r\n\r\n```\r\nconstructor(platform: Platform,\r\n              public authservice: AuthService,\r\n              public menu: MenuController,\r\n              public events: Events,\r\n              public user: UserData ) {\r\n    platform.ready().then(() => {\r\n\r\n      OneSignal.startInit('hidden', 'hidden');\r\n      OneSignal.inFocusDisplaying(OneSignal.OSInFocusDisplayOption.InAppAlert);\r\n      OneSignal.handleNotificationReceived().subscribe((data) => {\r\n        data.payload.rawPayload = JSON.parse(data.payload.rawPayload);\r\n        this.user.sendNotificationToServer(data);\r\n      });\r\n      OneSignal.handleNotificationOpened().subscribe((data) => {\r\n        data.payload.rawPayload = JSON.parse(data.payload.rawPayload);\r\n        console.log(data);\r\n      });\r\n      OneSignal.endInit();\r\n\r\n      // Okay, so the platform is ready and our plugins are available.\r\n      // Here you can do any higher level native things you might need.\r\n      StatusBar.styleDefault();\r\n      Splashscreen.hide();\r\n    });\r\n  }\r\n```\r\n\r\nand this worked, but when I installed crosswalk, functions \"handleNotificationReceived\" or \"handleNotificationOpened\" dont get called at all.\r\n\r\nI receive push notificaiton in my status bar, but this code is not executed.\r\n\r\nI also get this warning in Console\r\n`Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.`\r\n\r\nSo I ran `ionic state reset` but still nothing.\r\n\r\nAny idea why is this happening?"},"comment":{"url":"https://api.github.com/repos/infil00p/cordova-crosswalk-engine/issues/comments/259281035","html_url":"https://github.com/infil00p/cordova-crosswalk-engine/issues/65#issuecomment-259281035","issue_url":"https://api.github.com/repos/infil00p/cordova-crosswalk-engine/issues/65","id":259281035,"user":{"login":"thebasix","id":5365000,"avatar_url":"https://avatars.githubusercontent.com/u/5365000?v=3","gravatar_id":"","url":"https://api.github.com/users/thebasix","html_url":"https://github.com/thebasix","followers_url":"https://api.github.com/users/thebasix/followers","following_url":"https://api.github.com/users/thebasix/following{/other_user}","gists_url":"https://api.github.com/users/thebasix/gists{/gist_id}","starred_url":"https://api.github.com/users/thebasix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebasix/subscriptions","organizations_url":"https://api.github.com/users/thebasix/orgs","repos_url":"https://api.github.com/users/thebasix/repos","events_url":"https://api.github.com/users/thebasix/events{/privacy}","received_events_url":"https://api.github.com/users/thebasix/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T22:34:05Z","updated_at":"2016-11-08T22:34:05Z","body":"You can refer here for more details, but the conclusion is that OneSignal and Crosswalk dont work together when use in Ionic 2 and TS.\r\n\r\nhttps://forum.ionicframework.com/t/onesignal-doesnt-work-when-using-crosswalk/69440"}}
{"actor":{"display_login":"thebasix"}}