[Location Plugin] On Position Changed (Location Tracker)

[Location Plugin] On Position Changed (Location Tracker)

  
Forge Component
(10)
Published on 2016-12-15 by OutSystems R&D
10 votes
Published on 2016-12-15 by OutSystems R&D

Hi,

I want to use the OnPositionChanged event of location Tracker , If some one already used it please post the example.



Regards

-PJ-

Hello Pramod.

Sorry for the late reply. Were you able to use the OnPositionChanged? Do you still need help?

Thanks


Yes , i am still looking for help, may be an example application.



Regards

-PJ-

Hey, Pramod,

The block, as it is, works in conjuction with the WatchPosition action: 

  1. the action creates a recurrent JS event...
  2. ...and the block catches it and throws a platform event, which can be handled by your own action.

You can check out the attached OAP for a working example (tested it myself).

Please tell me if you managed to get it working!

Best regards,

Carlos Simões

Where is the OAP?



Hmm, I could've sworn I attached it to the message and even saw it pop up.

No matter: click here to download it. Sorry for the inconvenience!

Downloaded Thanx ..will try it and let you know.



Regards

-PJ-

Hi Carlos,

I have a comparable challenge and tried to install your OAP, but i get this error: 

Regards, Leen.

Hello, Leen,

It seems like there was also a problem with the second OAP I provided. I updated it and tested on our public environment, which never had it, and it published fine.

Could you download and try it again, please? It just does what I reference on the post above, but I admit that I also prefer to see it in action, first. :)

Please let me know how it went!

Best regards,

Carlos Simões

Hi Carlos,

Your download example works now. Thank you.

Leen.

Carlos Simões wrote:

Hmm, I could've sworn I attached it to the message and even saw it pop up.

No matter: click here to download it. Sorry for the inconvenience!

Hi Carlos, you can provide the access to your OAP exemple? It is no longer available.

Thanks!

Hey, Louis,

Sorry, totally forgot that Dropbox was dropping public folder support. You can find it here, for future reference.

Please let me know if it worked for you, as it's an old upload.

Best regards,

Carlos Simões

hi all,

thanks for your precious example.

I'm trying to use Watch Location Exampl.oap. 

It's possible to use the WatchPosition to register a watcher different from the current device ?

so to track the position of another device , like another smartphone or gps keyring?

Hello, Luigi,

Well, there's no action to do that directly, but for another smartphone, you can always use push notifications to notify the device and trigger a watch. This depends on the app being open while track is made and the user would have to open the notification to start it.

For continuous tracking on the background, something like the Background Location plugin would be better suited, though.

Best regards,

Carlos Simões