google-cloud-messaging

Google Android GCM NotRegistered error

…衆ロ難τιáo~ 提交于 2019-12-19 09:04:04
问题 I am using Android GCM Push service, it works great for some time but inbetween it fails. Here are the details, If I keep my application Idle for some time then suddenly server is getting response as NotRegistered from Google GCM, strange. While going through the document it says that sometime Google server can refresh registration id automatically, so this means I need to update my servers whenever Google tells me. Ok I can do that. Now secondly is there any other chance where I can get

Android - GCM push notifications not appearing in notifications list

你。 提交于 2019-12-19 07:10:52
问题 I'm working on my first Android app to use the Google Cloud Messaging (GCM) service for push notifications. I've got to the point where I can successfully send a message from my server application, and log the content of the message in the onMessage event within my GCMIntentService class on the client app. However I don't see any visual indication on the device that a message was received. I was expecting the message to appear in the pull-down notifications list on the phone, as it does on

How to store uniquely a GCM registration id into MySQL

亡梦爱人 提交于 2019-12-19 05:34:10
问题 I'm setting up the server side of a Google Cloud Messaging mechanism, using MySQL to store the registration ids provided by the mobile app. Giving that Google can issue up to 4k registration ids, I'm forced to store them in a TEXT field. All good so far, the problem is that I have to handle situations like this: A user logs into the app The app requests a registration id from google The app sends the new registration id to the app server The server stores that registration id and links it to

Web Push API Chrome, returning “Unauthorized Registration”

自作多情 提交于 2019-12-19 05:17:25
问题 I've been doing a google tutorial on how to send web push notifications on Chrome using web-push node module. The thing is, the tutorial also provides a companion server app that you are supposed to use in order to test sending push notifications from a server to the client. But, in both the companion app and even when using web-push cli on my local machine, when trying to send a notification I am getting a " Unauthorized Registration " error. Can't find anything online about this error -

Android GCM : understanding XMPP

青春壹個敷衍的年華 提交于 2019-12-19 04:15:31
问题 I'm trying to implement a XMPP protocol in my GCM using app, but even after searching extensively, I don't understand the concepts behind it. Also, maybe I don't really need XMPP for what I want to do with my app, but I like to learn things. Let's take this example of what I could do with HTTP : my app send "hello word" and the regId to my little personnal server : url.openConnection("") , then OutputStream for sending POST data and InputStream for getting the response the server, at this url

Upstream message to server app

混江龙づ霸主 提交于 2019-12-19 04:14:21
问题 I have successfuly send data from php server page to android client with JAXL.. I have read carefully the guide of Google Cloud Message Offical website.. For Upstream there is only these documents: public void onClick(final View view) { if (view == findViewById(R.id.send)) { new AsyncTask() { @Override protected String doInBackground(Void... params) { String msg = ""; try { Bundle data = new Bundle(); data.putString("my_message", "Hello World"); data.putString("my_action","SAY_HELLO"); String

how can i put this configuration on my huawei cellphone?

假如想象 提交于 2019-12-19 04:08:21
问题 My problem is that on my cellphone huawei my services are killed so I need to change the settings on my cellphone. My problem is the same than this NOTE: Huawei and Xiaomi devices have evil task killer services that interfere with the Telegram notification service. For our notifications to work, you need to add Telegram to allowed apps in those devices' security settings. Huawei: Phone Manager App > Protected Apps > Add Telegram to the list. Xiaomi: Services > Security > Permissions >

Get certificate and add it to a Java truststore, when only having https URL?

前提是你 提交于 2019-12-19 04:08:05
问题 I'm trying to send push notifications to Android devices through the Google Cloud Message servers. The URL we use to do that is: https://android.googleapis.com/gcm/send In our entreprise applications, we do not use the default CA authorities and we add manually each entity we trust for security reason, in a truststore file loaded by SSLContext properties. I'd like to add GCM certificate to our truststore. I don't know how to get the certificate from that URL. It seems the Chrome/Firefox

How can an application server associate Google accounts to a user's device?

二次信任 提交于 2019-12-19 04:05:43
问题 I want users to be able to enter data from a web server and/or native PC app and transfer it to their chosen Android device in much the same way that Google Play's install on device works. I'd like to use the user's Google account authentication to establish a link between the application server and the user's Android device that registered with GCM. I couldn't find any mention of how to handle this kind of authentication in the Google Cloud messaging API documentation, but did find this

Google Cloud Messaging, 401 Unauthorized is returned when creating notification key from client

我是研究僧i 提交于 2019-12-19 03:21:44
问题 I followed the example on https://developer.android.com/google/gcm/notifications.html#gen-client trying to create notification key from client. getAccounts() method did return a valid google account. GoogleAuthUtil.getToken(context, accountname, scope) also returns a valid scope string. However the response from the post on https://android.googleapis.com/gcm/googlenotification is 401, and is an html page: <HTML> <HEAD> <TITLE>Unauthorized</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"