Android GCM (push notification): device doesn't receive notification if application is stopped

后端 未结 3 894
北恋
北恋 2020-11-30 06:29

I use push notification (GCM) in my Android project.

According to GCM tutorial I implemented broadcast receiver and registered it in AndroidManifest.xml

3条回答
  •  孤街浪徒
    2020-11-30 07:10

    In the documentation it says that :

    An Android application on an Android device doesn't need to be running to receive messages. The system will wake up the Android application via Intent broadcast when the message arrives, as long as the application is set up with the proper broadcast receiver and permissions.

    Check your broadcast receiver implementation and permissions.

提交回复
热议问题