PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → [WM23 Android/iOS] Notification
[WM23 Android/iOS] Notification
Iniciado por ARV, mar., 06 2019 10:33 PM - 4 respostas
Membro registado
514 mensagems
Publicado em março, 06 2019 - 10:33 PM
Hi all

I have this situation.
I send notification from my server to Android and iOS

I want to execute the procedure that process the notification with out accepting or clicking on the notification.
I solve it sending the notification without a Message or Title.

but theres the thing.
Android:
If the app it's on background it will execute the procedure right away and it will open the app and then execute my notification for code and so on.

I don't want this, I want to process the procedure without opening the app if this one it's on background.

iOS:
It won't execute nothing if the app it's on background

I don't want this, I want to be able to process the procedure and then put a notification on code without opening the app.

so there it is.

in the end the functionality I want it's this

on foreground:
Put a notification on code (LOCAL) then execute the procedure of the push notification

on background:
Do not open the app, show the local notification and then execute the procedure (if this is not possible) then when the app it's on foreground, execute the procedure.

Thanks for your time.

--
Best Regards
ARV
Membro registado
514 mensagems
Publicado em março, 07 2019 - 2:57 PM
Hi all

I have another question

If I do the Send Notification for a windev or Webdev with title and message

is it possible to the device (Android/iOS) Know that Have a notification? I don't want to the user accept the notification to execute the process.

is it there another way to know that?

--
Best Regards
ARV
Membro registado
514 mensagems
Publicado em março, 08 2019 - 10:19 PM
Hi all

No one have done this before?....

--
Best Regards
ARV
Publicado em março, 11 2019 - 7:31 PM
good afternoon,
I work with push for both, I send my information in the field "CONTENT" and do not inform title or message, this way in android comes silently and the action is executed without the user clicking, if you want can create a notification within the action, but IOS is not that simple, so I understand the documentation is not possible, but there is a way to run something in the background since it includes this option in Capabilities, I recommend to take a look at the rules of Apple for this.
Membro registado
514 mensagems
Publicado em março, 11 2019 - 10:05 PM
Hi Vilani

Thanks for your reply

I see, Yes on Android works great on foreground but in background the app it's launch and I don't want this.

on iOS I read more about this and works like I want it.
on Background launch the notificaton I could use another funcitons or situations to handle my information.

but on Android I don't really want the app launch out of nowhere.

I will read about this on Apple to know more about this, but the issue still on Android.

--
Best Regards
ARV