Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1    Statistic    FMM    Blog  

iOSApp.SetDidOpenURLScript

Sets the script to be run when the app received an URL request.

Component Version macOS Windows Linux Server FileMaker iOS SDK
iOSApp 11.1 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "iOSApp.SetDidOpenURLScript"; Filename; ScriptName )   More

Parameters

Parameter Description Example
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"

Result

Returns OK or error.

Description

Sets the script to be run when the app received an URL request.
You need to call iOSApp.InstallOpenURLHandler once to install functionality and have script be triggered later.
Script parameter will be the URL.

Examples

Installs URL open handler:

Set Variable [ $r ; Value: MBS("iOSApp.InstallOpenURLHandler") ]
Set Variable [ $r ; Value: MBS("iOSApp.SetDidOpenURLScript"; Get(FileName); "URLArrived") ]

See also

Release notes

  • Version 11.1
    • Added functions for iOS applications to catch URL requests: iOSApp.InstallOpenURLHandler, iOSApp.LastURL, iOSApp.SetDidOpenURLEvaluate and iOSApp.SetDidOpenURLScript.

Created 27th January 2021, last changed 27th January 2021


iOSApp.SetDidOpenURLEvaluate   -   iOSApp.SetDidReceiveMemoryWarningEvaluate

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat