google-cloud-messaging

Android - not getting GCM token

可紊 提交于 2019-12-21 11:55:22
问题 I call RegistrationIntentService : if (checkPlayServices()) { Log.i("udazzT", "check servicies"); // Start IntentService to register this application with GCM. Intent intent2 = new Intent(this, RegistrationIntentService.class); startService(intent2); } But I cannot see any of the logs in RegistrationIntentService: public class RegistrationIntentService extends IntentService { private static final String TAG = "RegIntentService"; private static final String[] TOPICS = {"global"}; public

GCM Error - googleCloudMessaging.register

与世无争的帅哥 提交于 2019-12-21 07:24:33
问题 I have the problem that the android application says. "The application xxxx Sorry stopped" to work with the push notificaction, when performing the debugger that happens when it passes: method 1 InstanceID InstanceId = InstanceID.getInstance (context); token = instanceID.getToken (key_id.toString () GoogleCloudMessaging.INSTANCE_ID_SCOPE); getToken error, method 2 Both an the same mistake if (googleCloudMessaging == null) { googleCloudMessaging = GoogleCloudMessaging.getInstance(context); }

Calling BroadCastReceiver from Service in android to Update UI in Fragment?

我的梦境 提交于 2019-12-21 05:57:06
问题 I want to update the UI of a fragment from service .I am using GCM for sending message.I have this class for GCM : public class GcmIntentService extends IntentService { public GcmIntentService() { super("GcmIntentService"); } @Override protected void onHandleIntent(Intent intent) { Bundle extras = intent.getExtras(); GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this); // The getMessageType() intent parameter must be the intent you received // in your BroadcastReceiver. String

Calling BroadCastReceiver from Service in android to Update UI in Fragment?

萝らか妹 提交于 2019-12-21 05:57:01
问题 I want to update the UI of a fragment from service .I am using GCM for sending message.I have this class for GCM : public class GcmIntentService extends IntentService { public GcmIntentService() { super("GcmIntentService"); } @Override protected void onHandleIntent(Intent intent) { Bundle extras = intent.getExtras(); GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this); // The getMessageType() intent parameter must be the intent you received // in your BroadcastReceiver. String

Activity Listener - Google Cloud Messaging - BroadcastReceiver

左心房为你撑大大i 提交于 2019-12-21 05:33:27
问题 I have implemented GCM in my android application and it's working fine with receiving messages. The BroadcastReceiver is set up in the manifest-file according to the examples provided by Google. My question is the following: If the user is having the application open and I want to update some results in that view - how can this be done? I was first thinking of registering this activity as a listener on whatever the BroadCastReceiver recieves. However, this must then be a static list of

When should I use GCM device groups versus topics?

蓝咒 提交于 2019-12-21 05:11:29
问题 I am looking into incorporating Google Cloud Messaging into my app. I would like to send messages to all devices associated with a user. At first, it looked like GCM's device group messaging would be the way to go. But that requires managing registration IDs and notification keys on my server. It seems like it'd be easier to use GCM's topic messaging where the topic is keyed on some shared user information like a user ID. I intend to use GCM to send data to both Android and iOS apps. I will

Not receiving GCM push notification in MI phone if app is killed

僤鯓⒐⒋嵵緔 提交于 2019-12-21 04:51:21
问题 I integrated GCM in my project to receive push notification from server. I am able to successfully receive push notification in all the devices (Nexus, Samsung etc), however, I am not receiving notifications on my Xiaomi MI phone. When the app is running or is in background then I am receiving notification however if I kill the app (by swiping the app away from recent apps) then I don't receive any notification. In pre-installed Security app there is an Auto-Start feature. Some apps have this

Can my server receive the acknowledgement from the GCM once the intended message is delivered to the android app?

空扰寡人 提交于 2019-12-21 04:13:11
问题 I have started integrating GCM to my android application. With the help of startup tutorial I have setup the sample demo and it works fantastic. I also understood the different response statuses received when my server sends the message to GCM, which I believe signifies the status of the communication between my server and GCM server. My question is, is there a a way to get the status of the communication between GCM server and android application? Basically an acknowledgement signifying

Can my server receive the acknowledgement from the GCM once the intended message is delivered to the android app?

杀马特。学长 韩版系。学妹 提交于 2019-12-21 04:13:01
问题 I have started integrating GCM to my android application. With the help of startup tutorial I have setup the sample demo and it works fantastic. I also understood the different response statuses received when my server sends the message to GCM, which I believe signifies the status of the communication between my server and GCM server. My question is, is there a a way to get the status of the communication between GCM server and android application? Basically an acknowledgement signifying

App initialization very slow: FirebaseApp initialization unsuccessful

可紊 提交于 2019-12-21 03:56:31
问题 I know about this question but I don't think it helps me and the problem looks slightly different. I'm doing this app where I need to implement AppsFlyer for tracking and I'm required to use only 2 components from Google Play Services: com.google.android.gms:play-services-ads com.google.android.gms:play-services-gcm And I'm using the latest version of the Google Play Services, 9.0.2 that is. The problem is that on the first app launch after installing the app , the app takes quite a bit of