# queryPushNotificationPayload

@JvmStatic
fun queryPushNotificationPayload(context: Context, payload: Map<String, String>): CallNotificationResult

Method used to parse push payload and retrieve CallNotificationResult mainly to provide a way to check initial call information that came with the push message before deciding how to process it and whether to forward it to SinchClient.relayRemotePushNotification.

#### Return

A result containing call information included in the push data.

#### Parameters

context

Application context to load native libraries used for payload parsing.

payload

Payload received from a RemoteMessage.

#### See also

SinchPush.isSinchPushPayload

#### Throws

IllegalArgumentException

if payload is not a valid Sinch push payload.