Google Cloud Messaging restrictions - android

I've just added GCM pushes to my Android app, and developed Rails backend for it. When I tested it the system worked good. Later I tried to send pushes from my server again but my app got nothing; after 30 minutes it got 3 notifications at the same time. What's the trouble? Does GCM have some restrictions? For example, count of notifications per houror something else. Is it possible to fix it? Thanks in advance.

It's probably just a bug of GCM they got the same thing.

Related

Parse.com doesn't push to android

I am using parse's latest SDK with android and i implemented it with my project which also using MaterialViewPager framework from github but for some reason, when i send a push from the web interface (dashboard), it says recipient found but "Push Sent 0".
Your code seems to right but this are many issues with Parse Push for Android. I have experienced same kind of issue many times. Sometimes, push notification arrives late. There are many questions about these problems on SO. Unfortunately, there isn't any solution that works for these situations. The clear solution I found is to use GCM.
instead of trying to solve a problem which i don't really know if it's from my app or parse itself as i tried so many things and wasted 2 weeks on that. I moved from parse to Google Cloud Messaging and it works fine. Push notification sent like instantly.

Android real time updates from server

I see that apps like facebook for example are getting push notifications in real time. When someone writes a message to me from a pc ill get the message to my android device as push notification just a second later even when my facebook app is not running.
Im wondering how it works because for my app i need a quite similar behaviour. There is also a messaging and an alert mechanism between server and client but i cant imagine how i could implement it so that i can get real time updates from the server to the client even when the app is not started.
Does someone know?
Yes, use Sync Adapter with GCM (Google Cloud Messaging) :
http://developer.android.com/training/sync-adapters/index.html
Read the tutorial i provided, you will at least know what to use.
And check this SO question, it has good answers (especially the accepted one) :
Sync data between Android App and webserver

Building an Android notification server

Is there any documentation on how to build a custom notification server for Android? I am currently using GCM but due to the nature of the app and the fact that notifications are a very important feature in my app, I would rather implement this service internally so that I can control the throughput and not have any artificial limitations (even if it's hundreds of thousands of notifications per day). I also would like to use the same notification server later on with the iOS version of the app and for that reason, a custom built notification server is much preferred.
I would ideally like to know what's involved in order to write a similar messaging system (on the Android front-end). To further clarify, I would like to understand how (on top level) the GCM notification internally works on Android and how to replicate that functionality on my own.
Any help would be greatly appreciated.
Thank you
for the last 3 months I feel the same way as you do.
1, you should read this first mqtt.
2, and give yourself 1 hour of watching this
3, theres alot of examples out there on how to integrate client and over here for the server.
EDIT: some success stories here from facebook.
Its worth a shot. :) hope this will help you :)
I think Pushwoosh does exactly what you want to do. There also exists UrbanAirship, but unlike Pushwoosh UrbanAirship's service isn't free.

Notification system

I've been looking at notifications for an app I'm making and I'm looking for a similar functionality to the Facebook app. There you receive notifications even though you are not in the App (by receiving something via WiFi/3G).
I've noticed for example that after you restart your phone (and without opening facebook) the notifications still arrive.
It is an important part of my app because it is used to display alerts of failures on a machine.
Anyone knows how to do that or what material I should read for that?
Thank you for your time.
Google cloud messaging user notifications does this.
http://developer.android.com/google/gcm/notifications.html
Push notifications is what you're looking for.
http://developer.android.com/google/gcm/index.html
I'd go with Google Cloud Messaging. It will send broadcast to your device in which you can decide if to raise a notification or not
refer to this link :http://developer.android.com/guide/topics/ui/notifiers/notifications.html
try this out !!

Android Push Notification Send to all without Limit & Google account

Hi my client is asking that it is possible to Send Push notification in android without google account and free also sending to all not 1,000 per request
I have checked GCM but they have limit
and also what if i made my own server which will send request to server every second will it crash the server ??
Thanks
Sorry I don't mean to advertise, but this works flawless for me:
I use a free service called Parse, its pretty easy to push notifications to android as well as iOS devices. The tutorial is pretty easy, check it out.

Categories

Resources