question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

phonegap-plugin-push notifications no longer received after installing cordova-plugin-local-notifications

See original GitHub issue

Thanks for a nice plugin! It does exactly what I need (and more), however I need to still be able to receive push notifications but after installing this plugin my callback for the ‘notification’ event from the phonegap-plugin-push plugin is no longer called. Is this expected?

Your Environment

  • Plugin version: 0.9.0-beta.2 and 0.9.0-beta.3 tested
  • Platform: iOS
  • OS version: 11.3
  • Device manufacturer / model: iPhone 6.0
  • Cordova version (cordova -v): 8.0.0
  • Cordova platform version (cordova platform ls): ios 4.5.4
  • Plugin config default values
  • Ionic Version (if using Ionic) no ionic

Expected Behavior

phonegap-plugin-push should still dispatch notification events

Actual Behavior

phonegap-plugin-push no longer dispatches notification events

Steps to Reproduce

  1. Create an app using phonegap-plugin-push and listen for ‘notification’ events.
  2. Verify that the ‘notification’ events are dispatched when push notification events are sent to the device
  3. install cordova-plugin-local-notifications
  4. Send push notifications to the device

Context

I wanted to use the cordova-plugin-local-notifications to show iOS notifications when push notifications are received when in foreground.

Debug logs

2018-06-19 16:22:01.176937+0200 TaskRunner Pro[1460:1117588] Push Plugin VoIP missing or false 2018-06-19 16:22:01.177356+0200 TaskRunner Pro[1460:1117721] Push Plugin register called 2018-06-19 16:22:01.177426+0200 TaskRunner Pro[1460:1117721] PushPlugin.register: setting badge to false 2018-06-19 16:22:01.177450+0200 TaskRunner Pro[1460:1117721] PushPlugin.register: clear badge is set to 0 2018-06-19 16:22:01.177475+0200 TaskRunner Pro[1460:1117721] PushPlugin.register: better button setup 2018-06-19 16:22:01.177817+0200 TaskRunner Pro[1460:1117721] FCM Sender ID (null) 2018-06-19 16:22:01.177855+0200 TaskRunner Pro[1460:1117721] Using APNS Notification 2018-06-19 16:22:01.226741+0200 TaskRunner Pro[1460:1117588] Push Plugin register success: <<my-device-registration-id-here>>

but then nothing is logged when I send push notifications

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:18

github_iconTop GitHub Comments

6reactions
marianoaptlycommented, Mar 15, 2019

It would be great if this issue could be fixed, so we can show notifications both in back and foreground when using the library along with push notifications.

Thanks in advance!

4reactions
mohamedsharafcommented, Jul 23, 2018

i tested with latest version problem with ios still exist

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cordova not able to build with cordova-plugin-local-notifications
I have the similar issue, and I achieved a workarround. After creating the platform, open the platform/android folder with android Studio.
Read more >
Error in Building Moodle Mobile App
This discussion has been locked so you can no longer reply to it. ... Installing "cordova-plugin-local-notifications-mm" for android
Read more >
Notifications not received when app closed - phonegap-plugin ...
Hi, I'm using phonegap-plugin-push@1.11.1 (with @ionic-native/push@4.0.1) and am not always getting notifications when the app is closed.
Read more >
Ionic 1 Local Notification Not Working In Ionic View App
Register and receive push notifications on your Ionic apps using the Cordova plugin: phonegappluginpush. Read for how to install on supported platforms. IOS ......
Read more >
How to Troubleshoot Ring Notification Issues for Android ...
Not Receiving Ring Notifications on your Android Device? If you are not receiving notifications after enabling Ring alerts or Motion Alerts and confirming...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found