-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Onesignal interfacing seems to be obsolete with Ionic 2 #667
Comments
I've done some digging the one signal API has been significantly changed, and the current bindings in Ionic native are obsolete, the must be fixed! |
This is the link to the git diff of the current and old one |
Are you waiting for deviceready to fire? On Oct 10, 2016 10:26 AM, "Anagani Sai Kiran" notifications@github.com
|
@ihadeed Yes, I am, it worked untill i updated the plugin to a newer version. Like I mentioned earlier its seems like an obsolete integration, with one signal api, the way the api must be intialised has changed in one signal, correct me if I am worng thank you! |
Another data point for adding a version flag to plugins. |
* feat(mixpanel): make MixpanelPeople return promises * remove decorator from people property * add cordova decorator' * test(mixpanel): add mixpanel tests * test(mixpanel): remove unused imports * fix(mixpanel): fix MixpanelPeople class closes #667
The current initialisation is failing with onesignal API,
OneSignal.init('somekey', { googleProjectNumber: 'somenumber', autoRegister: true }) .subscribe();
It fails with a promise(failure) presenting an error as unable to call apply on undefined in zone.js .
I dint dig into the code much yet but I think there is some change in the one signal API, and it must be reflected in ionic native bindings to it
tested it both on beta 11 and RC of ionic both of them fail.
as a temporary workaround pulling the older commit from onesignal repo works
https://github.com/OneSignal/OneSignal-Cordova-SDK.git#ac8e1e558a425fa79695cec7482e36b05214faab
The text was updated successfully, but these errors were encountered: