cordova-plugin-background-geolocation
cordova-plugin-background-geolocation copied to clipboard
Notifications not forwarding to Capacitor PushNotifications in iOS
Your Environment
- Plugin version: 3.1.0
- Platform: iOS
- OS version: 13.6.1
- Device manufacturer and model: iPhone 11
- Running in Simulator: No
- Cordova version (
cordova -v
): 9.0.0 ([email protected]) - Cordova platform version (
cordova platform ls
): None. Capacitor is used. - Plugin configuration options:
- Link to your project:
Context
First posted here. Currently I am using Ionic 4 + Capacitor + Some Cordova plugins. My app requires the use of background geolocation hence used this cordova plugin. My app also requires firebase push notifications and opted for Capacitor's PushNotification plugin to listen to push notifications. Both of these work fine in Android, however it does not work in iOS.
After some troubleshooting, the notification does indeed get sent to the phone and is received by the app, however this plugins center does not forward the notification received to capacitor's notification center.
Expected Behavior
Plugin should forward notification received to capacitor plugin.
Actual Behavior
Notification gets received by background geolocation plugin, but does not forward to capacitor plugin.
Possible Fix
Steps to Reproduce
- Create Ionic Project with capacitor
- Install background geolocation plugin as stated here
- Add listener for pushNotificationReceived
- Run in device and fire an example notification.
Context
Due to this, my app is unable to move forward without sacrificing either core feature.
Debug logs
any news on that?
found this workaround so far: https://github.com/mauron85/cordova-plugin-background-geolocation/issues/627#issuecomment-576582283
found this workaround so far: #627 (comment)
Im a little occupied at the moment with other stuff but will check this out and see if it works. Thank you