google-cloud-messaging

How do I change the text shown in GooglePlayServicesUtil.getErrorDialog()?

不问归期 提交于 2019-12-24 03:55:14
问题 I am trying to follow the gcm tutorial from Googles docs. They say to call this method if Play Services are out of date: GooglePlayServicesUtil.getErrorDialog(resultCode, activity, 9000).show(); That's fine, but it puts a dialog that says "This app won't run unless you update Google Play Services" with an "Update" button. I want to change the title and the message text. My users CAN skip the update, and the app will still run. They just won't get push notifications. How do I change the

Web push notification error with curl send message

扶醉桌前 提交于 2019-12-24 03:51:35
问题 I want to understand what is web-push and how can i use for my projects... Have found this example https://mobiforge.com/design-development/web-push-notifications But always getting an error when try to send notification via Firebase Cloud Messaging (FCM is the new version of GCM) {"multicast_id":6440031216763605980,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]} What it means "InvalidRegistration"? What i'm doing wrong? My php curl, but i am sure that

Is it possible to add PHP scripts in a Java server?

丶灬走出姿态 提交于 2019-12-24 03:16:57
问题 I have a java server running with the spring framework. For now I have to develop a GCM service to send data from the server to an Android app. I have been seeing some tutorial on Internet and all of them implements this service in a php script. I'm wondering if I can use them in my java server with spring. I know I can rewrite the code to Java but I don't have so much time as it's a work for University, so I don't wanna waste much time rewriting all of this.. So I'd like to know if it is

Android GCM Sending token to server

北城余情 提交于 2019-12-24 01:38:07
问题 The GCM Sample Project gives a stubbed out example of sending a GCM token to your server: public class RegistrationIntentService extends IntentService { ... @Override protected void onHandleIntent(Intent intent) { try { ... String token = instanceID.getToken(getString(R.string.gcm_defaultSenderId), GoogleCloudMessaging.INSTANCE_ID_SCOPE, null); Log.i(TAG, "GCM Registration Token: " + token); // TODO: Implement this method to send any registration to your app's servers.

google gcm “raw_data” payload for desktop chrome 50 beta

余生颓废 提交于 2019-12-24 01:15:31
问题 I am trying to send a and read message payload using the google GCM mechanism. To send the data I am using the instructions found under "Web Push" in: https://developers.google.com/web/updates/2016/03/web-push-encryption?hl=en where it is instructed, that until full support by chrome is available, the payload can be sent using "raw_data" which needs to be base64 encripted. to display the data I am ussing chorome 50Beta, since it is supposed to support payloads. but when the 'push' event is

Google Cloud Messaging Unique Key

我们两清 提交于 2019-12-24 00:33:50
问题 I've read in Google Cloud Messaging documentation that GCM key is unique per device and per application. If I uninstall and reinstall the application the key is always the same, ie, the key is calculated based on some device and application identifiers or the key will change? 回答1: No, the key (called Registration ID) may change after you uninstall and re-install the app. The following scenario will cause the ID to change : un-install the app send a GCM message to the device several times,

Firebase messaging on android and permissions

雨燕双飞 提交于 2019-12-23 20:27:49
问题 I recently added firebase messaging to my android app and I noticed some new permissions required to my app at similar time, for example: android.permission.READ_PHONE_STATE I couldn't find anywhere in documentation, why is this permission required. I even tried to explicitly disable it in manifest ( tools:node="remove" ) and messaging still works for me. It's kinda messy and I want to use only as few permissions as I need for sake of my users. Is this permissions really needed by messaging

GCM notifies not reaching device having google play service 6.5.99

风流意气都作罢 提交于 2019-12-23 19:00:03
问题 Used Master commonsguy GCM client code and trying GCM notifies. Works well if i upgrade to latest GPS apk i.e 8.1.15. Device has inbuild GPS apk version 6599000(6.5.99) and devices fail to receive GCM messages. int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(applicationContext); resultCode is 2 which is SERVICE_VERSION_UPDATE_REQUIRED GPS lib project(D:\andySDK\extras\google\google_play_services) version is 7571000.If i make it to 6599000 i get error need 7571000 found

Referring a currently open XMPP connection from another python script present inside a django server

◇◆丶佛笑我妖孽 提交于 2019-12-23 18:22:04
问题 My application server's requirements are as follows: Receive sensor data from mobile phones (using HTTP) Process them (python libraries) Send notification to the mobile devices (rendered as notifications on Android devices) Implementation Setup: In order to do the above, my server has three modules: Django app module : Provides an HTTP interface to the inference library to cater to the HTTP requests sent by the Android devices to the server. Python Inference Library : Processes the sensor

GcmBroadcastReceiver not fired on Android 4.0.3

霸气de小男生 提交于 2019-12-23 13:19:05
问题 I've implemented GCM in my app, following this official tutorial. But my users under Android 4.0.3 reported me notifications are not working. I found out that onReceive from my GcmBroadcastReceiver extends BroadcastReceiver wasn't fired. Here is my Manifest. <!-- GCM --> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="android.permission.VIBRATE" /> <permission