PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → iOS push notification with APN
iOS push notification with APN
Iniciado por csoft, 31,oct. 2022 17:10 - 3 respuestas
Miembro registrado
9 mensajes
Publicado el 31,octubre 2022 - 17:10
Hi all,
I have a problem with receiving of notify on the Apple iOS device. I put the code to consent the user to accept the notification and stored returned token id in the remote database.
After this I get this token id and send a message via Apple APN service with generated certificate from Apple. I haven't any error when sending but on the device I not receive any notification.

Can anyone help me?
Miembro registrado
3 mensajes
Publicado el 08,noviembre 2022 - 07:56
I got the DevicePushToken and sending APN push notification in the backend with Node, but I just couldn’t get it work in Expo (managed workflow). I followed exactly in docs which poorly documented and I also tried exactly like this.

APN returns: {"reason":"DeviceTokenNotForTopic"}

-Added APN in Apple Dev Portal and downloaded .p8 file-Uploaded it to with expo credentials

-Used .p8 successfully when sending APN request

-Sent request using ‘development’ https://api.development.push.apple.com

-Checked entitlement and its 'aps-environment': 'development'

-And yes, Bundle ID matches and exactly same in expo and apple dev portal

Desperate for any suggestions? I trying to send notifications with image snippet and looks like FCM for Android and APN for iOS are the ways to do, but just can't seem to make it work.
Miembro registrado
9 mensajes
Publicado el 15,noviembre 2022 - 10:24
In my case, the notification not work on the lastest iOS. All works fine with previous version.
Publicado el 05,abril 2023 - 16:40
csoft escreveu:
Hi all,
I have a problem with receiving of notify on the Apple iOS device. I put the code to consent the user to accept the notification and stored returned token id in the remote database.
After this I get this token id and send a message via Apple APN service with generated certificate from Apple. I haven't any error when sending but on the device I not receive any notification.

Can anyone help me?


How you did that?
I could not find any solution for this notification problem.
Is there any sample code or someting like that.
Support does not give any kind of help