Background Firebase Push Notifications in Cordova

前端 未结 2 1500
自闭症患者
自闭症患者 2020-12-18 16:09

I am using a phonegap-plugin-push for receiving notifications in Cordova Application. I am deploying on android Marsh-mellow for testing.

I want to see and store the

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-18 16:34

    i was going through the same issue but i added "content-available": '1' also but my phone was not receiving any background push.

    Finally i found that it was issue with my phone as mentioned here: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#huawei-and-xiaomi-phones

    Huawei and Xiaomi Phones

    These phones have a particular quirk that when the app is force closed that you will no longer be able to receive notifications until the app is restarted. In order for you to receive background notifications:

    On your Huawei device go to Settings > Protected apps > check "My App" where. On your Xiaomi make sure your phone has the "Auto-start" property enabled for your app. On your Asus make sure your phone has the "Auto-start" property enabled for your app.

    Hope it will help someone.

提交回复
热议问题