Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Receive

Message Received Tracking

Method Objective

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

Syntax and parameters

Code Block
languageapplescript
themeFadeToGrey
sdk.notificationReceived(code, type)


NameTypeRequirementDescription
codestringrequired

Unique campaign code

Tip

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

Tip

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

Code Block
languageapplescript
themeFadeToGrey
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

Code Block
languageapplescript
themeFadeToGrey
sdk.notificationClicked(code, type)


NameTypeRequirementDescription
codestringrequired

Unique campaign code

Tip

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

Tip

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

Code Block
languageapplescript
themeFadeToGrey
sdk.notificationClicked(code: "i7ykuagkjgfs", type: "mobile_push_transactional")


Anchor
tokensendios
tokensendios
Token Send

Method Objective

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

Syntax and parameters

Code Block
languageapplescript
themeFadeToGrey
sdk.setPushTokenNotification(token: ios_token) { (tokenResponse) in
  print("Token set response")
}


NameTypeRequirementDescription
ios_tokenstringrequired

iOS push notification token

Example of use

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



Payloads

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


Column

Page Navigation

Table of Contents
maxLevel1
indent0px
stylenone




Related Pages

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
cqllabel in ( "notifications" , "apppush" )