Jason Tallman Posted March 4, 2016 Posted March 4, 2016 We have a solution that runs on iPad, iPhone and iPod Touch. When a user takes a picture with our solution it automatically grabs the users GPS coordinates. This works great on iPhone & iPad with GPS. On the iPod touch and iPads without GPS the process takes longer because it tries to use the wifi to determine location unless the user cancels by swiping. Does anyone know a way I can test via a function or script step to see if the device is an iPod Touch and then just not even run the location script?
Kris M Posted March 4, 2016 Posted March 4, 2016 (edited) Get(Device) https://www.filemaker.com/help/14/fmp/en/html/func_ref1.32.93.html Get(ConnectionType) http://www.filemaker.com/help/13/fmp/en/html/func_ref2.32.58.html Edited March 4, 2016 by Kris M
comment Posted March 4, 2016 Posted March 4, 2016 1. What happens if you try to use the Location function at startup? 2. Isn't there an OS option to deny FM Go access to location service overall? 1
Jason Tallman Posted March 5, 2016 Author Posted March 5, 2016 Thank you for the feedback. Unfortunately Get (Device) doesn't help because it only says if its an iPhone/iPod Touch or an iPad but not the capabilities of the device. Get (ConnectionType) only tells you how the file is hosted.
Fitch Posted March 6, 2016 Posted March 6, 2016 (edited) Kris actually linked to Get(NetworkType): https://www.filemaker.com/help/14/fmp/en/html/func_ref1.32.122.html#1068067 That does tell you if you're on cell. vs. wifi, but it doesn't tell you if the device is capable of cell. or not. You can get one step closer with Get(SystemVersion): https://www.filemaker.com/help/14/fmp/en/html/func_ref1.32.151.html#1069437 That will tell you if you have an iPod at least. I think what I'd do is: detect if it's iPad; if so, on first startup ask if they can use cell. and store that setting. I assume you're using the Location function for GPS. Don't forget you can set the timeout. Edited May 5, 2016 by Fitch I was wrong about Get(SystemVersion): only tells you iPhone on WebDirect.
Recommended Posts
This topic is 3437 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 accountSign in
Already have an account? Sign in here.
Sign In Now