M.App Enterprise Discussions

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
Highlighted
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: 104
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?

Contributor
Posts: 28
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: 71
Registered: ‎10-10-2015

Re: automatically periodic action in Mobile

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

 

 

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

Re: automatically periodic action in Mobile

Hi @IslamYasser , I tried with the new version ME 2019, and the error remains.

 

Have you performed tests with Postgres and the new version of ME 2019? 

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

Re: automatically periodic action in Mobile

I did a test with a Hexagon demo Server (https://mappdemo.hexagongeospatial.com/Apps/?tenant=lasvegas), the same error message in my mobile device.

 

The Phone:
iPhone 6s, iOS 13.1.3

Language: Spanish

Technical Evangelist
Posts: 158
Registered: ‎09-01-2015

Re: automatically periodic action in Mobile

Hi all,

 

the bug is fixed in the next point release (MAE 16.6.2). The release will be somewhere in the next two weeks.

 

 

Kind regards,

Stefan