Create push notification in android

前端 未结 2 1666
轻奢々
轻奢々 2020-12-17 07:15

how to create push notification in Android using GCM or either C2DM i have tried and check some sites and didn\'t get exact answer.i need to know how it works.Can any one pr

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 07:44

    You can use GCM demo app supported by Google. One needs to install GCM libs using SDK manager and then create API keys in Google APIs console. Follow instructions from the link and you can create an app that receives push notifications from GCM server. I did try this and it worked even on my Android emulators. You need to use Emulator that targets Google APIs though.

提交回复
热议问题