Jump to content
Sign in to follow this  
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

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
Sign in to follow this  

×