I'm developing an Ionic 2 app wich receives push notifications. It must receive silent background notifications, meaning the notifications don't get visible in system notification area. Instead, when the app is open, the notifications are sent to the app en it process the data received. It works except it receives only the last notification sent while the app was closed.
Maybe it's a GCM message config missing.
Expected Behaviour
Receive multiple background silent push notifications.
Actual Behaviour
Receiving only the last background push silent notification.
Reproduce Scenario (including but not limited to)
Steps to ReproducePlatform and VersionSend two or more silent background messages while the app is closed. Open the app. Only the last notification is received by the on receive listener.
(Android) What device vendorAndroid 5.1.1/6.0
Cordova CLI version and cordova platform version
Plugin versioncordova --version 6.2.0 cordova
platform version android 5.1.1
Sample Push Data Payloadcordova plugin version | grep phonegap-plugin-push 1.7.4
{
"delay_while_idle": true,
"priority": "high",
"data": {
"content-available": "1",
"notId": Date.now(),
"silenttitle": 'some title',
"silentmessage": 'some message'
}
}
How could I receive all silent notifications sent to my app?