PRATHEEP KUMAR
PRATHEEP KUMAR

Reputation: 11

How to send notification message from my android app based on some condition

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

Answers (5)

payal gala
payal gala

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

RDY
RDY

Reputation: 683

Google says Move FCM try it .

https://firebase.google.com/docs/android/setup

Upvotes: 0

Hardik Vaghasiya
Hardik Vaghasiya

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

Sohail Zahid
Sohail Zahid

Reputation: 8149

Put your data Here and send.

Link Its for testing you can create your own panel.

enter image description here

Upvotes: 1

Related Questions