stopKeepAlive


Purpose

Stops a foregrounding service that has been started using the startKeepAlive method to prevent AMP Hybrid Client from being killed by the Android operating system.

In order for the service to actually stop, the stopKeepAlive method must be called as many times, as the startKeepAlive method was called to start it.

On iOS, this method has no effect.

Signature

stopKeepAlive( shouldForce )

Returns

This method does not return anything.

Parameter

Name Description Type Use
shouldForce Calling the stopKeepAlive method with this parameter set to "true" results in force stopping the foreground service. boolean optional

Related topics

Public API reference
Container
Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...