I've been messing around with C2DM and have a nice little app working perfectly in the Emulator. I send a message from my app server to Google's C2DM servers, the message will arrive on the emulator and my app would respond appropriately.
My problem now is running the app on my smartphone (a Nexus One). The app runs fine and registers for C2DM with Google and then forwards it's rego ID to my application server. This is all working as expected. Problem is, when I send a message from my app server to the phone, my app never receives the message. After some investigation I found out
that the message reaches the phone, but the C2DM subsystem seems to be forwarding the message to the Google Talk app and not MY app.
Has anyone seen this behavior before? Can anyone give hints on what to look for to solve this? I was assuming that if the registration messages where forwarded to my app, then everything else should be as well.
Thanks,
Jamie
It now 'just works'. For some reason after today's testing everything is just working. The only differences are an update to Froyo that came down OTA a few weeks back but other than that the app is it's original version.
Related
I faced a problem took my time for 5 days.
When I send push notifications with FCM, web service response back success as below
{"multicast_id":7792208922657857316,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1501588248469528%fdb01da9f9fd7ecd"}]}[]
But it not received in some devices.
just for inform you it can received by some other devices.
I searched several sites but my problem is remained yet.
The multicast_id is just a confirmation that your request has been accepted by the FCM server.
Possible issues why push was not received on some devices:
Device offline in the given ttl
App was force stopped by the user/battery saving app/launcher customisations like MIUI, OPPO color OS etc
User un-installed the app. Google at times is not able to able to mark the user uninstalled immediately.
I am following androidhive's tutorial. I am having weird problem if I try sending notification from console everything is fine. But if I try sending notification from web app devices below lollipop is not receiving any notification. What might be the possible problem
This is first time I hearing this type of issue and have you tested with other device other than your development devices. If a device is registered with the gms then it should receive the message. Try to clear the cache data of your app might be helpful.
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) It can send an echo message and it comes back
However, it never receives messages from the server.
I use the same WiFi for several phones. This rules out issues with firewall.
I tried to hard reset the phone (to make sure that I am getting the latest Google Play Services).
Any ideas? Has anybody seen issue like that?
We are experiencing intermittent problems receiving ActiveSync e-mail on Android phones. Samsung recommends restarting the device which works.
Is there an app available that could send an e-mail every hour and receive an automatic reply without user intervention? If the app detects a problem, the user would receive a notification that e-mail is not working.
Any other suggestions would be appreciated.
I have recently been working with C2DM on a Samsung Galaxy Tab 10.1" running stock Honeycomb. I finally got the device registering and my server sending out push messages, however, when I tried to run the exact same code on a Motorola Xoom (running Stock Honeycomb), two Sony tablets (running Stock Honeycomb), and a phone (running CM7.1) none of them worked.
I got fresh registration IDs for each of the devices and tried again and again, but always only the Samsung works.
I have a print statement in the onRecieve() of my BroadcastReceiver class and this gets printed every single time for registration of each device. It only ever gets printed again (when I send a push message) on the Samsung tablet. Does anyone know why this might happen?
I would post some code, but I honestly don't know which part of my code to post. I cen't even figure out if it's server side or client side. I did, however, try to follow the Google Doc as much as possible.
Make sure each device is properly registered and that you pass in the proper device id when you send the POST request to google. Also, the devices need to have a Google account logged in. Check all the requirements here: http://code.google.com/android/c2dm/
Also, if the device is already registered, don't register it again. Once it's registered, confirm it in onReceive and if it is, then try sending an actual push with a payload.