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:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
iOSApp.SetDidEnterBackgroundScript
Queries the script to be run when app goes to background.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
iOSApp | 7.4 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "iOSApp.SetDidEnterBackgroundScript"; Filename; ScriptName { ; Parameter } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Filename | The database file name where the script is located. | "test.fmp12" | |
ScriptName | The script name. | "MyScript" | |
Parameter | The script parameter. | Optional |
Result
Returns OK or error.
Description
Queries the script to be run when app goes to background.Posted when the app enters the background.
Version 10.2 and newer stores this in preferences, so it is restored if app when app starts again after being killed in background.
Examples
Install trigger:
Set Variable [ $r ; Value: MBS( "iOSApp.SetDidEnterBackgroundScript"; Get(FileName); "Trigger"; "DidEnterBackgroundScript" ) ]
See also
- iOSApp.GetDidEnterBackgroundEvaluate
- iOSApp.GetDidEnterBackgroundScript
- iOSApp.GetWillEnterForegroundScript
- iOSApp.SetDidEnterBackgroundEvaluate
- iOSApp.SetWillEnterForegroundScript
Blog Entries
This function checks for a paid license.
Created 23th September 2017, last changed 16th March 2020
iOSApp.SetDidEnterBackgroundEvaluate - iOSApp.SetDidOpenURLEvaluate
