iOS Question B4XPAges - Notification Click

Nicolás Cieri

Active Member
Licensed User
Hi!,

1. The application is closed.
2. Receive a normal Push Notification.
3. I click on the notification.
4. The application is displayed (visually it appears to have started).

The app startup code doesn't really run like when the app actually starts. I think this problem may be related to the B4XPages.

I even did a test in the "Application_Start" to send a data to my server.
When I start the app normally, it runs fine.
When I launch the app from notification, the app freezes with a black screen.


Thanks.
 

Nicolás Cieri

Active Member
Licensed User
Hi Erel !, Push Notifications work very well for me, that's not the problem.

The problem is that when I click on the notification and the app (previously closed) runs.

The application does not match the code of "Application_Start" or it gets stuck.
 
Upvote 0

Nicolás Cieri

Active Member
Licensed User
Even if you try putting this code in "Application_Start", it runs when the App is started directly, but not when it is started through a notification.

B4X:
Private Sub Application_Start (Nav As NavigationController)
    Dim rl As ReleaseLogger
    rl.Initialize("192.168.1.133", 54323)

    Log("Applicaiton Started")
 
Upvote 0

Nicolás Cieri

Active Member
Licensed User
An apology Erel, the code being exactly the same today if it works, I don't know why not yesterday.

Maybe Apple limited me for sending so many notifications? Do you think it has any logic?

Regards.
 
Upvote 0
Top