Skip to content
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

Closed
anaganisk opened this issue Oct 10, 2016 · 5 comments · Fixed by #671
Closed

Onesignal interfacing seems to be obsolete with Ionic 2 #667

anaganisk opened this issue Oct 10, 2016 · 5 comments · Fixed by #671
Assignees

Comments

@anaganisk
Copy link

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

@anaganisk
Copy link
Author

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!

@anaganisk
Copy link
Author

This is the link to the git diff of the current and old one
OneSignal/OneSignal-Cordova-SDK@ac8e1e5...master

@ihadeed
Copy link
Collaborator

ihadeed commented Oct 10, 2016

Are you waiting for deviceready to fire?

On Oct 10, 2016 10:26 AM, "Anagani Sai Kiran" notifications@github.com
wrote:

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


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#667, or mute the thread
https://github.com/notifications/unsubscribe-auth/ANJ8dBbCWQAQONuRiaxmsnBAQ_52bYXcks5qykr_gaJpZM4KSn3K
.

@anaganisk
Copy link
Author

@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!

@mlynch
Copy link
Collaborator

mlynch commented Oct 10, 2016

Another data point for adding a version flag to plugins.

@ihadeed ihadeed self-assigned this Oct 10, 2016
ihadeed added a commit that referenced this issue Oct 11, 2016
ihadeed added a commit that referenced this issue Oct 11, 2016
ihadeed added a commit that referenced this issue Oct 14, 2016
ihadeed added a commit that referenced this issue Oct 15, 2016
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants