You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 9, 2019. It is now read-only.
Hi, when I send a message (not notification) to a device how my app is close, The app not receive the message when I open it again. But I receive messages if I send when the app is open.
Is it possible to do that if yes how can I do?
Thanks
PS : my app are register on server and the lifespan is :2419200
here c# code for send message
public string SendMessage(string deviceId, string message)
{
string GoogleAppID = "XXXX";
var SENDER_ID = "XXXX";
var value = message;
WebRequest tRequest;
tRequest = WebRequest.Create("https://android.googleapis.com/gcm/send");
tRequest.Method = "post";
tRequest.ContentType = " application/x-www-form-urlencoded;charset=UTF-8";
tRequest.Headers.Add(string.Format("Authorization: key={0}", GoogleAppID));
Hi, when I send a message (not notification) to a device how my app is close, The app not receive the message when I open it again. But I receive messages if I send when the app is open.
Is it possible to do that if yes how can I do?
Thanks
PS : my app are register on server and the lifespan is :2419200
here c# code for send message
public string SendMessage(string deviceId, string message)
{
string GoogleAppID = "XXXX";
var SENDER_ID = "XXXX";
var value = message;
WebRequest tRequest;
tRequest = WebRequest.Create("https://android.googleapis.com/gcm/send");
tRequest.Method = "post";
tRequest.ContentType = " application/x-www-form-urlencoded;charset=UTF-8";
tRequest.Headers.Add(string.Format("Authorization: key={0}", GoogleAppID));