-
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
[ionic-native 5] push plugin registration not called #2253
Comments
I am facing (almost) the issue here. It seems however not related to the Ionic/Native version but related to the Xcode version. It will work when compiled on a machine with Xcode 8, however will not work at all when compiled with Xcode 9. The on('registration') event is never called. No error whatsoever is available. Both machines have an identical Cordova / Ionic installation: package.json
cli packages: (/usr/local/lib/node_modules)
global packages:
local packages:
Machine A (Xcode 8 - Working): System:
Machine B (Xcode 9 - NOT working): System:
|
@jzwcars in case not related to ionic-native plz open an other issue/delete your post in the plugin itself (https://github.com/phonegap/phonegap-plugin-push/issues). the issue I reported is strictly related to the test of ionic-native 5 beta |
@peterpeterparker the error itself and also the process to reproduce are 100% identical with your issue. If this bug is related to ionic-native it may have been present in version 4.5.2 already. |
@jzwcars not at all. read my issue, with 4.5.2 it works like a charm. |
Registration does not work for me consistently on 4.5.3. I added some debugging messages and I believe there is a race condition - the event handlers are not always added before the registration is completed and emitted. |
I have the same, i can't initiate push and unable to subscribe to notifications on start. |
I could confirm, tested on both real devices iPhone 6s/iOS 11.4 and Samsung Edge/Android 7, that push notifications works fine with ionic-native Back in January, I reported that the registration wasn't called, I could confirm that now this is solved (see below logs for proofs) I have opened this issue in January and therefore I gonna close it Thx team for the great work 👍
|
@peterpeterparker could you please share your code? P.S. Also, please share your package.json ionic deps |
@glebmachine same code as above, I didn't change a single line of code |
about package.json, all ionic-native in version v5.0.0-beta.14 |
Thank you, will check twice and come back) |
from the messed up docs here you can clearly see the racing condition (first the PushObject is initialized THEN the event listeners are added) thus missing out on the reigstration event. yesterday it ran just fine, today it's not being fired at all. didn't change a thing in the code. will this be fixed? P.S. P.P.S |
I'm submitting a ... (check one with "x")
[X] bug report
Current behavior:
With ionic-native 5, the push plugin registration isn't called and therefore push notifications doesn't work / no push messages are received
Steps to reproduce:
See code
Related code:
Test:
I tested this behavior on both real iPhone (iOS 11) and Samsung Edge (Android 6).
I could also confirm that my environment and notifications are fully working/correctly handled/received while using ionic-native 4.5.2
Other information:
"ionic-native/core": "^5.0.0-beta.4"
"ionic-native/push": "^5.0.0-beta.4"
cli packages:
global packages:
local packages:
System:
Environment Variables:
Misc:
Log:
What I could find in the console when I pair my iPhone with Xcode when I use ionic-native 4.5.2 respectively what I don't notice at all while using ionic-native 5
The text was updated successfully, but these errors were encountered: