Jump to content
Server Maintenance This Week. ×

FM Go & GPS call from filemaker app


This topic is 631 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi everybody,

 

I saw the function of localisation in the ios device and insert from URL.

But is it possible to call a script on the ios device form the filemaker app. For exemple I want to know where the device is and click on a button from the filemaker app, not from the device ?

 

Do you also have exemple fo native gps of the device and call it form the application in case filemaker go is not open on the device ?

Kind regards
Antoine

Link to comment
Share on other sites

https://help.claris.com/en/pro-help/content/location.html?Highlight=location

You can get latitude and longitude from your iOS device then pass this in as a parameter to an API such as Google Maps or What3Words

"https://api.what3words.com/v3/convert-to-3wa?coordinates="  &
GetValue ( Log::cLoc ; 1 ) &  
"%2C" & GetValue ( Log::cLoc ; 2 ) &
"&key=<your_API_KEY>"

 

Link to comment
Share on other sites

Hi thank you very much. I got this part.

But how to ask from the app on my computer to ask the device to send the lat & long ? Can I run a script on the device from my computer ?

And what to do if the database is not open on the device ?
Then I would like a GPS from the device to send data every x minutes. But this I really don't know how to do. It seems that people have done that.

 

Kind regards
Antoine

Link to comment
Share on other sites

The location functions are only available on the "device" running FMGo which is iPad or iPhone.  The function is not available on the desktop.

The database must be open and you must run a script to get the GPS data constant polling for your Location would not be ideal for battery life of the device. 

You may be better off using Shortcuts on the device and send results to the FileMaker app you have on device. 

Link to comment
Share on other sites

Hi Ocean,

can you help me with my shortcut ?
I think I'm ok because when I try from my computer via a URL data api solution I can create record into my database.

But from my short cut with the same URL & login, I get a token but when I use the api for record creating I get a missing header error.

Do you see something weird ? 

Thank you very much for your help

Antoine

IMG_2121.PNG

IMG_2122.PNG

IMG_2123.PNG

IMG_2124.PNG

Link to comment
Share on other sites

Hi,

 

I found the mistake myself. There was 2 times the MyToken variable into the url header after Bearer. Not easy to see on an iphone but saw it on the mac.

For the one who wants to copy the steps.

 

have a nice day.

Antoine

Link to comment
Share on other sites

This topic is 631 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.