Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
iOSApp.SetDidOpenURLScript
Sets the script to be run when the app received an URL request.
Component | Version | macOS | Windows | Linux | Server | 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.
Blog Entries
This function checks for a license.
Created 27th January 2021, last changed 27th January 2021
iOSApp.SetDidOpenURLEvaluate - iOSApp.SetDidReceiveMemoryWarningEvaluate