google-cloud-messaging

java.lang.NoClassDefFoundError: GCMIntentService

蓝咒 提交于 2020-01-16 02:24:06
问题 My app used to work perfectly fine. Recently I updated eclipse (the plugins), and now I am getting this error. I have not changed my code so I know it should continue to work. but it does not. I am using the google eclipse plugin, which the updates changed to version 8. Basically I still see everything in the android project. the gcm.jar is still there for example. And my manifest has not change. I can keep listing stuff but it would just be more words. Bottom line: It used to work fine. 回答1:

what does mean by error code “notRegistered” when sending push messages using GCM?

别来无恙 提交于 2020-01-16 00:45:30
问题 I am trying to send push notification to the registered device through Java server by following code: import java.io.IOException; import java.util.ArrayList; import com.google.android.gcm.server.Constants; import com.google.android.gcm.server.Message; import com.google.android.gcm.server.MulticastResult; import com.google.android.gcm.server.Result; import com.google.android.gcm.server.Sender; public class Test { private void sendNotification() { try{ Sender sender = new Sender(

Avro message for Google Cloud Pub-Sub?

一世执手 提交于 2020-01-15 10:23:16
问题 What is a best data format for publishing and consuming to/from Pub-Sub? I am looking at Avro message format due to it's binary format. Usecases are there would be real time Microservice applications publishing Avro messages to pub-sub. Given that avro message is best suited when batching up messages(along with a schema attached with the binary message) and then publishing the messages, would that be a better suitable format for this usecase involving microservice? 回答1: Google Cloud

Which API key for android GCM server

孤街醉人 提交于 2020-01-15 05:34:05
问题 I am confused a little for which API key should I use for the GCM server. In the documentation it says use android api key, which did not work with me and always gives unauthorized. http://developer.android.com/google/gcm/gs.html I used server key which worked for me, but I am wondering why the documentation says that? Am I doing something wrong? I saw this post also, but I could not get an answer. GCM Push Server side, which API Key to use? Thanks for advance. 回答1: Server Key is the one that

Android Gcm Not working with ROR

半世苍凉 提交于 2020-01-15 03:51:26
问题 I read basic example for implementing google gcm. I developed small client side android application which successfully gives me registration id from gcm server.. now on server side I am using Ruby on rails hence we use this gem for implementing server side of gcm https://github.com/dondeng/gcm_on_rails. I pass my registration id to to my server. I successfully ran these commands device = Gcm::Device.create(:registration_id => "XXXXXXXXXXXXXXXXXXXXXX") notification = Gcm::Notification.new

can't receive messages on device using GCM

浪子不回头ぞ 提交于 2020-01-14 19:18:28
问题 i've followed google instruction on initiating a gcm server and client. my problem is though i get a successful gcm from server : MulticastResult(multicast_id=8287827393174436535,total=1,success=1,failure=0,canonical_ids=0,results: [[ messageId=0:1366468335181772%8e1522ac00000031 ]] i'm not able to see any movement of receiving a message on the client - onMessage() isn't called. client id as well as server id are correct as far as i can tell. i'd appreciate any help... :) the server side code

How to register my android app to parse site

不问归期 提交于 2020-01-14 14:39:08
问题 How should i register my android app (or) device to parse push site to get the notification. now i was connected to GCM. am not able to step ahead and register my device with parse... 回答1: Here's the best way to implement official Parse SDK for standard push notification based on my experiences and several trial and errors and also many SO and Parse threads reading . So I'll walk you through these steps: Add the following dependencies to the app build.gradle file, and you can get the latest

GCM update 7.5 to 8.3.0 fatal exception

走远了吗. 提交于 2020-01-14 14:06:47
问题 I tried to update the GCM services (Google cloud messages) libraries (from 7.5 to 8.3.0) in my Gradle project. But now, with this new version, i'm unable to launch my previous activity which was working perfectly before. The code which handle the following error is : Intent in = new Intent(this, MyGcmListenerService.class); startService(in); MyGcmListenerService.java : public class MyGcmListenerService extends GcmListenerService { private static final String TAG = "MyGcmListenerService";

Phonegap: “processMessage failed” unable to send javascript function (Cordova 2.5.0)

会有一股神秘感。 提交于 2020-01-14 02:20:11
问题 I am trying to make GCM push notifications work in my app and therefore I am using this project (https://github.com/marknutter/GCM-Cordova) as an example. When I run the example code everything works fine, but when I transfer all the required files and edit my code to let it work in my own app it does not work anymore. I also tried the following plugin (https://github.com/phonegap-build/PushPlugin) and after installing it automatically it gives exactly the same error. The app does not crash,

Google Cloud Messaging: Send message to “all” users

守給你的承諾、 提交于 2020-01-13 20:33:07
问题 I am following this tutorial to understand the system of GCM. I have a question regarding this part: It is possible to send messages to every single registred user, but how to change that code so I can send a single message to ALL regisrted devices? I've already looked for answers: sending push notifications to multiple android devices using GCM and Sending Push Notification on multiple devices (nearly same question) - but could not find any answer solving my question. <body> <?php include