I'm in FileMaker Go 16/17 and I would like to bring the Safari App to the foreground. Any of you smart folks know a way to do this?
What does Open URL do for you?
Sent from miPhone
Thanks for the suggestion. I'm doing something unusual to capture signatures in WebDirect. I'm already in the solution in Safari (Webdirect); the customer wants to use Webdirect due to incredible speed differences vs FMGo. When I click "Signature" I successfully have FMGo opening and going to the correct Order's signature layout so the FMGo signature capture can be used. When the user clicks accept or cancel on my signature layout. I want to have FM bring Safari back to the foreground. Of course, "Safari" with a left arrow is already available as a button in the upper left of the iOs, but this is another button the user has to remember to click ... and the two screens look 99% the same.
Ok, 'unusual'. Got it. WebDirect, WebViewer, WebPages/sites - all a delicate balance and without full control, you are at the mercy of what can be done. Perhaps others have insights?
Yep, Beverly, ... major suckage that we have to find workarounds!
No work arounds here. I use the platform for what it does. If I need more, then I will use other means (CWP instead of WD, for example, or a plug-in if needed). Or I use another platform...
Hey, it's all good! I'm a huge FileMaker fan since late '80s
Have you investigated the cause of these "incredible speed differences" of WebDirect vs FMGo? If you can identify the problem you'll likely find some opportunities to improve the performance of your app–on all platforms.
Given the title of your post, I imagine many folks will arrive here looking for a URL scheme list.
URL Schemes for FileMaker Go, FIAS, and Swift
To your question, add a button on the signature layout with an Open URL [ ], and a simple "http://" or "https://". No path. That should return your user to Safari without changing their WebDirect location.
Thanks for this most helpful link. Unfortunately, when I've used this approach it brings back the user to Safari but with a new tab to the FileMaker Server landing page.
Any other ideas of how not to have a new tab created? I can't fine any ...
What happens if you pass the web direct url in the Open URL script step? New session/tab?
I just tested this with a native app (that I built in Swift), and again from FileMaker Go 17. The behavior is slightly different. Sorry for the confusion. In a native app, Safari will reuse an existing browser window/tab. FileMaker Go 17 is using a modified version of `SFSafariViewController` (the class that handles this kind of thing). Not sure why, but they're different. There doesn't appear to be a way to force the behavior you're looking for, but I'll keep my eyes open.
Mark, well that was a good thought ... it comes back to Safari with a new tab wanting start a new session.
I could've sworn I read something in all my reading about iOS implementing a new feature that was a mimic of apple events
If one could just send an Activate command to Safari that would solve the dilemma
Appreciate it so much, bhamm (got name?)
Sorry, it took me a day or two to respond. I appreciate your input.
I will respond but it will be quite a long post ... which I WILL do later during a little down time. For now let me convey that understand the impact that the structure (design) of a FM file has on speed. And we follow all the best-practices in the design of our solution. But, that being said ... there's always room for improvement!
So, here's some HTML that will in fact close the tab - this works in Safari on iOS (and the desktop).
I put this file on my server and tested it in go, but when I used Open URL I got Go's 'mini' browser instead. If I tapped "Open in Safari" in the bottom left corner, Safari will open and the 'new' tab is quickly closed leaving you on your web direct page (yay).
Note that Go's mini browser doesn't display the "If you see this...." text. Not sure why.
Steve, how did you get Go to directly open Safari and bypass the Go's 'mini' browser?
<meta charset="utf-8" />
<title>Please Close This Tab</title>
If you see this, please tap the "Open In Safari" in the lower left corner. Thank you.
Retrieving data ...