I want to know how to check if the message is being delivered at the recipient end or not. I am using this library but not able to figure out how to solve this issue. I have integrated laravel 5.2
The main issue is sometimes message sent from the server but in-app it does not receive. Is there any other way or any alternative to get out of this issue?
Any help/suggestion would be appreciated.
From your server you can only know if you sent the message succesfully to the google server but not if google sent it to the phone. you could create add a method in your rest service to send a kind of status when the notification come to the phone in your MessagingService class.
Related
Can we send the message from Android Device to GCM server?
I am implementing the Total GCM functionality to get message from server and it works fine.
Now i want to save that message response right now i am using separate webservice to store response to server,
Can i do that using GCM instead Webservice?
No you can't. You need to create XMPP server for that. You can see brief answer here
You can check example of chat here
GCM is only a system to deliver messages to registered devices. It is not responsible for any other activity.
If you want to store data, that will need to be on your registered device or your web service.
I follow this link PLease see here . Can anyone tell me exact process to communication between two mobile devices in terms of push notification. Please help me.
GCM is a google cloud messaging http server.It is used for providing notification service on android phones any notification you receive on your phone is sent through GCM.Every device using a specific application is registered with GCM. Even if you want your application to send notification to the user on occurrence of something it's not possible without GCM.
I'm making an Android application and I want to get notifications like in WhatsApp – as the message comes. If any updates are made on the server then a notification should come to the user so he can check the application. Any help would be appreciated.
Firstly you need to integrate GCM with your system, so application need to get sender_id from google and put it to your server. Then if you want to invoke notification on your app you need to send message using this sender_id.
Here you can find nice tutorial. If you will have any question just give me a word.
I hope it would help you
You need to use Google Cloud Messaging. With it you can send information from a server to an Android device. The Android device will be waiting for messages from the server instead of polling the server at timed intervals.
I am following Google official tutorial for demo Google Cloud Messaging from http://developer.android.com/google/gcm/demo.html . I set up the gcm-demo-client and gcm-demo-server.
Now, when I run applicaiton, its works well. The device is registered to my server. Then when I click sent message in my server to invoke, its says the message is sent. I assume the process sent message correctly to GCM since its their official sample server for tutorial.
However, my message is not delivered to client applications.
When I see report status about my project in GOOGLE API CONSOLE, the request per day info are 0. Should not it be changed if my server sent message to GCM to deliver to registered device?
Is there anyway to confirm that my server message has been successfully delivered to GCM first? If i confirm this, then can confirm that message is being late.
I tried with both server and browser API key. DO it take time to deliver?
Thanks in advance for your support and any help.
The demo in the tutorial works well. Finally, I was able to get the push message. However, the message was delivered late then expected in about 15 min. Why is it happening so? I don't think its reliable to use.
im developing a app in android. I want to send a push message when the client app is currently running. how can i achieve this with Google cloud messaging. or any other methods? but i want to send the push message at app running stage as well as the app closed. thanks in advance. hope someone will help me...
delay_while_idle attribute in gcm message will make GCM Server send message when device is not idling.
Read about cloud messaging it will help to fully understand how this service works. http://developer.android.com/guide/google/gcm/index.html
You cannot push message on the client side.
You can send REST HTTP data to a server.
On server side - use gcm-server library for pushing gcm messages.