push.on("registration") is not fired under iOS 13.3.1 when deployed from Xcode
etiennea opened this issue · 8 comments
Expected Behaviour
When initializing the plugin, the app asks for permissions and afterwards the method push.on("registration") is fired.
Actual Behaviour
The app asks for permission but push.on("registration") is not fired under iOS 13.3.1 when built from xcode, works when from the appstore.
Reproduce Scenario (including but not limited to)
Existing app which worked fine / as expected under iOS 13.3
Upon deviceready the plugin is called but push.on("registration") is not fired (it should have an alert(data.registrationId)). The same app works fine under iOS 13.3.
Steps to Reproduce
as described above
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 13.3.1
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
cli-9.0.0
PhoneGap Build
Plugin version
87a8132 (2.3.0)
Sample Code that illustrates the problem
push.on("registration", (data) => { deviceToken = data.registrationId; registerDevice(data.registrationId); });
Has your ios 13.3.1 device a sim? Did you try with plane mode and allow the wifi?
No I will try this and report back.
I've tried that.
Plane mode with WiFi allowed, and it worked.
push.on("registration" has been called.
Has your ios 13.3.1 device a sim? Did you try with plane mode and allow the wifi?
Where did you get this information? @etiennea I'm curious what's causing this glitch and how to resolve this in production ready apps permanantly.
Thank you, Maurice
With plane mode disabled, Mobile Data disabled, and only WiFi enabled, push.on('registration') is fired.
If I enable Mobile Data, it stops firing.
Same issue here. push.on('registration') does not fire when mobile data is enabled. If I turn on airplane mode and enable wifi it gets fired.
Same here.
push.on('registration') not fired when mobile data, but is fired with wifi.
iOS 13.4
happens in dev & production
Does anyone found a fix for this ?!
I did something that may have fixed the issue :
In XCode I removed the Push Notification capability and add it again.
Give it a try.