google-cloud-messaging

should I check in the Google Play services library project to source version control for GCM support?

淺唱寂寞╮ 提交于 2019-12-25 06:57:27
问题 I already added the support for GCM at our android app, however one thing bothers me is about the Google Play services library project. Based on this link Set Up Google Play Services SDK, I should do the following at step 4: Make a copy of the Google Play services library project. If you are using Eclipse, import the library project into your workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it. We

Push notifications for a large number of devices

这一生的挚爱 提交于 2019-12-25 06:34:51
问题 I am pretty new in the push notifications issue, i want to develop an application for both android and IOS devices, the application should be able to receive real-time push notifications. The number of users for this app may reach more than 1,000,000 users, i am searching for a good tool for push-notifications. The most important thing i am concerned of when sending notifications is low-latency, i want to reach a large number of users as fast as possible . I saw that the service of Google

Led not working on Android using Unified Push Notification of worklight (6.0.0.2)

余生长醉 提交于 2019-12-25 06:26:01
问题 I'm using the UPN system of Worklight Consumer Edition 6.0.0.2 to send push notifications. When I receive a push notification no led light appears on Android. Why? I tried on: a Samsung S4 with Android 4.3; a Nexus 5 with Android 4.4; a Samsung S3 mini with Android 4.1.2 . I use WL.Server.createDefaultNotification to build the notification payload: var notificationObj = WL.Server.createDefaultNotification(notification.TITLE, badge,{}); notificationObj.GCM.sound="default"; and then I use

Subscribe to topics suddenly throws “java.io.IOException: InternalServerError”

Deadly 提交于 2019-12-25 06:23:59
问题 since today I encountered the following issue with GCM "subscribe to topics". Nexus 6, Android 6.0.1, Google Play Services 9.0.83 Using google-play-services:8.3.0 in app. Step 1 I follow the documentation from Google for getting the token through the instance id. After getting the token I successfully subscribe to the "topics/global" topic and store the token in the shared preferences. protected void register() { SharedPreferences sharedPreferences = PreferenceManager

Android GCM Unable to start service Intent

别等时光非礼了梦想. 提交于 2019-12-25 05:16:12
问题 Hello I want to make a simple notification application. I am using this (http://www.youtube.com/watch?v=rmzv716SYkQ) tutorial. here is my codes. manifest file <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <uses-permission android:name="com.google.android.c2dm

GCM Push Notification without using JSON

∥☆過路亽.° 提交于 2019-12-25 05:04:15
问题 I am trying to migrate my application from C2DM service to new GCM push notification. I have successfully integrated the GCMIntentService class which extends GCMBaseIntentService. When I send the push notification from server using PHP, the GCM sends the message data as a JSON object. I am using the following code in my Android GCM service, and its returning a null value with the new code. public void onMessage(Context context, Intent intent) { String action = intent.getAction(); if ("com

How to send a notification to multiple firefox devices at a time

人走茶凉 提交于 2019-12-25 04:34:16
问题 Anyone know how to send the notification to multiple Firefox devices in one POST call. 回答1: The Web Push standard currently doesn't allow it. Take a look at this discussion for more information. How to send a notification to multiple subscribers using web-push package of Node.js? contains a possible alternative solution (the question is more specific than this one, but you could apply the same solution). 来源: https://stackoverflow.com/questions/36133772/how-to-send-a-notification-to-multiple

Invalid Registration Id with my gcm php server

余生颓废 提交于 2019-12-25 04:29:10
问题 So I'm POSTing to my gcm.php and sending the registration id of the users phone to be put in a text file on my server (Will implement a DB afterwards). For some reason, I'm getting an invalid registration error when I post to the gcm server. I've checked my txt file and it's not getting populated (which is the problem) So I'm curious what I'm doing wrong in my android client side code that isn't sharing the user's ID with my php server. gcm.php (server) <?php //generic php function to send

Mobilefirst PushNotification: On using wl_anonymousUserRealm at server, app is not calling onReceive method on clicking notification

风格不统一 提交于 2019-12-25 04:26:52
问题 I am working on IBM Mobilefirst native android app. I have written code to enable push notification. I am getting notification but I have an issue here. On Launch of the app I am calling following code. final WLClient client = WLClient.getInstance(); push = client.getPush(); ResponseListener listener = new ResponseListener(ResponseListener.AUTHENTICITY_CONNECT); client.getPush().setOnReadyToSubscribeListener(listener); challengeHandler = new AndroidChallengeHandler(realm); client

InvalidRegistration both on C2DM & GCM

独自空忆成欢 提交于 2019-12-25 03:52:25
问题 I'm trying to send Push Notifications via C2DM / GCM to an Android Application via PHP. No matter which i use, i keep getting the following : For GCM : {"multicast_id":7672049265453358197,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]} For C2DM : Error=InvalidRegistration After reading allot about this issue all day I'm still clueless as to why this is an InvalidRegistration as if i take the registatoin_id and use it to send a test push message via Urban