new MessagingService(reference)
Should not be called by the developer.
Parameters:
Name | Type | Description |
---|---|---|
reference |
to kony object |
- Source:
Methods
-
fetchAllMessages(successCallback, failureCallback)
-
Fetch all messages
Parameters:
Name Type Description successCallback
fetchAllMessagesSuccessCallback Callback method on success failureCallback
fetchAllMessagesFailureCallback Callback method on failure - Source:
-
fetchMessageContent(messageId, successCallback, failureCallback)
-
Fetches the message conetent for a given message id
Parameters:
Name Type Description messageId
string Message id successCallback
messageContentSuccessCallback Callback method on success failureCallback
messageContentFailureCallback Callback method on failure - Source:
-
markMessageRead(messageId, successCallback, failureCallback)
-
Mark the message as read for a given message id
Parameters:
Name Type Description messageId
string Message id successCallback
markReadSuccessCallback Callback method on success failureCallback
markReadFailureCallback Callback method on failure - Source:
-
register(osType, deviceId, pnsToken, successCallback, failureCallback)
-
register to messaging service
Parameters:
Name Type Description osType
string Type of the operating system deviceId
string Device Id pnsToken
string Token value successCallback
registerSuccessCallback Callback method on success failureCallback
registerFailureCallback Callback method on failure - Source:
-
unregister(successCallback, failureCallback)
-
unregister to messaging service
Parameters:
Name Type Description successCallback
unregisterSuccessCallback Callback method on success failureCallback
unregisterFailureCallback Callback method on failure - Source:
-
updateGeoLocation(latitude, longitude, locationName, successCallback, failureCallback)
-
Update the location
Parameters:
Name Type Description latitude
string Latitude value longitude
string Longitude value locationName
string Location name successCallback
updateLocationSuccessCallback Callback method on success failureCallback
updateLocationFailureCallback Callback method on failure - Source: