Kony Management API Guide: App Management EMM JS APIs > AppExpiry Policy API

AppExpiry Policy API

The 'AppExpriy Policy API' helps a developer set or clear appexpiry from within an app.

com.kony.iemm.app.setAppExpiryPolicy

This method sets appexpiry policy defined by a developer to an app. This will overwrite appexpiry policy if that is already set from the server.

Signature

JavaScript:com.kony.iemm.app.setAppExpiryPolicy(datetime);

Input Parameters

Variable Name datetime
Presence Mandatory
Type string
Values

Format— "MM/dd/yyyy HH:mm@GMT+HH:MM"

Result Values

Int

Result Codes

Code Description
100 INVALID_DATA
200 SUCCESS
300 NULL_OR_EMPTY_DATA
400 FEATURE_NOT_SUPPORTED
500 FAILURE
600

APP_CONTEXT_NULL_ERRORCODE (android)

700 PACKAGE_NULL_ERRORCODE(android)

com.kony.iemm.app.clearAppExpiryPolicy

This method clears appexpiry policy set by a developer to app. Once the policy is cleared, the server defined appexpiry policy will be applied to an app if any.

Signature

JavaScript:com.kony.iemm.app.clearAppExpiryPolicy();

Input Parameters

Result Values

Int

Result Codes

Code Description
200 SUCCESS
500 FAILURE
400 FEATURE_NOT_SUPPORTED
600

APP_CONTEXT_NULL_ERRORCODE (android)

700 PACKAGE_NULL_ERRORCODE(android)
Copyright © 2017 Kony, Inc. All rights reserved.