Potential Permissions Problems

You should move it where it is first needed. The LocationSensor component requests permission due to its Enabled property being set to true. If you change it to false in the designer it won't prompt on startup. Then you can enable it in the blocks at the appropriate time and it will request permission at that point.

Properties of components are set before Screen1.Initialize is called, which is why you see it in the observed order.

2 Likes