Push notification don't recieved on some device - android

I am implemented push notification in APP using Google cloud message
http://developer.android.com/google/gcm/client.html
but I faced problem.
On some devices we receive push on another not. I testing two the same devices on one working on another no. But after "Back up and reset" settings on doesn't working device he start receive Push messages. Does anybody have this problem? Or there are some restrictions on GCM (maybe with accounts on devices or GCM conflict with some program).

Related

GCM Push notification not received on single device android

GCM Push notification is not received to one device alone. It is working fine with other mobile devices. GCM token is registered and it is active. But the notification is pushed but not received. The device model which is not receiving is Moto G4. To other users who uses this device model are receiving the notification. Please help in finding the issue. I tried re-installing the application and also cleared the cache. But no solution found.
First confirm once if there is no error message returned from GCM server. Check if the notification priority is 'high' in gcm/fcm send api
Try the code ##426## to check the hear beat status of your google play services.
Check if there are any device specific settings like 'Disabling autostart option'[in MIUI devices], 'no notification in locked state'[in oppo devices] or any security apps the kills your app if the app is in background.

GCM Push Notifications not getting recieved on Lollipop devices

Ok,
I'm developing an android app which is enabled with GCM for Push Notifications.
I was having trouble getting push notifications on any device (lollipop / pre-lollipop) when on college wifi. I researched about it and found that the port 5228, 5229, 5230 on my college's firewall (Cyberroam) were closed. So the administrator opened them and now I am receiving push notifications, but only on pre-lollipop devices. Lollipop & Post-lollipop devices still aren't receiving push notifications.
No problem occurs when i use the app on cellular data or on private wifi (at my place).
I'm not able to understand why this is happening.
NOTE: Interesting thing is that all MI devices are receiving push irrespective of their Android version.
Can someone explain what might be happening and solution to this problem.
Thanks.
I found out that the Cyberroam was blocking all requests from the GTalk service. That is why push notifications were not getting through. It is resolved now.
Thanks

not receive push for android

I am testing an apps. Push notification is working fine in our server environment. But in client's environment, large amount of Android devices (NOT ALL) do not receive any push notification.
What is the possible factor? the return status form GCM is "Failed"
the return status from GCM is "Failed"
Android Device which is Receiving push must be online, if not GCM will pool notifications till it reached a mark of 100, It will start clearing the pool if more notification arrives at their end
large amount of Android devices (NOT ALL) do not receive any push notification.
Did you check you have correct GCM ID with each device? If not The device will never receive a single notification. If your device have a valid GCM ID and have received some notification then it must be a problem in connecting with the device.
Also device must have Latest Play Services installed to get the notification on board

Push notifications between ANDROID devices

I am trying to figure out how to push a received notifications from one android device to another one. Example: someone sends you a message on your android phone. You receive a notification on your watch that this happened. Any suggestions?
If I understood correctly what you want is to receive a notification on the android watch when you receive a notification on the phone is that right?
Well this happens automatically so if you don't want to add anything extra or custom to a notification you don't have to do anything.
If you want to produce custom notification for wearable with specific actions, icons or other thing you need to follow the android guidelines at https://developer.android.com/training/wearables/notifications/creating.html
You might need to intercept the notification you receive on the phone and handle it like this and then send it again to both phone and watch.
This is solely for communication between Android devices that each have Google Play Services installed and valid registration IDs:
You will need a bidirectional implementation of GCM, one that allows devices to both receive and send messages to the server. The HTTP GCM server setup will only allow downstream communication (server -> device). For your needs you can use the XMPP implementation of GCM.

Android device not receiving GCM push messages until network state changes

I have implemented chat in my project and using GCM for it.In this i have came across the strange issue.
I have do following steps for it.
Send chat message to server.
Server fetches reg key of device and send push message to GCM server.
Now on other device in which i am receiving push message i tried waiting for the push message for a long time.
But i did not receive the push message.
Now when i turn my wifi off and on it again or switch from 3g to wifi or vice-versa, i get all push messages at once.
I have read GCM docs and i also have seen these two questions in Stackoverflow.
Google Cloud Messaging - messages sometimes not received until network state changed
Device stops receiving GCM pushes until network is switched
I have also referred a google groups question regarding this issue
Problem in getting messages on device using GCM.
But i didn't get any solution till now.
I am using Asp.net at the server side.
Any help or suggestion is appreciated.

Categories

Resources