Closed sertal70 closed 3 years ago
pushNotificationReceived is only fired if the app is in foreground, if in background the OS will display the push notification and if you tap it pushNotificationActionPerformed will be called.
Silent push are not supported by Capacitor push plugin
thank @jcesarmobile for your answer, I'll switch back my app to Cordova push plugin.
I'm in the process to migrate an app from Ionic3+Cordova to Ionic5+Capacitor, at the end of the journey this will result in a mixed Capacitor+Cordova app, a very unpleasant result.
If Capacitor does not implement the "feature parity" toward Cordova and its plugin ecosystem, then the Ionic team should avoid to advertise Capacitor as a Cordova replacement, because it is not.
Hello @jcesarmobile Is there a plan to update Capacitor push to support silent push for IOS? @sertal70 Which plugin do you recommend to use? I'm new to Ionic and I'd appreciate if you could send me a link to cordova push plugin.
pushNotificationReceived is only fired if the app is in foreground, if in background the OS will display the push notification and if you tap it pushNotificationActionPerformed will be called.
Silent push are not supported by Capacitor push plugin
Is this also applied to Android?
pushNotificationReceived is only fired if the app is in foreground, if in background the OS will display the push notification and if you tap it pushNotificationActionPerformed will be called. Silent push are not supported by Capacitor push plugin
Is this also applied to Android?
On my tests for Local Notifications it happens only on iOS. 'localNotificationReceived' event not firing when app is in background on iOS but works on Android.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
On iOS if the app is in background none of the registered callbacks get called when a push notification is sent to the device.
Capacitor Version
Platform(s)
Tested on iPhone 7 Plus with iOS 13.5.1
Current Behavior
Expected Behavior
pushNotificationReceived
callback get calledCode Reproduction
Use the example guide to create a demo app, then try to send the following notification payloads (I tried both a "normal" payload and a "background mode" payload, see docs here):
normal payload
background mode payload
Other Technical Details
npm --version
output: 6.13.4node --version
output: v12.16.1pod --version
output (iOS issues only): 1.9.1Additional Context