Jump to content
Vanar

Delphi 11.3, iOS: How to properly configure the reception of PUSH notifications in an iOS application?

Recommended Posts

Good afternoon!
I have a question about push notifications in iOS.

Is it possible to handle the click_action event (user clicking on a push notification)?

The situation is as follows:
I can't properly receive PUSH notifications when the iOS app is open or in the background.

I'm interested in three application state scenarios:

1. iOS application is closed. A PUSH notification arrives. When you press PUSH, the application opens and “Some code” is executed.
    - This script works perfectly!
2. iOS application is open. A PUSH notification arrives and immediately “Certain code” is automatically executed. I wish it would ONLY run when PUSH is pressed!
3. The iOS application is in the background, minimized. A PUSH notification arrives. When you press PUSH, the application is activated, BUT “Some code” is not executed!

That is, it all comes down to the PUSH notification click event:
Only after clicking on PUSH notifications do I need to execute "Some code"

Tell me how to do this or suggest your own scenario.

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

×