PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → [WM23] Local notification
[WM23] Local notification
Started by ARV, Aug., 27 2018 7:23 PM - No answer
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on August, 27 2018 - 7:23 PM
Hi

I'm trying to use a local notification on android and iPhone
I use a firebase and Apple respecting service.
I have a function on the start of the app that recieve the push notification from those plataforms
in there I create a local push to show the user it have something new while the global procedure it's executing.

the thing is:
Android:
I cant create a notifiction but this only show the name of the app it doesn't put the title and message I want and I put on my code:
NotifDelete(NotifLocal)
NotifLocal..Title = "new message"
NotifLocal..Message = "new message."
NotifLocal..Deletable = True
NotifLocal..Content = "new message."
NotifAdd(Notif)


I put the notifdelete to delete the previous one but it doesn't delete it I put the NofiLocal variable global just to see if it could work but nope.

iOS:
I have the exact same code on android to iOS but this one doesn't show anything, it execute the code of the global procedure of notifpushprocedure but it doesn't add the notification. I search on pcsoft help but it say that the only way to put a local notification it's with the event background of the app, but if my user it's using the app I want to show him he has some new info without using toastdisplay while my app it's running on foreground.
is it a way to add a notification with iPhone?


Thanks

--
Best Regards
Jose