iOSApp.SetDidEnterBackgroundEvaluate
------------------------------------

Sets the expression to be evaluated when app goes to background.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [iOSApp](component_iOSApp.md) | [7.4](newinversion74.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "iOSApp.SetDidEnterBackgroundEvaluate"; Expression ) 

**MBS**( **"iOSApp.SetDidEnterBackgroundEvaluate";** /\* Sets the expression to be evaluated when app goes to background. \*/  
**$Expression**) /\* The expression to evaluate. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Expression | The expression to evaluate. |  |

### Result

Returns OK or error.

### Description

Sets the expression to be evaluated 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.  
### See also

- [iOSApp.GetDidEnterBackgroundEvaluate](iOSAppGetDidEnterBackgroundEvaluate.md)
- [iOSApp.GetDidEnterBackgroundScript](iOSAppGetDidEnterBackgroundScript.md)
- [iOSApp.GetWillEnterForegroundEvaluate](iOSAppGetWillEnterForegroundEvaluate.md)
- [iOSApp.SetDidEnterBackgroundScript](iOSAppSetDidEnterBackgroundScript.md)
- [iOSApp.SetWillEnterForegroundEvaluate](iOSAppSetWillEnterForegroundEvaluate.md)

### Blog Entries

- [Additional iOS Script Triggers](https://www.mbsplugins.de/archive/2022-12-24/Additional_iOS_Script_Triggers/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th September 2017 , last changed 16th March 2020

  
[iOSApp.SetDidBecomeActiveScript](iOSAppSetDidBecomeActiveScript.md) - [iOSApp.SetDidEnterBackgroundScript](iOSAppSetDidEnterBackgroundScript.md)

[HTML Version](iOSAppSetDidEnterBackgroundEvaluate.shtml)