google-cloud-messaging

Gcm phone_registration_error

£可爱£侵袭症+ 提交于 2020-01-04 04:15:50
问题 I'm trying to set up an application to work with gcm but every time I get the phone_registration_error error according to the Gcm documentation this error means: Incorrect phone registration with Google. This phone doesn't currently support GCM. But I don't understand why my it's not supported, I tested this on a real android device and a emulator with the google api's My MainActivity: @Override public void onCreate(Bundle savedInstanceState) { checkNotNull(SENDER_ID, "SENDER_ID");

Spring integration XMPP and Google Cloud Messaging

六月ゝ 毕业季﹏ 提交于 2020-01-04 04:05:27
问题 I'm using the spring integration xmpp module to write a custom implementation of a 3rd party Server connecting to GCM cloud services, as in GCM Cloud Connection Server (XMPP). So far I've successfully connected to the GCM server, however when I send a message to the server I end up with something like: <message id="m-1366082849205" to="REGISTRATION_ID"> <body>{"hello":"world"}</body> </message> , but I need to send something like this: <message id=""> <gcm xmlns="google:mobile:data"> { "to":

Google Cloud Message Sandbox

拟墨画扇 提交于 2020-01-04 00:10:48
问题 I followed the tutorial to implement push notifications on my Android App (Google Cloud Message). I managed to successfully implement these messages but now I'm concerned about dev/production environment. There is only one API key (in opposite of Apple who has sandbox key and production key). How you guys deal with this? I don't want my gcm tests firing real messages to users. 回答1: You can use the dry_run field : dry_run If included, allows developers to test their request without actually

GCM alternative for local networks or sending messages to device IP

ⅰ亾dé卋堺 提交于 2020-01-03 16:58:13
问题 I want to send notifications to some devices connected to my local network. First alternative was GCM but this implies sending a message to Google server and then Google server sends the message to devices. What if currently my local network is not providing internet? If there is no such alternative like this, is there a way to send a message through a TCP package directly to the device? 回答1: You should take a look at MQTT. There is also a Java library that is compatible with Android; the

Android GCM Unauthorized 401 error with PHP

孤街醉人 提交于 2020-01-03 13:03:53
问题 Recently my GCM push message notification didn't work anymore. I didn't change anything, in my Google API Console, I've registred the IPV6 of my dedicated server if the whitelist IP address. But when I try to reach GCM service I always get an error : Unauthorized Error 401 Also tried with IPV4 without success... I've tried the same script on my own computer and everything works smooth ... Any idea would be very appreciate :) Thanks for your help 回答1: You need to put the server IP address in

error: cannot access AbstractSafeParcelable class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found

半世苍凉 提交于 2020-01-03 06:35:12
问题 error: cannot access AbstractSafeParcelable class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found 回答1: it resloved by changing to 10.0.1 from 9.0.0- in compile 'com.google.firebase:firebase-messaging:10.0.1' 来源: https://stackoverflow.com/questions/44010284/error-cannot-access-abstractsafeparcelable-class-file-for-com-google-android-gm

Problems with Google Developer Console - Sender ID for GCM

陌路散爱 提交于 2020-01-03 06:34:31
问题 I'm not a developer, but a graphic that needs to publish a digital kiosk magazine made with twixl platform. I followed the steps of the twixl documentation to create a Sender ID for notifications on Android ( FCM/GCM ). I created an app where I associated a Sender ID (API key) and everything worked. I also have the statistics for a few days in which the app was active. For certificate problems, however, I had to cancel this publication and do another, from the same account ( app@pizzanew.it )

Problems with Google Developer Console - Sender ID for GCM

只愿长相守 提交于 2020-01-03 06:33:19
问题 I'm not a developer, but a graphic that needs to publish a digital kiosk magazine made with twixl platform. I followed the steps of the twixl documentation to create a Sender ID for notifications on Android ( FCM/GCM ). I created an app where I associated a Sender ID (API key) and everything worked. I also have the statistics for a few days in which the app was active. For certificate problems, however, I had to cancel this publication and do another, from the same account ( app@pizzanew.it )

google cloud messaging in android lower than 4.1

吃可爱长大的小学妹 提交于 2020-01-03 06:21:08
问题 I'm using push notifications (GCM) in my application and it works correctly when run on android 4.2.2 (Galaxy Nexus and HTC One) Also I have a tablet (asus transformer T101 running android 4.03) and Nexus One (running Android 2.3.6) Running the application on the tablet and the Nexus one, methods of push notifications do not work. As indicated in the documentation, I have included android.permission.GET_ACCOUNTS the permission for versions below 4.0.3, but without success. The method that

GCM push to topics using PHP

醉酒当歌 提交于 2020-01-03 05:34:15
问题 I'm trying to write a PHP script that will send a push notification to my android app using the topics method. It seems to be successful and returns a message ID, but nothing will show up on the phone. I do have a similar python script, and that one works so GCM must have been implemented correctly in the app. Not working PHP script $msg = array( 'to' => '/topics/my_little_topic', 'notifcation' => array( 'body' => 'here is a message message', 'title' => 'This is a title title', 'icon' => "ic