google-cloud-messaging

Subscriber.stopAsync() results in RejectedExecutionException

醉酒当歌 提交于 2019-12-23 00:48:51
问题 My code is basically following the official tutorials and the main purpose is to collect all messages from one subscription (Constants.UNFINISHEDSUBID) and republish them on another. But currently I'm facing a problem, that i can't solve. In my implementation calling subscriber.stopAsync() results in the following exception: Mai 04, 2017 4:59:25 PM com.google.common.util.concurrent.AbstractFuture executeListener SCHWERWIEGEND: RuntimeException while executing runnable com.google.common.util

GCM: java.lang.NoClassDefFoundError: com/google/android/gcm/server/Sender

若如初见. 提交于 2019-12-22 23:24:19
问题 I have been trying to get Google Cloud Messaging to work in eclipse. I was able to compile the example given on their demo webpage and run that without any errors; however, when I try to create my own example using jersey I get the run time error "java.lang.NoClassDefFoundError: com/google/android/gcm/server/Sender" when the following code tries to create a sender. @POST @Path("/send") public Response sendMessage() throws IOException { Sender sender = new Sender("api_key"); Message message =

GCM: java.lang.NoClassDefFoundError: com/google/android/gcm/server/Sender

故事扮演 提交于 2019-12-22 23:23:18
问题 I have been trying to get Google Cloud Messaging to work in eclipse. I was able to compile the example given on their demo webpage and run that without any errors; however, when I try to create my own example using jersey I get the run time error "java.lang.NoClassDefFoundError: com/google/android/gcm/server/Sender" when the following code tries to create a sender. @POST @Path("/send") public Response sendMessage() throws IOException { Sender sender = new Sender("api_key"); Message message =

Why re-register to gcm when application gets updated?

邮差的信 提交于 2019-12-22 18:41:32
问题 I am using gcm in my application. In Google Developers Console page, I created a project and obtained a project id: Using this project id in my application, the user gets registered to the gcm servers and obtain a registeration id. Then it is sent to my 3rd party server to be stored. When 3rd party server wants to send message to the user, it uses the apikey I've obtained in the Google Developer Console page in the header of the post action and uses ther registeration id that has been stored

Why re-register to gcm when application gets updated?

﹥>﹥吖頭↗ 提交于 2019-12-22 18:41:21
问题 I am using gcm in my application. In Google Developers Console page, I created a project and obtained a project id: Using this project id in my application, the user gets registered to the gcm servers and obtain a registeration id. Then it is sent to my 3rd party server to be stored. When 3rd party server wants to send message to the user, it uses the apikey I've obtained in the Google Developer Console page in the header of the post action and uses ther registeration id that has been stored

Is it possible for an Android Library to receive push notifications?

南楼画角 提交于 2019-12-22 15:54:12
问题 Lets assume there exists the following: Android App "A" Android App "B" Android Library "C" Server (pushes notifications) Is it possible for Library C to be registered to receive push notifications? In other words, I'd like App A and App B to use the dependency of Library C . I'd like for App A and App B to both receive push notifications when the Server pushes them to Library C . I was wondering if this is possible. If so, how? The reason I ask is because it seems when registering an App

Do I need to register to APNs to use GCM Push notifications in iOS?

℡╲_俬逩灬. 提交于 2019-12-22 13:53:52
问题 I am building a hybrid APP with cordova. I am using the phonegap-plugin-push to register to GCM so i can push notifications to Android. My question is if i need the APNs certificates to be able to use GCM in iOS, or if with the plugin alone and the registration to GCM is enough? 回答1: Short answer, Yes. You must then upload your APNs Certificate to GCM. Check out this Route 85 video about Sending Notifications on iOS through GCM. Other useful links for you: https://developers.google.com/cloud

calling a method inside MainActivity from GCM onMessage()

被刻印的时光 ゝ 提交于 2019-12-22 12:39:10
问题 i want when a new message received by onMessage() inside GCMIntentService.java , the onMessage() call a method called blinkLED() inside the MainActivity.java so the blinkLED() method can use the data received by onMessage() , how can i implement that ? a sample code will be helpful. 回答1: Use BroadcastReceiver. This tutorial shows you how to send a broadcast intent from a class, and have another class handles it. Short example, in your GCMIntentService::onMessage(), you may have this: Intent

Push notifications to various devices through a common code

自作多情 提交于 2019-12-22 10:59:51
问题 I have a requirement which is that I have to push the messages to various users who are using android or iphone devices.I know the individual process to send the push notification to android or iphone application. Now my work is that I need to do the server side implementation in java so that messages can be sent to android and iphone devices.The number of users using the andrioid and iphone devices is large say 10000 people. So to implement this requirement What should be the approach. What

Could Not Connect XMPP Server with smack : EOF Exception when implementing GCM XMPP-based App Server

痴心易碎 提交于 2019-12-22 09:54:38
问题 java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag <stream:stream> from line 1, parser stopped on END_TAG seen ...</mechanisms></stream:features>... @1:344 at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java