Links may not function; however, this content may be relevant to outdated versions of the product.
Preventing Pega Mobile Client-based mobile apps from being closed by Android
Under certain conditions, for example, when more memory is needed, the Android operating system might terminate mobile apps that are based on Pega Mobile Client™, which have been sent to the background. As a result, users might have to reauthenticate when they return to the app.
When you build the PMC-based mobile apps in Dev Studio, Pega Platform™ applies a feature that lowers the risk of mobile apps being closed by Android. By default, this feature is turned on, the time for which the app is protected is set to 3600 milliseconds, and the default message displayed on the device reads "App paused". You can turn this feature off or turn it on for an indefinite time. You can also modify the default message.
Do the following to configure the feature that protects your PMC-based mobile app from being terminated:
- In Dev Studio, navigate to the .pyKeepAliveTimeout Declare Expression rule, or use the Search field to quickly find the rule.
- Expand the Specialize by class or ruleset. list, and select
- In Add to ruleset field, select the ruleset of your mobile app.
- Click .pyKeepAliveTimeout rule that is specific to your app. to open the
- Complete the condition in the declare expression by setting the value of the keep-alive timeout:
- 0 - Turns the feature off.
- A negative value - Turns the feature on for an indefinite period of time.
- Click .
Do the following to modify the default message that is displayed on the device when your PMC-based mobile app is sent to the background:
- In Dev Studio, navigate to the pyCaption App paused Field Value rule, or use the Search field to quickly find any rule.
- Expand the Specialize by class or ruleset. list, and select
- Modify the value in the field.
- Select the ruleset for your mobile app.
- Click .
You have successfully modified the feature that protects your PMC-based mobile app from being terminated.