google-cloud-messaging

Android OnePlus phone, missing com.google.android.gsf package

风流意气都作罢 提交于 2019-12-25 03:29:32
问题 I recently got the new "1 plus" phone. it has CyanogenMod 11 based on Android 4.4.4 . It does not have any google app, so no Play Store nor Google Play Services nor any other service. I just need to confirm that the following error is due to those missing packages, and whether or not I'm able to fix it. Here is the error thrown for GCM initiation: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf Thank you! 回答1: Yes, that error is because of the

Google GCM client not sending messages after unregistering/registering the BroadcastReceiver programatically

我的未来我决定 提交于 2019-12-25 03:24:43
问题 I would like to register/unregister the BroadcastReceiver which I am using to receive messages from GCM. I have declared and initialised the BroadcastReceiver.class in my onResume(), but after I unregister inside onPause() next time my app launches it wont send messages any more, only if I send the regId again and register with the GCM server as well. Can the BroadcastReceiver be responsible for not sending the messages? Or is it essential to have the BroadcastReceiver registered in the

Parse API Push Notifications (parse.com/GCM) URLs, IPs, Protocols and/or Ports

断了今生、忘了曾经 提交于 2019-12-25 02:59:58
问题 I am using Parse API for pushing notifications in my Android app without problem. The app should work without internet in my HotSpot network. So I need to open URLs, Maybe Ports or even protocols in my HotSpot network to allow the app to push its notifications. I open these URLs without success: *.apis.google.com *.googleapis.com *.parse.com The fiddler is not showing anything useful. I guess that it may use another protocol instead of HTTP. I want to know which URLs, IPs, protocols and or

Mule ESB Google Cloud Messaging

本秂侑毒 提交于 2019-12-25 02:40:46
问题 I am trying to create a flow that sends a push notification via the google cloud messaging service. I have used the mule connector for gcm. However I cannot get it to work. My config: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:gcm="http://www.mulesoft.org/schema/mule/gcm" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule

Connect my exist server to GCM

淺唱寂寞╮ 提交于 2019-12-25 02:29:46
问题 I developed a client on android app and a server, but now I discovered the GMC- "Google Cloud Messaging for Android" Is there any way to connect the GCM to my server, without changing everything? The client send data to the server with socket, and what I need is that the server will send the data to the GCM, and the GCM will send the data to all the clients. I don't need the clients to send data to the GCM, all what I need is : client -(socket)--> server ---> GCM ---> clients Someone have any

issue in getting token id in android

孤人 提交于 2019-12-25 02:18:05
问题 I know that there are lot of questions about this but I couldn't figure out the solution from those questions. I am getting null in a token from GCM. many people have done this using class, but I am doing this in background thread in same class. It returns null in regId. OnCreate if (checkPlayServices()) { gcm = GoogleCloudMessaging.getInstance(this); regid = getRegistrationId(context); if (regid.isEmpty()) { Log.e(TAG, "registering in background"); registerInBackground(); } else { Log.e(TAG,

Update TextView from GCMIntentService in Methods onRegistered and onUnregistered

夙愿已清 提交于 2019-12-25 02:11:28
问题 I want to set the text of a TextView in my MainActivity with the onRegistered and onUnregistered methods in the GCMIntentService class I've implemented. I can't set it directly because it's in a different class. What would be the best way to handle this? A little background. I"m using the TextView to update the status on whether the device is registered or not and to display messages to the user. The reason I want to set it in the GCMIntentService is because once those methods are deplyed the

Retrieve Heroku App IP Address for Google Cloud Messaging

↘锁芯ラ 提交于 2019-12-25 01:59:45
问题 I am attempting to integrate Google Cloud Messaging with my Heroku Apache PHP Server so as to allow for push notification to sync app data with the server as new data arises. However, the present step in GCM requires the servers (Heroku App's) IP address to integrate with Google Cloud Messaging. In the Heroku developers console there does not appear any direct way to access the apps IP. How can I access the Heroku App's IP address? 回答1: I implemented GCM on heroku (but with python) and there

GCM - 1 email registered at 2 devices

≯℡__Kan透↙ 提交于 2019-12-25 01:24:59
问题 I implemented GCM for my application. I have a situation which the flow: I have two devices (Device A and Device B). App installed in both device. Device A logged-in (Email which registered in GCM server = abc@domain.com). Device B logged-in using same email (abc@domain.com). I tried to send message to abc@domain.com, but only device B receive the message. So, how can I implement GCM so that both device A and B receive the message? 回答1: You can use GCM's Device Group Messaging. With device

Update new APNS certificate to GCM

寵の児 提交于 2019-12-25 00:08:49
问题 Generated new certificates in Apple Developer Centre. It's weird i couldn't upload that certificates to GCM and also i couldn't see UPDATE button developer website. It shows error {{ controller.errorMessage }} How do I do that? Here's a screenshot of the Google Developer 回答1: You would have to import your GCM project to the Firebase Console (there won't be any changes, see my answer here) and update the certs from there. While already importing, I would strongly advise toigrate your app(s) to