No GCM notifications received in emulator - android

I am developing an Android application that uses Google Cloud Messaging (GCM).
I follow these steps mentioned here:
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
When running many emulators, Database can get registration ID for each emulator. But unfortunately, I cannot receive any notifications sent by my app server (local host).
Do you have any idea what would make this problem ?
That will be appreciated.

Related

Xamarin Android GCM Client does not work

I have set up the GCM Client according to the example in the Xamarin component store. Furthermore I have followed the tutorial on Notification Hub.
I run my test on the Android 4.4.2 Emulator with Google API 19 and on various android devices (4.4, 5.1). I am working with the latest version of Xamarin.
In the emulator the PushHandlerService.OnRegistered is called and I can register the device token in the notification hub. However, the PushHandlerService.OnMessage method is not called when I send a message.
On real devices, not even the PushHandlerService.OnRegistered is called.
I have tried to send the message via notification hub and directly via the GCM service (HTTP Post). Both calls to the services succeed, but the message does not arrive in my app. I have tried notification messages with notification and/or data payload while the app is active or closed. I added my google account to the emulator. I have ensured that my google project number and package name are correct (google developer console corresponds to app).
How can I investigate my issue further?
Is there a possibility to see the delivery log in GCM?
Is there a way to see if the notification message at least arrives in my emulator's operating system?
What can go wrong so that my emulator receives a registration ID, but not the real device?
I finally ended up with the new GCM API according to the Xamarin tutorial: https://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/android/
Furthermore I unblocked the GCM ports on our firewall: : 5228, 5229, 5230

Apple push notifications on GCM

I'm trying to create application for Android and iOS and, i want to use push notification on both the application. I'm going to have a server app that will be sending the notification.
but i am trying to APNS and Parse SDK it's common to use ,but i want GCM through push notifications on iOS ,can you please how can it possible ,any such information about GCM to iOS push notifications ,i am googling but i want some suggestions for GCM through iOS device notifications.Can you help me.thank you.
There is very good descriptive instructions in Google Cloud Messaging for iOS guide. It shows whole flow from registration of device token to receive push from server with code example.
After go through above guide, you may go for Setting up a GCM Client App on iOS and you are almost done to use GCM with iOS application
Update: GCM now supports IOS. See Grigo´s comment.
GCM is Android specific. If you want to avoid dealing with 2 different services for IOS and Android, you can use something like Amazon SNS for example. SNS now supports pushing cloud notifications to Android, IOS and Windows devices via the AWS Mobile SDK.

Android app for broadcast message to multiple devices from pc

I need to create an application to send messages from my computer to the android devices.
The message has to be send to all the devices installed my app.
If possible to create the app pl z give me ideas.
You need to use Google Cloud Messaging Service. Google Cloud Messaging GCM is a free service that helps developers to send notifications to their Android application. GCM connection servers take messages from a 3rd-party application server (written by you) and send them to a GCM-enabled Android application (the "client app," also written by you) running on a device.
This is Google Official site for you. This is sample tutorial site for you.

is gcm push notifications are slow in android?

I am using Google Cloud Messaging in my application. I am facing this issue. some times i am getting push notifications earlier and sometimes i am not getting even single message also.on that time i am switching the wireless or mobile internet data on and off than the notification are coming..
how to get notifications fast from Google Cloud Messaging server....
please any help me with u suggestions....
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Yes its depends completely on the gcm servers. Basically what happens is when you create google api key(gcm key, you tube api key etc ) at google api console it takes time to propogate to all the servers i.e the server where you have created the api key and the server which your using push gcm notifications are different.So at starting you will face some issue, after words it works smoothly.

How To Create Notification Service For Android Device?

I want to develop the notification system where from web application when i click on "Send Notification" button that will send notification to all the device where my apps installed.
I googled a lot and found few clue how to do it.
Cloud google notification.
Pull service.
Pull service runs on device all time so it will effect the device performance.
I have totally confused what to do and which option will be best for me?
Please suggest me and if anyone has development please share me if you have demo apps of it.
Thanks in Advance.
Google Cloud Messaging Reference would be a good starting point.
You have to use GCM - Google cloud messaging for your functionality.
Refer to demo application given in android developer site.
GCM Demo Application
And main link is - Google Cloud Messaging for Android
Google Cloud Messaging for Android (GCM) is a service that allows you to send data from your server to your users' Android-powered device. This could be a lightweight message telling your app there is new data to be fetched from the server.For more details
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL.Click here.
Google Cloud Messaging for Android.Click here

Categories

Resources