I have developed push notification system in android using c2dm, It's working fine but I having one problem i-e it works fine with one email only.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
It seems that you are under the wrong impression that the Role Email account which is created to identify the application using the C2DM service should be changed in the registration intent.
You must have that role email the same as the one on the server otherwise Google will not be able to identify your application as sender/receiver of this c2dm message. Sample Registration Intent:
The Variable senderId here should hold the role account you created and signed up for C2DM on the google C2DM signup Page
This same email is used to obtain the Authentication token from google servers which is used to send C2DM messages later
Sample server code to get an authentication key:
notice the variable senderId this should also hold the role account you created and signed up for C2DM on the google C2DM signup Page any other email can be changed to whatever you like, but these to emails have to remain identical
here is the definition from google C2DM page at google code:
I hope i helped have a nice day.
would have been nice if you included code snippets or more information about the emails you are talking about.