The 'SMS Policy API ' helps a developer to enable or disable SMS from within an app.
This method sets SMS policy defined by a developer to an app. This will overwrite SMS policy if that is already set from the server.
JavaScript:com.kony.iemm.app.setSMSPolicy(allow,numbers);
| Variable Name | allow |
| Presence | Mandatory |
| Type | Boolean |
| Values | True - allow app to send sms the specified numbers False - restrict app from adding sms to specified numbers |
| Variable Name | numbers |
| Presence | Mandatory |
| Type | String Array |
| Values | Set of numbers in string array |
Int
| Code | Description |
|---|---|
| 200 | SUCCESS |
| 300 | NULL_OR_EMPTY_DATA |
| 400 | FEATURE_NOT_SUPPORTED |
| 500 | FAILURE |
| 600 |
APP_CONTEXT_NULL_ERRORCODE (android) |
| 700 | PACKAGE_NULL_ERRORCODE(android) |
This method clears SMS policy set by a developer. Once the dev defined policy is cleared, the server defined SMS policy will be applied to an app if any.
JavaScript:com.kony.iemm.app.clearSMSPolicy();
Int
| 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. |