PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Push notification does not work on all mobiles in Android app
Push notification does not work on all mobiles in Android app
Débuté par PaulRajeshMEzra, 29 avr. 2022 11:46 - Aucune réponse
Membre enregistré
4 messages
Posté le 29 avril 2022 - 11:46
Hi

I have an app which is developed an Android in WinDev Mobile and is working properly in most of the mobiles.

But yesterday I got a complain from two users that the they is not getting any push notification.

One of the user who has complained is using Samsung Note 8 and the other one is using Panasonic phone.

On further investigation I observed that both these phones are not getting registered with Google's GCM.

The code I am using is:

//Register for Notification Here
NotifPushEnable(ActivatePushNotif,notifPushAllNotif)
NotifPushProcedure(ReceivePushNotif)
//=======================================
PROCEDURE ActivatePushNotif(bufIdentifier is Buffer, sError is string)

sRegURL is string

IF InternetConnected() = False THEN
RETURN
END

IF Length(bufIdentifier) > 0 THEN
//Call remote Script to sinder the PhoneID in DB
sRegURL = "[XxXxX.XXX];
sRegURL = StringBuild(sRegURL,bufIdentifier)

HTTPRequest(sRegURL)
ELSE
// Returns the error returned by the service
Error("Registration error: ", sError)
END
Is there any setting which we can change on the phone to get Push Notification to work as expected?

Thanks in Advance!!!!!