google-cloud-messaging

Server api key: migration doc vs migration video

五迷三道 提交于 2019-12-17 20:39:57
问题 The only change that the GCM -> FCM migration doc requires is changing the endpoint: Update your server code to use new FCM endpoints for sending messages via HTTP and XMPP... Optionally , you may want to evaluate the FCM HTTP v1 API, which offers an improved security model and new capabilities for customizing messages across But the video seems to tell a different story: I'll need to update to a new more secure server key which I can get from the firebase console... download the service

GCM support for ios application when application in background or killed

二次信任 提交于 2019-12-17 20:14:20
问题 Hello all i am integrating GCM in iOS application using following link https://developers.google.com/cloud-messaging/ios/start. I have also uploaded the certificates when configuring the file on defined steps. I have also succeeded for getting notification,but the problem is that i am not getting the notification when the application is killed or in background.Is there any implementation for getting notification in background or killed ios application as i have searched a lot for that and

SecurityException: Not allowed to start service Intent act=com.google.android.c2dm.intent.REGISTER

一个人想着一个人 提交于 2019-12-17 19:57:47
问题 I get the error SecurityException: Not allowed to start service Intent but looks like it do not have good solution after searching many topics. Please help me, Thanks, p/s : I'm make sure I used correct SENDER_ID as project number was defined at Google API Console and correct package name . Error : Caused by: java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms (has extras) } without permission com.google

GCM sending with curl (php)

我的未来我决定 提交于 2019-12-17 19:56:34
问题 I'm trying to send a message to an Android phone but keep getting response code 401 with text: Unauthorized. Also I keep reading different stories on what key to use, I know of 3 keys: the project ID (number), the Key for server apps and the Key for browser apps. So I have tryed them all 3, all with the same result. My code: $headers = array("Content-Type" => "application/json", "Authorization" => "key=" . "mykey"); $data = array( 'data' => $messageText, 'registration_ids' => array(

Google cloud message 'Not Registered' failure and unsubscribe best practices?

喜欢而已 提交于 2019-12-17 19:52:43
问题 I'm developing an Android app using Xamarin Forms that's primary purpose is receiving push notifications of events. I've had some seemingly random trouble receiving Not Registered failures when sending a notification, after the device successfully calls GcmPubSub.getInstance().subscribe() . This was happening a week or 2 ago and I thought I had the problem resolved by always using the main application context for token generation and the getInstance() call. Yesterday around noon EST the

failed gcm registration in android

跟風遠走 提交于 2019-12-17 19:46:04
问题 I'm trying to deploy an application with push notifications. The problem is that I can not get it to work from a device. While using the emulator, everything is ok but when using a cell phone I get a log saying "AUTHENTICATION_FAILED" . I have checked and the Gmail account is synchronized but is always trying to check me out this error. Could someone give me a hand? 回答1: This is occurred due to the bad Google Account password. Check your account on the phone. Bad Google Account password. The

Unauthorized when calling Google GCM

天大地大妈咪最大 提交于 2019-12-17 19:25:15
问题 I trying to use Google GCM for sending push notifications. But get a WebException that says that the remote server returns 401 unautorized. I can't foung why it doen't work. Anyone that knows why it doesn't work? Here is my code: ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(ValidateServerCertificate); HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("https://android.googleapis.com/gcm/send"); Request.Method = "POST"; Request

Google Play Services GCM 9.2.0 asks to “update” back to 9.0.0

余生颓废 提交于 2019-12-17 17:28:47
问题 So this morning I started updating to the latest version of my project libraries. I'm trying to update GCM to the latest version 9.2.0, but I get this error: Error:Execution failed for task ':app:processDebugGoogleServices'. Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms

App receives duplicate notification using GCM after reinstalling [duplicate]

一笑奈何 提交于 2019-12-17 16:56:20
问题 This question already has answers here : Do old GCM tokens live on even after an uninstall? (2 answers) Closed 4 years ago . I'm currently trying to use GCM to send notification to user and currently I'm still studying on how I can maximize it. For now I just use the sample project provided on the documentation here and I use the gcm-client sample to work on it. Now using this project from Git I tried to push a message using the registration ID created by the app and yes it successfully

GcmBroadcastReceiver IllegalStateException: Not allowed to start service Intent

青春壹個敷衍的年華 提交于 2019-12-17 16:39:10
问题 I am working on FCM Push notification in Android, where I am getting this exception: GcmBroadcastReceiver IllegalStateException: Not allowed to start service Intent I have searched many question in this forum, but still didn't got help for solving it. My Log and Manifest patch is also given below. Manifest: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission