GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
WM Push Notifications and code execution
WM Push Notifications and code execution
Iniciado por Ruben Sanchez Peña, jun., 07 2017 2:52 PM - 2 respostas
Conecte-se…
Ruben Sanchez Peña
#1
Publicado em junho, 07 2017 - 2:52 PM
Hi. I need implement the code automatic execution when device receive the Push Notification. The notification is received in device and i need call to a function to data update. At the moment i can receive the notification but i must punh on it to execute the call to procedure.
Is it posible automatice it?
I have tried other methods to schedule the process (persistent thread, device alarm libraries, ...) but i think the Push Notification is the more secure, simple and useful.
Thanks in advance.
Rubén Sánchez Peña
Denunciar
0
0
ARV
#2
Membro registado
498 mensagems
Popularité : +8 (8 votes)
Publicado em março, 08 2019 - 10:59 PM
Hi Ruben
Maybe you solve this issue but....
to execute the procedure at the moment you recieve it it's only send it with out Title and Message
Like that the procedure that it's called for pushProcedure it will execute.
Now the notification it won't appear and you need to code it yourself to appear one for local.
Ok then it only works if the app it's on foreground, on Background the app on Android it will be launch out of nowhere.
for iPhone well... works great on foreground but the local procedure doesn't appear and if it's on background nothing change and it won't execute the procedure...
hope this help... and I have this issue about the foreground and background...
--
Best Regards
ARV
Denunciar
0
0
REVOLUTIONCHAIN
#3
Membro registado
12 mensagems
Publicado em janeiro, 27 2020 - 12:30 AM
No solution yet? Facing the same issue...
It should be something like:
- IF WinStatus(mywin) = Active THEN Procedure()
Denunciar
0
0
→ Voltar para WINDEV 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