Hi,
I’m using the plugins Geolocation(GPS) tracker element to get users location.
-
I have one workflow where user clicks on a button and allows GPS tracking

-
The other workflow works when user is connected on the home page, to have its location updated :
This two WFs trigger the same custom event
In the case 1. => it works fine, in case 2. => user adress is updated and empty, I’ve no idea why ??? has anyone come across this before ?
The app has been wrapped by bdk and is on appstore and playstore, not sure that makes a difference.
Where are the coordinates coming from?
Mobile ?
I put the gps tracker on the single page of the app :
in your screen shot you show the dynamic expression for use of the calculate address from coordinates. Show the coordinates part so it is clear where the coordinates data is coming from as likely the data is empty when it is not working
Hi @boston85719 , coordinates come from calculation based on latitude and longitude :
Use the inspector tool to inspect what is the value of the GPStracker user’s latitude and longitude before you run the action to set the address (when it doesn’t work) to verify if those values are populated or not.
I did, on the first workflow triggered by “when a condition is true” (condition is page loaded entirely and url param nav=home) nothing’s populated, but when I initiate the same WF with a button, it works…
which is annoying because I’d like the user location to be updated every time they open the app… Maybe there is another way to do this ?
Check the box to add breakpoint in debug mode to verify that trigger is even working or not…from the sound of it, it is working, and it sounds like the GPS tracker does not have the values needed, which is likely because your custom workflow is step 1 to start tracking, so it is likely it has not tracked yet and the values are empty.
Try putting the start tracking into it’s own custom workflow, use the return data feature to verify it has captured the GPS data and then run another custom workflow with just the get position and again use the data return to verify data is available and then do the make changes to user.