You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, to 3.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 87a8132 and a1df480, and found that 1568abb 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)
{
"registration_ids" : ["xxxxxx"],
"data": {
"title": "XXXX Test 2",
"message" : "This is a test message from XXXX",
"sound": "1",
"vibrate": "1",
"priority": 2
}
}
Sample Code that illustrates the problem
Not really doing anything other than calling
const config: PushOptions = {
ios: {
badge: 'true',
sound: 'true',
alert: 'true',
clearBadge: 'true'
},
android: {
icon: 'push_icon_blue'
}
}
this.pushInstance = this.push.init(config)
// NOTE: Intercom can cause this to be called a 2nd time...
await this.pushInstance.on('registration').subscribe(async registration => {
... do something with the token here...
})
this is using `@ionic-native/push/ngx` rather than this plugins JS methods directly, however, it's the same thing end of day I would think, one just calls the other.
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered:
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 87a8132 and a1df480, and found that 1568abb 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
The text was updated successfully, but these errors were encountered: