Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
New Contributor
Posts: 5
Registered: ‎04-23-2019
Accepted Solution

automatically periodic action in Mobile

Hi, 

Is there anyway to run sql insert from mobile application every 5 minutes (for example) automatically, inserting current gps location of the mobile itselfe??

 

thanks   

Staff
Posts: 98
Registered: ‎10-25-2016

Re: automatically periodic action in Mobile

Hi,

 

you can use the GPS track view to permanently record GPS positions.

 

Inside your Shell.xaml add the following to your views:

 

<Navigation Id="GPSTrackNavigation">
        <View Id="GPSTrackPage" Title="GPS Track" View="GPSTrack" ViewModel="GPSTrack" />
</Navigation>

Add a new menu item:

 

<MenuItem Target="GPSTrackNavigation" Title="Track" Icon="Gps" Type="Toolbar" />

Regards

Christian

New Contributor
Posts: 5
Registered: ‎04-23-2019

Re: automatically periodic action in Mobile

That is very nice,

Now we need the database save action without user interaction (automatically and beriodically), what is the code lines i have to add to the xaml file?

Highlighted
Contributor
Posts: 27
Registered: ‎05-06-2019

Re: automatically periodic action in Mobile

firstly i want explamation about View="GPSTrack" ViewModel="GPSTrack" what mean each of them 

secondly i make same as in your post but i get an error wen i press to stop and save the recorded path

and the error is attached

thirdly if there is way to know if this recorded path saved in my database and where

 

 

Contributor
Posts: 63
Registered: ‎10-10-2015

Re: automatically periodic action in Mobile

I get the same error, I am using PostGIS database. 

 

 

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.