Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Receive Message Tracking

Method Objective

The method gives the system an understanding that a user has received the campaign message: bulk, chain, transactional.

Syntax and parameters

sdk.notificationReceived(code, type)


NameTypeRequirementDescription
codestringrequired

Unique campaign code

The "src.id" value in the "payload" of the campaign should be used to define the value for this parameter. See Payload Examples.

typestringrequired

Campaign Type

The "src.type" value in the "payload" of the campaign should be used to define the value for this parameter. See Payload Examples.

Example of use

sdk.notificationReceived(code: "i7ykuagkjgfs", type: "mobile_push_bulk")


Message Click Tracking

Method Objective

The method gives the system an understanding that the user clicked the campaign message: bulk, chain, transactional.

Syntax and parameters

sdk.notificationClicked(code, type)


NameTypeRequirementDescription
codestringrequired

Unique campaign code

The "src.id" value in the "payload" of the campaign should be used to define the value for this parameter. See Payload Examples.

typestringrequired

Campaign Type

The "src.type" value in the "payload" of the campaign should be used to define the value for this parameter. See Payload Examples.

Example of use

sdk.notificationClicked(code: "i7ykuagkjgfs", type: "mobile_push_transactional")


Token Send

Method Objective

The method allows sending an iOS push notification token to the system.

Syntax and parameters

sdk.setPushTokenNotification(token: ios_token) { (tokenResponse) in
  print("Token set response")
}
NameTypeRequirementDescription
ios_tokenstringrequired

iOS push notification token

Example of use

sdk.setPushTokenNotification(token: "93b033a394da31b3160b8e0a35b80b6c16eb99a22ed34e88afe2a117dd4bc601") { (tokenResponse) in
  print("Token set response")
}

Payloads

The Payloads structures are available under Push Payloads (Mobile SDKs).

  • No labels