Determining platform on which FM is running
Specifically, I want to know if FM 11 is running on an iPad. How do I determine this?
Returns 3 when performed on the mobile device
In some cases Get ( ApplicationVersion ) may be helpful
From this KnowledgeBase article: http://help.filemaker.com/app/answers/detail/a_id/7734/kw/get%20%28%20applicationversion%20%29
You'll get these results for iOS devices:
Ok, the first thing I did was read get(systemplatform). My documentation via help does not have a #3 option. It has
-1 if the current platform is PowerPC-based Macs
1 if the current platform is Intel-based Macs
-2 if the platform is Windows XP, Windows Vista, or Windows 7
So, I thought I might be behind on updates and checked - nada, my version is current. I belive in RTFM before asking. Why did I not see a "3" option in my help doc?
Philmodjunk: Thanks for the pointer. I see the 3 there for systemplatform. I also see applicationversion. Is the following logic going to be bullet proof:
if (get(applicationversion) = /Go.*/ ) then
Runtime is always going to be FM Go
Runtime is something else
Next: should I not be using my FM help doc - it's stale - right? Advice needed.
As always, thanks all for the useful info..
The FMP 11 Help files were created before FM Go came out, the info I gave you was from a Knowledge Base article (upper left hand of this page) that was released afterwards. The knowledge base will always contain the most up to date info, FM has released a couple of tech documents and many knowledge base articles on Go.
Bumper - thanks for the info!
Most of the time, the online help is fine, but this is one of the cases where it's out of date due to the release of FM Go after v11 was released. Never hurts to check the knowledge base--especially for iOS questions due to its more recent release.
I'd use this code to detect Go users:
if [ Get(SystemPlatform ) = 3]
I'd use if [ PatternCount ( Get ( ApplicationVersion ) ; "iPad" ) ]
If I needed to know that my GO user was using an iPad instead of an iPhone.
And do Runtime's work on iPads and iPhones? I believe you'll still need to set them up with .fp7 files--not runtimes and they'll need to have FM Go installed on their iOs machines.
Thanks PMJ. That's what I ended up doing.
I am a little hazy on my distribution rights and the runtime models. It's my understanding I can distribute .usr files to my customers and the associated folder components without any licensing implications to my clients.
However, can you explain what it means to distribute a .fp7 file? Can I do this without having customers purchase license agreements from FM? If so, are there any technical implications for distributing .fp7 files that I need to be aware of? Most of my clientele are Apple/iPad users and having transportability of the FM DB product across both platforms is important (no plans for sync'ing yet).
I pretty sure that you can sell or even give away a .fp7 file, but the user has to buy their own copy of FMP to run it. Just look at all the excellent files that people like Richard Carlton give away every day, not to mention all the technique specific files that are passed around amongst us.
My point is that your iPad and iPhone users wil not be able to use the application that comes with the run time. Instead, they will need to acquire FileMaker Go.
Ok, so just to make sure I understand, a run-time will run on FM GO - right?
I should have said downloading a .usr file to an iPad with FM GO works - right?
I don't know as I do not own an iOs device with which to try it. But if it doesn't, just change the extension back to .fp7 and it should open like any other Filemaker Pro file.
Retrieving data ...