google-cloud-messaging

Success:1 still no notification in android

谁说我不能喝 提交于 2019-12-24 18:06:07
问题 I am trying to send push notification through GCM but I am getting: { "multicast_id":4793018731783267982, "success":1, "failure":0, "canonical_ids":0, "results": [ { "message_id":"0:1452928098906665%a69ccee8f9fd7ecd" } ] } but still no notification is coming. Here is my code: //index.php code $app->get( '/notify',function () use($app) { $response = array (); $regId="device registration id"; //hard coded $message="hi everyone.this is to notify you" ; $registatoin_ids = array($regId); $message

How to send push notification to more then 1000 user through GCM

这一生的挚爱 提交于 2019-12-24 16:10:52
问题 I'm using asp.net c# to send push notifications to users through GCM. This is my code to send notification. string RegArr = string.Empty; RegArr = string.Join("\",\"", RegistrationID); // (RegistrationID) is Array of endpoints string message = "some test message"; string tickerText = "example test GCM"; string contentTitle = "content title GCM"; postData = "{ \"registration_ids\": [ \"" + RegArr + "\" ], " + "\"data\": {\"tickerText\":\"" + tickerText + "\", " + "\"contentTitle\":\"" +

dependency error while adding firebase messaging to a flutter android project

时光毁灭记忆、已成空白 提交于 2019-12-24 15:25:53
问题 I've added firebase messaging to my Flutter project. Works fine on iOS, getting an error when trying to run on Android: Android dependency 'androidx.localbroadcastmanager:localbroadcastmanager' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath. You should manually set the same version via DependencyResolution My configuration: in pubspec.yaml cloud_firestore: ^0.11.0+2 firebase_auth: ^0.11.1 firebase_messaging: ^5.0.1+1 in android/build.gradle classpath 'com

GCM Registering with 2 registration Id's in my Ionic App via PhoneGap Push Plugin

自作多情 提交于 2019-12-24 14:08:15
问题 I have an Ionic App in the front end and a NodeJS app in the backend. I am trying to simulate a native app notification from front end. Now arise two questions. First there are two methods to register for GCM on google. One is via Console and one is via developers.google.com. While most of the tutorials go for the console method. Some go for the second method too. I am confused as to which method to follow as both give projectID and API Key. Second Question. I am receiving a regestration ID

Can i use one GCM project number in two different app for receive Push of GCM?

前提是你 提交于 2019-12-24 12:35:02
问题 We have two different application but both required same push notification from Google Cloud Messages and i have use only one sender id (Project No of Enable one of Google Console )in both app . Do this will create any issue because i am getting two push for same message in my one of the application. 回答1: Simply restrict your notification by package name: Sender sender = new Sender(KEY); GCMessage msg = new GCMessage.Builder(). restrictedPackageName(GC_PACKAGE_NAME).build(); 来源: https:/

What are the right parameters for xmpp-connection (spring integration) to make it work with google gcm?

ぐ巨炮叔叔 提交于 2019-12-24 12:13:55
问题 I want to setup spring-integration-xmpp on my spring app to make it receive upstream messages from android devices. I can already send messages to the android device using http but I cannot set up the xmpp-connection bean so it gives me: failed to connect to gcm-preprod.googleapis.com; nested exception is Connection failed. No response from server.: This is my spring integration configuration: <int:channel id="gcmOutboundNotificationChannel"/> <int-xmpp:xmpp-connection id="xmppConnection"

Android Client-Server architecture: GCM versus webservice

我的未来我决定 提交于 2019-12-24 12:01:04
问题 I have an Android application with a local database that contains information about pictures stored on the device. I want to create a server with pictures that could be provided on demand to all devices that have my application installed. So my application can provide local pictures or pictures from my server and also needs some information related to those pictures. I analyzed GCM and it great for message communication, but since the size of the message is limited to 4kb I can't send the

How to connect appengine application running on local server with GCM server

佐手、 提交于 2019-12-24 11:34:37
问题 I have created client-server project to figure out GCM(Google Cloud Messaging) service. It is working well on my first try when i deployed :-- 1)Android App to my device. 2)Appengine App to Appengine server. But i am missing one thing what if i need to make changes to project mainly on appengine app. Every time i need to deploy to appengine server to test it whether its working properly or not. Its takes lots of time. How to test LOCAL appengine server app (as server) with android DEVICE (as

Getting NoClassDefFoundError with Google Cloud Messaging (GCM) on Nexus 4

六眼飞鱼酱① 提交于 2019-12-24 08:26:05
问题 I have the gcm.jar in my classpath, so eclipse compiles the project but it fails on my Nexus 4 device with 02-24 11:52:12.645: E/AndroidRuntime(30240): FATAL EXCEPTION: main 02-24 11:52:12.645: E/AndroidRuntime(30240): java.lang.NoClassDefFoundError: com.google.android.gcm.GCMRegistrar 02-24 11:52:12.645: E/AndroidRuntime(30240): at com.foo.closethedoor.CloseTheDoorActivity.onCreate(CloseTheDoorActivity.java:77) 回答1: I have the gcm.jar in my classpath It needs to be in your project's libs/

Does gcm require each device to register using a google account?

▼魔方 西西 提交于 2019-12-24 08:14:54
问题 I am planning to use gcm push notifications. I have gotten my api key. I understand that gcm requires each device to register before using the gcm service. What i am not clear about is the meaning of registration? Does each device user need to have a google account for the app to work on his device? Or any email address would do? Any clarification would help. 回答1: There should be one Google account setup on device.. else the app won't be able to receive gcm push notifications. 回答2: After ICS