Jump to content
Gitisme

Delphi iOS Push Notifications (APNS)

Recommended Posts

Hi

 

My app successfully receives a token from:
PushService := TPushServiceManager.Instance.GetServiceByName(TPushService.TServiceNames.APS);

But when sending a notification to that token, I do not get a notification.

 

All i can find about remote notifications for Delphi 11.3 is Firebase sdk implementations.

 

Are we not able to use Apple push services anymore?

 

Thank you,

Share this post


Link to post
55 minutes ago, Gitisme said:

Are we not able to use Apple push services anymore?

You can use Apple Push Services, but it's for iOS only.

56 minutes ago, Gitisme said:

But when sending a notification to that token, I do not get a notification.

You don't give any details about how you're sending it, or what you are sending. Are you following the documentation, here? https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns?language=objc

Also, have you enabled Push Notifications for the App ID that is used in the Provisioning Profile for the application? Please refer to: https://blog.grijjy.com/2017/01/31/receiving-push-notifications-from-apples-push-notification-and-googles-firebase-cloud-messaging-services/

Share this post


Link to post

Thank you for the feedback.

I did not realize that Apple changed their push notification process that much, as I have been disconnected from it for a long time 😄

 

Problem on my server side was: I did not use a jwt.

 

All sorted now 🙂 

  • Like 1

Share this post


Link to post

hi all ,

 

there is a Server Side delphi example projet to send Apple push notification using tokens?

 

Thanks in advance

 

Beppe

Share this post


Link to post
4 minutes ago, Beppe Magistro said:

there is a Server Side delphi example projet to send Apple push notification using tokens?

Just Apple? There's this demo I put together a while ago - all it does is creates a message and performs the push. Make sure you read the readme at that link.

Share this post


Link to post

653821103_Screenshot2025-02-07alle16_39_43.thumb.png.1715d03c1309c7d8ab3e659625b04406.png

 

hi Dave,

 

I tried to build th example following the readme , but i have this errors.

 

it's Delphi 12.2

 

Thanks in advance

 

Beppe

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×