how to make asynchronous process in mobile

how to make asynchronous process in mobile

  

Hi,


how to make asynchronous process in mobile using client action?

i want to capture location of my device each 30 seconds.

I tried background location plugin, but it can't capture the lattitude and longitude.

so now I tried using location plugin but I'm stuck at how to make it into async process.


Thanks..

Hey, Tobit,

Not sure I understood your use-case very well, but assuming you want to execute a client action recurrently every 30 seconds, with the app opened, you can use setInterval from a JS node to do it.

If not, what are you trying to achieve? Do you need to record your location with the app on the background?

Best regards,

Carlos Simões

Carlos Simões wrote:

Hey, Tobit,

Not sure I understood your use-case very well, but assuming you want to execute a client action recurrently every 30 seconds, with the app opened, you can use setInterval from a JS node to do it.

If not, what are you trying to achieve? Do you need to record your location with the app on the background?

Best regards,

Carlos Simões

Hi Calos,

yes I want to make the process running in background.


Ok, not sure how the plugin works, but what have you tried? Does the plugin have sample code we can look into?

you can find background location plugin in forge. 


Hi Tobit,

I think this component is what you're looking for...

https://www.outsystems.com/forge/component/1623/background-location-plugin/

Hi Harlin,


I've tried that plugin and can't get the latitude and longitude value.

I also ask the outsystem.success, they've tried it also and can't get the lat and long.