default screen OnInitialize
Question

I have a breakpoint on my OnInitialize action of the default screen. It seems that is not stopping when it loads from the first time at the first intance. Only if I click in the menu link to go again to the screen.

Filipe Lourenço wrote:

I have a breakpoint on my OnInitialize action of the default screen. It seems that is not stopping when it loads from the first time at the first intance. Only if I click in the menu link to go again to the screen.

 Filipe Lourenço. If you are using a mobile application you can check if the input module you are referring to in the debbuger is the module you want to analyze. Usually when working in layers that happens, but I can't say if it's your case. I did a quick test here (image attached) and it didn't go wrong.

 

testdebbug2.bmp

mvp_badge
MVP

Filipe check this documentation about screen lifecycles.

It shows what happens when you open your app:



So it will first run your Splash Screen, then go to your entry screen, and check permissions.
Just after that the On Initialize will be triggered.


May be a permissions issue?

I believe that if the user don't have the right permission it will be redirected to another screen depending of your exception flow.


Cheers and Regards,

RR :)

Raphael Ranieri wrote:

Filipe check this documentation about screen lifecycles.

It shows what happens when you open your app:



So it will first run your Splash Screen, then go to your entry screen, and check permissions.
Just after that the On Initialize will be triggered.


May be a permissions issue?

I believe that if the user don't have the right permission it will be redirected to another screen depending of your exception flow.


Cheers and Regards,

RR :)

Rafael. I thought about that possibility too, but they said that the second time he tries he gets on the page and then the debug works. Maybe if we had screenshots of the application we could help.

 

It makes sense , it is just when the app is in background on resuming, thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.