I'm using 'dial phone' with my solution using the FM IOS SDK
I'm getting unknown command with my solution and"Cannot be called with asCopy = NO on non-main thread." with the Xcode output
I'm not aware of that issue. but you can use Open UTL with tel://<phonenumber> instead.
Also works on other platforms (including on a mac peered with an iPhone)
Thank you Fabrice but even with the OPEN URL sill facing the same problem
dispatch_async to main thread and let it run there.
FileMaker may run scripts on their own thread.
Can you please send an example how to do it
Open URL works with numbers only. Make sure to strip out any formatting, such as parentheses, dashes, spaces or dots. I couldn't tell if you've already done that(?), from your reply.
Does this also work from WebDirect on an Android?
An easy way to make sure you are only providing numbers to the tel:// URL is to use the Filter() function, e.g.
Telephone URL calc =
"tel://" & Filter( yourTable::yourTelephoneField ; "1234567890" )
...which, if 'yourTelephoneField' contains '+44 1309 111222' would give you:
Can't speak re: Android use, sorry. I know that it works in Safari, though.
Note: if you fire this from a MacBook or iMac, it will launch the FaceTime camera.
Which sdk version are you using ?
I do not have this problem with 17.0.3
Both "Dial Phone" and Open URL "tel://" work just fine
I think the + sign is supported and even required for international calls.
There is no problem with the dial or tel:// command it’s working with from macbook and from FileMaker go
the only problem is when trying to use it with the iOS SDK
it is giving an error message that the command should be initiated From the main thread
But sfpx replied it was working for him, so what's your version of the sdk?
Maybe give a little more information so sfpx can help you further. (macOS version, XCode version…)
thank you for the support
xcode Version 10.1 (10B61)
filemaker pro advanced 188.8.131.524
iOS SDK 17.0.3
mac high sierra 10.13.6
Cannot be called with asCopy = NO on non-main thread.
2018-12-18 11:56:46.281860-0500 apname[603:126910] [Assert]
this is from Xcode output message when i try to use the command
I basically have the same configuration and it's working fine on my iphone.
Are you trying to run it on the simulator (or a wifi only ipad) or on an actual iphone ?
on an actual iphone
I'm testing on an iphone 6 so the device seems to be the only difference.
What you could try is to create a custom appdelegate and a second url scheme so you could launch the command outside the filemaker sdk. That should not be necessary though.
What's your filemaker code ? Have you tried with a simple button that runs a simple dial phone script step ?
I'm just testing using a button with single command (dial or open Url:"Tel://")
Retrieving data ...