GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
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
Iniciado por TuqueroIMKJernalyn, abr., 29 2022 10:01 AM - 1 resposta
Conecte-se…
TuqueroIMKJernalyn
#1
Membro registado
9 mensagems
Publicado em abril, 29 2022 - 10:01 AM
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?
--
TuqueroIMKJernalyn
Denunciar
0
0
TuqueroIMKJernalyn
#2
Membro registado
9 mensagems
Publicado em junho, 10 2022 - 12:34 PM
Not the answer but one important thing for you to consider is not to use GCM anymore since it is being deprecated after april 11th... use FCM instead: developers.google.com/cloud-messaging/android/…
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
https://echat.date
https://chatspin.download
--
TuqueroIMKJernalyn
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto