Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
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 | ||||
---|---|---|---|---|
| ||||
sdk.notificationReceived(code, type) |
Name | Type | Requirement | Description | ||
---|---|---|---|---|---|
code | string | required | Unique campaign code
| ||
type | string | required | Campaign Type
|
Example of use
Code Block | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
sdk.notificationClicked(code, type) |
Name | Type | Requirement | Description | ||
---|---|---|---|---|---|
code | string | required | Unique campaign code
| ||
type | string | required | Campaign Type
|
Example of use
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.notificationClicked(code: "i7ykuagkjgfs", type: "mobile_push_transactional") |
Anchor | ||||
---|---|---|---|---|
|
Method Objective
The method allows sending an iOS push notification token to the system.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.setPushTokenNotification(token: ios_token, platform: token_platform) { (tokenResponse) in print("Token set response") } |
Name | Type | Requirement | Description |
---|---|---|---|
ios_token | string | required | iOS push notification token |
token_platform | string | optionally | Token platform. Available values:
|
Example of use
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.setPushTokenNotification(token: "93b033a394da31b3160b8e0a35b80b6c16eb99a22ed34e88afe2a117dd4bc601", platform: "ios") { (tokenResponse) in
print("Token set response")
} |
Payloads
The Payloads structures are available under Push Payloads (Mobile SDKs).
Column | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Page Navigation
Related Pages
|