isCacheManifestUpdateAvailable


Purpose

Finds out whether the cache manifest has been updated on the server.

Signature

isCacheManifestUpdateAvailable( application, callback, username, password )

Returns

This method does not return anything.

Parameters

Name Description Type Use
application The application's ID or URL address. string required
callback Passed while checking if the application's cache manifest has been modified, which signifies that an update is available. object required
username Overrides the identifier parameter set by the AccountManager. string optional
password Overrides the username parameter set by the AccountManager. string optional

Callback structure

The CacheManifestUpdate listener's callback can be structured as follows:

{
	onFailure: function(error) { ... },
	onSuccess: function(state) { ... }
}

Methods

Name Description Return type
onFailure

Indicates that it was impossible to verify if a cache manifest based update of the application is available.

undefined
onSuccess

Indicates that it was possible to verify the status of a cache manifest based update. Notifies if an update of the application is available.

undefined

Related topics

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