Open asgeo1 opened 2 years ago
Have you had any luck solving this? I'm noticing it too but only on some Android devices. It works on my Moto G Play 2021 but not on my Galaxy Note 20 Ultra.
It's now August and I just upgraded to the V3 plugin from the old phonegap 2.3 plugin. 2.3 was working perfectly on both Android and IOS for years. With the 3.0 plugin installed, I'm seeing the same behavior as documented here. I can register fine, I see the token in my DB but the notification event is never called in any circumstance (foreground, background etc.). I am also using FCM for IOS and it appears to be working fine. I am testing on a Galaxy S21 Android 12 and I have the Android X adapter installed too. Build was done with Cordova Android 9.1, IOS 6.2. I'll probably revert back to Phonegap 2.3 until this is resolved.
Bug Report
Did anything change with the 3.0.0 update, that would prevent push notifications being received in an app that worked with an earlier version?
I've upgraded our push plugin from
v2.3.0
on the original phonegap/phonegap-plugin-push repo, to3.0.0
in this repo, and found that I'm no longer able to receive push notifications on Android.I'm not talking about the app not handing the push notification correctly. I mean it is not received at all. Nothing in the system notification tray, no noise, nothing.
And yes, the app does appear to correctly "register" for push, and I get a token, and I'm using the correct token to send the push notification and all that.
I did a Git bisect between 87a8132c071f42d14382f859c1c8436ae634fc69 and a1df480db66821e29bd3c7a432e2e2fa2ba18bd4, and found that 1568abb8a703b9e23f7cbe8f0c23168e706c2616 was the commit where the issue first started happening.
Expected Behaviour
Triggering a basic push notification to the device token, should result in some kind of notification being received by my device.
Actual Behaviour
Nothing is received on the device, despite sending the push notification to the correct token, and no errors from FCM in the process.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 10
(Android) Device Vendor (e.g. Samsung, HTC, Sony...)
Google
cordova info
PrintoutSample Push Data Payload
Sample Code that illustrates the problem
Not really doing anything other than calling
Logs taken while reproducing problem