mauron85/cordova-plugin-background-geolocation

Notifications not forwarding to Capacitor PushNotifications in iOS

Akmalismail opened this issue · 3 comments

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 (cordova-lib@9.0.1)
  • 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

  1. Create Ionic Project with capacitor
  2. Install background geolocation plugin as stated here
  3. Add listener for pushNotificationReceived
  4. 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: #627 (comment)

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