A Alex_197 Well-Known Member Licensed User Longtime User Dec 10, 2020 #1 Hi all. In my app on the first start right after installation I need to pull Privacy statement from the Internet. But first user must accept permission to connect to the network. This permission pop-up and the user must allow it. But at the same time my app work flow continues and sub GetPrivacy executed. Of course it doesn't work because user hasn't allowed connection yet. Now I just use Sleep(2000) to wait for user. Is there any better way to do it? I've found this post Check for notification permissions but this is about notification permission. How to do it for Network permission?
Hi all. In my app on the first start right after installation I need to pull Privacy statement from the Internet. But first user must accept permission to connect to the network. This permission pop-up and the user must allow it. But at the same time my app work flow continues and sub GetPrivacy executed. Of course it doesn't work because user hasn't allowed connection yet. Now I just use Sleep(2000) to wait for user. Is there any better way to do it? I've found this post Check for notification permissions but this is about notification permission. How to do it for Network permission?
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2020 #2 Alex_197 said: But first user must accept permission to connect to the network. Click to expand... There is no such system permission. How are you showing the dialog? You can use Wait For to wait for it to be closed. Upvote 0
Alex_197 said: But first user must accept permission to connect to the network. Click to expand... There is no such system permission. How are you showing the dialog? You can use Wait For to wait for it to be closed.