get Cross Device Session From Notification Payload
suspend fun getCrossDeviceSessionFromNotificationPayload(payload: Map<String, String>): MIRACLResult<CrossDeviceSession, CrossDeviceSessionException>
Gets the CrossDeviceSession from a notification payload.
Return
A MIRACLResult representing the result of the operation:
If successful, returns a MIRACLSuccess with the CrossDeviceSession.
If an error occurs, returns a MIRACLError with a CrossDeviceSessionException describing issues with the operation.
Parameters
payload
The key-value data provided by the notification.
fun getCrossDeviceSessionFromNotificationPayload(payload: Map<String, String>, resultHandler: ResultHandler<CrossDeviceSession, CrossDeviceSessionException>)
Gets the CrossDeviceSession from a notification payload.
Parameters
payload
The key-value data provided by the notification.
result Handler
A callback to handle the result of retrieving session details.
If successful, the result is a MIRACLSuccess with the CrossDeviceSession.
If an error occurs, the result is a MIRACLError with an exception describing issues with the operation.