Receive Parse notification using custom broadcastreceiver

后端 未结 4 2077
攒了一身酷
攒了一身酷 2021-02-06 10:55

Am using parse notification in my app. Am receiving notification alert using GcmBroadcastReceiver. But am seeing lot of notification receiving to my app. I thought to update not

4条回答
  •  别那么骄傲
    2021-02-06 11:21

    In your manifest file you are using

    com.parse.GcmBroadcastReceiver

    instead of that use your custom broadcastreciver , in you case simple change > com.parse.GcmBroadcastReceiver to com.yourpackagename. IncomingReceiver

    Do not test BroadcastReceiver in simulator it will not work so test it in a real Android

    See this repo which uses a custom broadcastreciver for parse push notification https://github.com/srini-hashinc/IIYO

提交回复
热议问题