Display the device's location as the app is opened.

133
1
Jump to solution
10-23-2018 12:46 PM
GiatriLalla
New Contributor III

Good Day All,

I want the device's location to be automatically turned on and displayed when the app is opened rather than having to click on a button or click in the mouse area. How can I do this? I am a bit lost as to how to do this. Any guidance is appreciated. Thank you.

0 Kudos
1 Solution

Accepted Solutions
ErwinSoekianto
Esri Regular Contributor

Giatri, 

Generally speaking, you should be able to call the operations (or block of code) that are used during "click on a button or click in the mouse area" for when the app is opened, for example in the Component.onCompleted() of the main component for the main page of your app. 

Thank you,

Erwin

View solution in original post

1 Reply
ErwinSoekianto
Esri Regular Contributor

Giatri, 

Generally speaking, you should be able to call the operations (or block of code) that are used during "click on a button or click in the mouse area" for when the app is opened, for example in the Component.onCompleted() of the main component for the main page of your app. 

Thank you,

Erwin