FAQ Database Discussion Community


content or data limit for Android push notification (GCM)

php,android,push-notification,android-gcm,google-cloud-messaging
Is there any data limit for android push notification GCM using php. I passed data (message) through this code. $url = 'https://android.googleapis.com/gcm/send'; $fields = array ( registration_ids' => $registatoin_ids, data => $message, ); $headers = array( Authorization: key= . GOOGLE_API_KEY, Content-Type: application/json ); // Open connection if(!function_exists('curl_init')) echo "CURL not...

PARSE: Push Notifications “deviceToken” undefined

android,parse.com,push-notification,google-cloud-messaging,devicetoken
This is the situation in my Installation page on Parse Console: As you see some devices have the "deviceToken" and some do not have the "deviceToken". This is not good because every device should have the deviceToken in order to work. How is this possible? This is a serious problem...

'The 'Pods' target has transitive dependencies that include static binaries' when installing GCM

ios,cocoapods,google-cloud-messaging
I'm trying to install Google Cloud Messaging for my iOS application (using swift). I've added it to my Podfile like so: # Uncomment this line to define a global platform for your project # platform :ios, '8.2' use_frameworks! target 'Project' do pod 'Alamofire', '~> 1.2' pod 'Google/CloudMessaging' end target 'ProjectTests'...

Push notification with GCM on ios

ios,google-cloud-messaging
I tried to do as Koh suggested here, my problem is that when I send this JSON : { "to": "/topics/test", "data": { "aps" : { "alert" : "You got your emails." } } } But the notification I receive is : Notification received: { aps = "{\"alert\":\"You got your...

Remove message from GCM

php,android,android-gcm,google-cloud-messaging
I have an application, where the users logs in, gets a registration id from the GCM and send it to the server. My server will use that registration id and GCM to send notifications to the user. Now, I have the following situation: the user goes offline, the server sends...

GCM Checking for Delivery Failure when time_to_live = 0

android-gcm,google-cloud-messaging
Is there a way to determine if the delivery of a message failed when time_to_live = 0? According to the GCM reference, messages that have time_to_live = 0 are attempted to be delivered immediately, but are discarded on failure, rather than saved for future delivery. I was wondering if there...

Xamarin Google Cloud Messaging GcmClient.CheckDevice(this) causes runtime error

c#,android,xamarin,google-cloud-messaging
So I am trying to register my application with GCM using the Google Cloud Messaging Client component in Xamarin. when ever I run this code in my application, however, it gets a runtime error at the GcmClient.CheckDevice(this) method call. The button is in the main activity and its just so...

Google Cloud messaging service returning empty registration id

java,android,android-emulator,android-gcm,google-cloud-messaging
I'm running into an issue implementing Google Cloud Messaging. When i try to register my emulator i'm suppost to get the Registration ID of the device, which in this case is my emulator. So when i looked around i saw i needed to link a google account so i did...

Android - Real time location sharing

java,android,mysql,google-maps-android-api-2,google-cloud-messaging
I want to develop a app, through which we can share our real time location with another users who are using same app. I have designed the GUI in which I have showed the friend list and share button in front of each friend. When we click on share button...

Push notification reaching ios (apns) but not android (gcm) device

android,push-notification,android-gcm,google-cloud-messaging
So I have a simple Ruby app that uses Rpush to send push notifications to my iphone and my android phone. Right now all it does is sends it to the iphone. I am not sure whether the problem is with my script (i.e. incorrect values for the registration_id, app_name,...

java.lang.NoClassDefFoundError: com.google.android.gms.gcm.GoogleCloudMessaging using java.lang.NoClassDefFoundError:

java,android,eclipse,google-play-services,google-cloud-messaging
This is really annoying. I've wasted a whole day but haven't received any proper result. I'm trying to add Google Cloud Messages into my app. I'm using Eclipse last version. ADT last version. I've added google-play-services_lib as Library, added the jar file in Build path but my app drops at...

Registration ID become “NotRegistered” for no reason

android,android-gcm,google-cloud-messaging
During April, we've start receiving a lot of 'NotRegistered' errors. According to the Google docs it should happen only if app was uninstalled or updated, but in our case token can "expire" in ~40 minutes even if absolutely nothing happen with device. And what makes things even worth is that...

GCM, how do I know end of XMPP packet?

python,sockets,xmpp,android-gcm,google-cloud-messaging
I'm implementing a Google Cloud Messaging XMPP server in Python. I can connect and authenticate to the GCM, however I use self.ssl_sock.recv(1024) which isn't good, but works for the auth. However when I later on want to receive messages from the GCM I read on the socket, but how many...

Minimum iOS version for Google Cloud Messaging

ios,google-cloud-messaging
I am looking and I can't find what minimum iOS version GCM handles. On official website it just says how to install with pods. CocoaPods documentation does not say what minimum version of iOS version can be. Does anybody know what minimum version of iOS Google Cloud Messaging can handle?

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GooglePlayServicesUtil

java,android,eclipse,android-gcm,google-cloud-messaging
I'm trying to run the sample of Google Cloud Messaging, which follows the tutorial from official website https://developer.android.com/google/gcm/client.html. However, the sample suddenly crash and generate the error as following: After tracing, I found the error in this block of code: /** * Check the device to make sure it has...

How to implement Google Cloud Messaging - Topic Messaging in Chrome?

google-chrome,google-cloud-messaging
In the Google Cloud Messaging for Chrome documentation there are no information about Topic Messaging feature. https://developers.google.com/cloud-messaging/chrome/client Is not yet available? Here is the GCM reference docs without subscribe method https://developer.chrome.com/apps/gcm And here is the Android and iOS reference with the GcmPubSub class that provides subscribe/unsubscribe methods: https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmPubSub...

Android: InstanceID deleteToken Scope

android,google-cloud-messaging
I was implementing Google Cloud Messaging in an app. Firstly I get the token using InstanceID, the next step is to register the device in my server and I get an HttpResponse. Depending of this response, I would like to delete the token and unregister the device in my server....

SharedPreferences deleted when the app is killed

android,sharedpreferences,google-cloud-messaging
I have a Service which can receive notifications (with Google Cloud Messaging) and notify the user. In that very service, I also store the message sent by Cloud Messaging by using SharedPreferences. I gather those messages in a HashSet, and neither that HashSet nor any of its elements are supposed...

Push notification to android from ASP.NET webservices

android,asp.net,vb.net,web-services,google-cloud-messaging
Please help me, I have a problem to push notification for android from ASP.NET webservice (VB.NET). this is my code. Public sApplicationID As String = "YYY....ZZZ" Public sSENDER_ID As String = "222...555" <WebMethod()> _ Public Function SendMessage(ByVal RegistrationID As String, ByVal Message As String) As String Dim regid As String...

Not able to connect to GCM server in iOS app after switching google developer account

ios,objective-c,push-notification,google-cloud-messaging
I'm developing an iOS app for integrating with GCM. I have successfully done all the steps and was able to connect to the GCM server once. But then, I changed my google developer account and made a new app in google developer console for using GCM with iOS and also...

New GCM google-services.json and plugin needed?

android-gcm,google-cloud-messaging
The latest GCM update includes steps on developer.google.com to create a configuration file and use a gradle plugin. I have an existing app that already configured to use GCM. Is switching to the plugin recommended? Will this cause any problems. Looks like Google is moving to using this plugin &...

Error in Google Play Services: read failed: EPERM (Operation not permitted)

java,android,google-play-services,ioexception,google-cloud-messaging
Here is the LogCat error I am getting: android java.io.IOException: read failed: EPERM (Operation not permitted) at libcore.io.IoBridge.read(IoBridge.java:435) The error is given in the following code, where I am trying to register a device using AsyncTask: private void registerInBackground(){ mRegisterIdTask = new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void......

Weird push message received on app start

android,push-notification,android-gcm,google-cloud-messaging
I'm getting a weird push message captured by my push service: Bundle[{CMD=RST_FULL, from=google.com/iid, android.support.content.wakelockid=1}] Just started to happen yesterday and I can't really spot which code change is to blame for this. Has anyone seen this message before and maybe knows where is it coming from and why?...

Why can't I link my domain with Google Cloud Messaging for Android?

android,push-notification,google-cloud-messaging,google-webmaster-tools
I'm unable to link my domain under APIs & Auths->Push->Configure webhook notifications for android in the Google Developer Console and I'm not sure why. It asks you to enter the domain after you've linked it within Google's Web Master Tools. I've linked it but I still get an error saying:...

How do I tell Google the IP of an Azure Service Bus Notification Hub?

android,azure-mobile-services,google-cloud-messaging
According to Google, these are the steps to set up Android push notifications on Google Cloud Messaging service: In the sidebar on the left, select APIs & auth > Credentials. Under Public API access, click Create new key. In the Create a new key dialog, click Server key. In the...

google cloud message send notification but my device is never pushed

java,php,android,curl,google-cloud-messaging
I'm trying to make a web app with push notifications. I'm using server key with no ip adress filtering so any ip is allowed (when I was adding my public shared ip from my server I was getting a 404 forbiden error...) Now it looks like it works, when I...

Google old GCM vs. Google New GoogleCloudMessaging

android,android-gcm,google-play-services,google-cloud-messaging
i'm developing a news application and i'm confused between using the old GCM and the new GoogleCloudMessaging, they said GCM is deprecated, but it runs well when you get the gcm.jar and compile it in your app. So my question: is it safe to use the old deprecated GCM method...

Android: Transfering Data via ContentIntent

android,push-notification,android-gcm,android-pendingintent,google-cloud-messaging
I've got a problem with my Android Application. It receives Messages via Google Cloud Messaging and displays a Notification in the Notificationbar. I want to transfer some Data with the Notification. This Data comes via Google Cloud Messaging and should be attatched to the Notification. This is my Code to...

Unable to receive upstream GCM messages with Node.js + XMPP

javascript,node.js,xmpp,google-cloud-messaging,node-xmpp
I'm new to node.js and XMPP but not Javascript or GCM. I'm unable to receive upstream messages using node-xmpp and none of the callbacks are called, not even error. I've looked through the other SO threads but none of the solutions have worked. Here is my entire route: var express...

Google Cloud Messaging on a non-PlayStore App

android,android-5.0-lollipop,google-cloud-messaging,device-owner
Working on a device-owner application (installed at provision time with NFC), so far I did not find any way to provision devices directly with a PlayStore-based-App, that is why I keep using a private distribution mode for my apk, directly downloaded from a private server... In this context here is...

Android how to update (UI thread) from other classes (really?)

java,android,android-asynctask,google-cloud-messaging
you may know about Google Cloud Messaging The problem is that when a gcm message triggers by the server, my application receives a bundle from google play services, this happen at GcmBroadcastReceiver.java. Here i can send this data to other classes in order to append some info from the server.....

Architecture for cross platform messaging app

android,google-app-engine,backend,ejabberd,google-cloud-messaging
i am looking to build a mobile messaging app firstly in android and then ios later, and am struggling with the backend architecture and need some advice on what would be best in my circumstance. Basically i am used to just developing apps through a basic web server and using...

Where to put google-services.json file into eclipse project?

android,eclipse,google-cloud-messaging
I'm trying to implement the new GCM client on Android. At one point, you have to enable Google Services for the app. After enabling Cloud Messaging you have to download the file google-services.json and put it in the app/ or mobile/ directory. The problem is that in my eclipse project...

How to send silent push to iOS via Google Cloud Messaging

ios,apple-push-notifications,push,google-cloud-messaging
How to send silent push notification to iOS application over GCM? Silent push is notification that will not appear in notification center, but awake application to do some action in background. Google introduce new features in new GCM with possibility to send push messages to Android, Chrome and iOS. Any...

Easy way to unsubscribe for all topic subscribed with GCM (iOS device)

ios,google-cloud-messaging
I am trying to push notifications through topic system in a iOS device with the new API of Google Cloud Messaging designed for iOS device. I have the right certificates so I can receive notifications from a topic created. My code to subscribe to a topic is the following :...

google cloud messaging and push notification to device?

android,push-notification,google-cloud-messaging
i need to know and understand what is the concept used by google cloud messaging to push notification to the device. I know that GCM check every some minute if there are new messages awaiting, if yes google push this message to android app, my question is how google push...