google-cloud-messaging

Token generation not working call after migrating from GCM to FCM android project

心已入冬 提交于 2019-12-24 07:57:39
问题 I have converted a project from GCM to FCM but onTokenRefresh() function not call. I have followed this link : https://developers.google.com/cloud-messaging/android/android-migrate-fcm I have completed follow step Add Firebase project and add application with SHA1 key Remove all code of GCM from my android project Add FCM code FCM Code: In manifest.xml <service android:name=".Commonclass.MyFirebaseMessagingService"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" />

How to clear/delete Google Cloud Messaging Queue?

旧时模样 提交于 2019-12-24 07:53:00
问题 Situation is that I sent a notification from my server to 1 million users. Request is in queue at GCM. After triggering the notification from server I found that notification is not correct and it should not be sent. I want to stop it. At that point of time how I can clear/delete GCM queue? Any suggestion would be really helpful. 来源: https://stackoverflow.com/questions/41500042/how-to-clear-delete-google-cloud-messaging-queue

Unauthorized Exception when trying to register Xamarin App with Azure Notification Hub

荒凉一梦 提交于 2019-12-24 06:59:13
问题 We are trying to use Azure Notification Hub to deliver push notifications via GCM / Firebase to a Xamarin Forms application. This is the code we use to create the MobileServiceClient object in the PCL: public App() { mobileServiceClient = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient("https://namespace.servicebus.windows.net/NotificationHubName", new ModernHttpClient.NativeMessageHandler()); } As far as I understood the documentation, it shouldn't matter that we are not using

Unauthorized Exception when trying to register Xamarin App with Azure Notification Hub

匆匆过客 提交于 2019-12-24 06:59:08
问题 We are trying to use Azure Notification Hub to deliver push notifications via GCM / Firebase to a Xamarin Forms application. This is the code we use to create the MobileServiceClient object in the PCL: public App() { mobileServiceClient = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient("https://namespace.servicebus.windows.net/NotificationHubName", new ModernHttpClient.NativeMessageHandler()); } As far as I understood the documentation, it shouldn't matter that we are not using

Android Studio 1.3 RC3. Google Play services out of date. Requires 7571000 but found 6774470

不羁的心 提交于 2019-12-24 06:11:47
问题 Attempt History It could be a duplicate for this I followed all the suggestions in the comments, none of them helped resolve. So i have a duplicate question with some more additional information. Issue Whenever I run my app with the below mentioned spec of AVD, i get a logcat like Google Play services out of date. Requires 7571000 but found 6774470. Details These are the version of stuffs i have. Please let me know if need any info, currently I'm blocked hope any one from GCM team can help me

GCM registration works for debug APK but not release APK

荒凉一梦 提交于 2019-12-24 05:36:14
问题 The debug build of my APK always successfully registers with GCM. I've just built the first release version of my APK. I can install and run the release version, via Android Studio, on my USB-connected device. However GCM registration always fails for the release version. private static final String TAG = "GcmRegIntentService"; MyRegistrationEpt backendRegService = getRegistrationService(); try { synchronized (TAG) { InstanceID instanceID = InstanceID.getInstance(appContext); String token =

GCM for iOS, gcm connection handler is never called

会有一股神秘感。 提交于 2019-12-24 05:33:06
问题 I'm implementing Google Cloud Messaging in my application. I've followed the tutorial given in google documentations. I can send notifications to my device with HTTP POST request, but the problem is that in the applicationDidBecomeActive, as google showed, I try to connect with gcmService but the connectionHandler block is never called . applicationDidBecomeActive function in my AppDelegate func applicationDidBecomeActive(application: UIApplication) { GCMService.sharedInstance()

GCM for iOS, gcm connection handler is never called

牧云@^-^@ 提交于 2019-12-24 05:33:03
问题 I'm implementing Google Cloud Messaging in my application. I've followed the tutorial given in google documentations. I can send notifications to my device with HTTP POST request, but the problem is that in the applicationDidBecomeActive, as google showed, I try to connect with gcmService but the connectionHandler block is never called . applicationDidBecomeActive function in my AppDelegate func applicationDidBecomeActive(application: UIApplication) { GCMService.sharedInstance()

What technology does GCM (Google Cloud Messaging) use?

Deadly 提交于 2019-12-24 04:23:05
问题 Does it work by polling the servers periodically ? Does it work using long-held http request , like comet ? Or theres some new technology they are using ? 回答1: Here is a good overview: http://developer.android.com/google/gcm/gcm.html Somewhere it explains that GCM is preferred to the app polling because the Android OS is doing the polling through a long-held OS connection to the GCM server. So even though they call it "push" technology it is really being polled/pulled by the device. The OS

how to connect the library gcm in gradle?

血红的双手。 提交于 2019-12-24 04:15:17
问题 I downloaded the example link ran it and it worked fine. but now I want to do it in the android studio. I try to connect the library: compile "com.google.android.gms:play-services:6.1.71" but the classes are not visible and the package too android:name="com.google.android.gcm.GCMBroadcastReceiver" how to connect the library GCM in gradle? 回答1: You should install Google Cloud Messaging for Android Library in a SDK Manager . After doing it Android Studio will be see all classes from gcm.jar.