google-cloud-messaging

Make GCM work on all networks

二次信任 提交于 2019-12-11 11:53:18
问题 This is a follow up to this question. Which port and protocol does Google Cloud Messaging (GCM) use? The issue here is that there are many WIFI networks out there which blocks the ports GCM use, and for me is sounds crazy that a push solution uses so often blocked ports, it makes our solution unreliable. We build apps for consumer market, not enterprises, so we can make reservations like "will only work on port range 5228-5230, make sure these ports are opened in your network". I can't be the

GCM Push RECEIVE category Name on Android OS < 4.1

好久不见. 提交于 2019-12-11 11:48:44
问题 I have push enabled for my application and my manifest is as seen below: Package Name: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.norton.mobile" android:versionCode="1" android:versionName="1.0" > My receiver is as below: <receiver android:name="com.pravaa.mobile.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <!-- Receives the actual messages. --> <action android:name="com.google.android.c2dm.intent

PushNotification.register using GCM is not receiving Registration Id

為{幸葍}努か 提交于 2019-12-11 11:26:50
问题 I am trying to add pushNotification feature to my Android app.I have followed the steps in the following tutorial: http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/ As they said above, I have created a project in Google dev console and get the project id. Now I could be able to see "Google cloud messaging for Android" is ON. I have created the project in my machine using Cordova cli and the below is my JavaScript. I am using Android 4.4 Kitkat.

GCM notification duplication issue. Received same message many times

你离开我真会死。 提交于 2019-12-11 10:38:02
问题 I have noticed one issue in dealing with GCM. If you un-install the app and install it again the GCM registration id is changed for that device. And previous registration id is still working. So in my database there are multiple registration ids which are referring to one device. So sending only one notification received multiple times on the device. Please help me on this. 回答1: You can solve this issue, with the use of canonical_id which is part of the response of GCM when called for sending

GCM “Topic Messaging” doesn't deliver to all of the subscribers

自闭症网瘾萝莉.ら 提交于 2019-12-11 10:33:43
问题 We use GCM to send a message to a specific topic, e.g. /topics/weather . But we see unexpected behavior from GCM. Using some repeated tests we find these: It delivers to devices randomly (Meaning it doesn't deliver to some devices at all) Delivery is delayed (for long times) on some devices Has anyone had the same issue and somehow managed to find the solution? Any help or guidance is appreciated. 来源: https://stackoverflow.com/questions/33146089/gcm-topic-messaging-doesnt-deliver-to-all-of

Android GCM messages repeated

十年热恋 提交于 2019-12-11 10:25:51
问题 I am working on a chat application and trying to use Google cloud messaging following this tutorial: http://hmkcode.com/android-google-cloud-messaging-tutorial/ It works fine but the notifications are delivered more than once, ie: if I send "hello" there will be like six notifications saying "hello" !! The minimum is 2 notifications. onHandleIntent method : protected void onHandleIntent(Intent intent) { Bundle extras = intent.getExtras(); GoogleCloudMessaging gcm = GoogleCloudMessaging

GCM push notifications | Inconsistent retrieval, unwanted delays, and empty bundle

限于喜欢 提交于 2019-12-11 10:22:20
问题 I am integrating push notifications in my app for tickles and basic messaging. The idea is they will never be sent from the server (Cloud to device) but rather from a device (device to device). The third server I am using is Firebase. I can register with GCM just fine. But, when I send a message 50% of the time I never see it. When I do, it takes over 10 minutes to get it, and the bundle is always empty. Here is my code: To register, I call this from my Application.java GcmRegister

GCM Console shows 0 (zero) requests after a successful

十年热恋 提交于 2019-12-11 10:19:00
问题 From my ASP.NET web service and using my GCM Browser API key I can successfully send a GCM Push Notification getting the following success response: {"multicast_id":4623804699821154941,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1393876717064721%59cd098ff9fd7ecd"} Two Problems: 1) The Google Developers Console shows 0 (zero) Requests and 0 Errors even after multiple 'Sends' and browser refreshes of the console page. Shouldn't the count change with every GCM Push

One device doesn't receive push notifications (GCM)

本秂侑毒 提交于 2019-12-11 10:17:47
问题 I have old Motorolla Droid Razor (Android 4.0.4) which doesn't receive push notifications. I had a problem receive push notifications on it from my app. Initially I thought that I am doing something wrong (there are a lot of small things which break it). I got GcmClient (Google's sample app - https://code.google.com/p/gcm/) built it and tried it. It works fine on other phones, but doesn't work on this one. On this phone tt can: a) Find Google Play Services b) It can register and get regid. c)

Instance ID not invalidated when clear application data

元气小坏坏 提交于 2019-12-11 10:17:44
问题 I have implemented GCM 3.0 with Instance ID API for sending push notification to application using Application and GCM server. Here is Instance ID API for GCM documentation which i am referring. When User direcltly uninstall application without logout then GCM gives "Not Registered" error for devices with the app uninstalled. What i have to do is to remove useless Device id tokens from Application server for that i have tried with Uninstall of application then Instance ID is changed but when