N Nicolás Cieri Active Member Licensed User Jul 24, 2020 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2020 #2 It should work. I've created a small B4A + B4i example: https://www.b4x.com/android/forum/threads/b4x-b4xpages-firebase-push-example.120523/ Upvote 0
It should work. I've created a small B4A + B4i example: https://www.b4x.com/android/forum/threads/b4x-b4xpages-firebase-push-example.120523/
N Nicolás Cieri Active Member Licensed User Jul 24, 2020 #3 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
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.
N Nicolás Cieri Active Member Licensed User Jul 24, 2020 #4 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: Copy Private Sub Application_Start (Nav As NavigationController) Dim rl As ReleaseLogger rl.Initialize("192.168.1.133", 54323) Log("Applicaiton Started") Upvote 0
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: Copy Private Sub Application_Start (Nav As NavigationController) Dim rl As ReleaseLogger rl.Initialize("192.168.1.133", 54323) Log("Applicaiton Started")
N Nicolás Cieri Active Member Licensed User Jul 24, 2020 #5 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
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.