PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM23] iOS Push Notification
[WM23] iOS Push Notification
Débuté par ARV, 06 mar. 2020 16:48 - 4 réponses
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 06 mars 2020 - 16:48
Hi all

I'm trying to send push Notification for my iOS device
But I can't do it the function NotifPushSend it launch an error:

What Happend?
"Security errors detected while implementing the communication"

System error message:
"The credentials supplied to the package were not recognized"

I already revoke and re create my certificates because I think it was there the problem but no
I even change the name of my package of my Project if there's anything to do with that and I still get the same error.

from the part of the device I create my develop certificate with Notifications on and everything I need to get notifications, I even check if I get the Id of the device to make this work and works just fine, so in the end the problem it's on the functions to send notifications.

Not sure what to do.
I search info about Apple and they said the APNs will updated with a new way to send push notifications but it will be available on November 2020 so we have time to use the same way also they recommend to updated the way to send notifications now, I'm not sure if this could be causing internal problems with Windev in some way.
Here's the source of Apple:
https://developer.apple.com/news/…

Anyone have the same issue?
Anyone have an idea for solving this problem?
I can't make it work on iOS devices

if you ask about android, it just works fine with firebase and the ID token of the device.

--
Best Regards
ARV
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 11 mars 2020 - 17:20
Hi

No one have try this before? with XCode 11 and Windev Mobile 23?
No one know anything about this issue?
Also Where I'm sending the NotifPushSend it's on Windev 23
My iOS device it's a iPhone SE, where I'm developing my app it's on Windev Mobile 23

--
Best Regards
ARV
Membre enregistré
1 message
Posté le 06 mai 2020 - 06:45
Hey buddy! You can check the solution here: https://github.com/Redth/PushSharp/issues/645
https://cyberflixapk.fun
In my experience, I've had to always only select the private key portion of the cert in Keychain and export from the private key only. Not sure why exactly this works how it does, but that's what has to happen.
Posté le 18 novembre 2020 - 23:02
Hello, a simple way to integrate Push notifications in the IOS platform is by integrating the Indigitall Notification Service, it works Excellent, it also allows you to send Notifications with an animated image, Segmented, Geolocated and many more functions, here you can look at the Documentation.
https://docs.indigitall.com/en/indigitallsetup/mobilepushquickstart/ios.html
There he explains the steps, it also includes a Video. I recommend it.
Membre enregistré
50 messages
Popularité : +7 (9 votes)
Posté le 24 novembre 2020 - 21:13
@Arv, my friend many things have changed in IOS since Windev 23, including the way notifications are sent. In windev 23 and the current IOS API Structure for sending Push messages it will not work anymore with Windev Mobile 23 UNLESS you decide to write your own code in C or in Swift and implement the new APIS yourself, because if you try to use the built in functions in windev 23 they will no longer work. remember the mobile world its an ever changing world, and you need to keep your system updated. so you have 2 options really 1) Write your own code with C and Swift and implement all the calls yourself 2) Update your License to Windev Mobile 26