Reputation: 11
I am working on android app, while user registration It stores registration id(gcm id) in the database. I am having gcm id, sender id, api key. How can i send notification message to particular device by passing gcm id ?
Pls guide me with some link. I dont know php. guide me through java code.
Advance Thanks
Upvotes: 1
Views: 933
Reputation: 62
Here you have to make ENDPOINT for SENDER who sends message to particular id. CODE :-
Message message = new Message.Builder().timeToLive(10000).addData("your message", message1).build();
Result result = sender
.send(message, gcm_id, 1);
Upvotes: 0
Reputation: 11
As per brahmy adigopula's reply, I Followed this link http://androidexample.com/Android_Push_Notifications_using_Google_Cloud_Messaging_GCM/index.php?view=article_discription&aid=119&aaid=139
Upvotes: 0
Reputation: 683
Google says Move FCM try it .
https://firebase.google.com/docs/android/setup
Upvotes: 0
Reputation: 298
you can also use this link : http://www.gcm-alert.appspot.com/ This is working great for send notification to particular device.
Upvotes: 0
Reputation: 8149
Put your data Here and send.
Link Its for testing you can create your own panel.
Upvotes: 1