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 the a user clicked has received the campaign message: bulk, chain, transactional.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.notificationClickednotificationReceived(code, type) |
Name | Type | Requirement | Description | ||
---|---|---|---|---|---|
code | string | required | Unique campaign code
| ||
type | string | required | Campaign Type
|
Example of use
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.notificationClickednotificationReceived(code: "i7ykuagkjgfs", type: "mobile_push_transactionalbulk") |
Message Click Tracking
Method Objective
The method allows sending an iOS push notification token to the systemgives the system an understanding that the user clicked the campaign message: bulk, chain, transactional.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.setPushTokenNotificationnotificationClicked(token: ios_token) { (tokenResponse) in print("Token set response") }code, type) |
Name | Type | Requirement | Description |
---|---|---|---|
ios_tokencode | string | required | iOS push notification token |
Example of use
Unique campaign code |
language | applescript |
---|---|
theme | FadeToGrey |
sdk.setPushTokenNotification(token: "93b033a394da31b3160b8e0a35b80b6c16eb99a22ed34e88afe2a117dd4bc601") { (tokenResponse) in
print("Token set response")
}
Payloads
Default Structure
Code Block | ||||
---|---|---|---|---|
| ||||
{
"aps": {
"alert": {
"title": "...",
"subtitle": "...",
"body": "...",
"badge": 1
},
"mutable-content": 1
},
"image_url": "...",
"event": {
"type": "...",
"uri": "..."
},
"src": {
"type": "...",
"id": "..."
}
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"aps": {
"alert": {
"title": "Welcome aboard!",
"subtitle": "Greeting message.",
"body": "Hey, it's nice to know you're with us now. Check new updates in our application.",
"badge": 1
},
"mutable-content": 1
},
"image_url": "...",
"src": {
"type": "bulk",
"id": "33631"
}
} |
Open Web Link
Code Block | ||||
---|---|---|---|---|
| ||||
{
"aps": {
"alert": {
"title": "Only today",
"subtitle": "Special Offer",
"body": "This special offer for Dyson products only for you!",
"badge": 1
},
"mutable-content": 1
},
"image_url": "...",
"event": {
"type": "web",
"uri": "https://example.com/landing/promo"
},
"src": {
"type": "bulk",
"id": "XFMjM4VAF4"
}
} |
Open Category
Code Block | ||||
---|---|---|---|---|
| ||||
{
"aps": {
"alert": {
"title": "Black Friday!",
"subtitle": "Discount",
"body": "Check our big sale from this category",
"badge": 1
},
"mutable-content": 1
},
"image_url": "...",
"event": {
"type": "category",
"uri": "BFRIDAY_CATEGORY_ID"
},
"src": {
"type": "chain",
"id": "72CONd54uF"
}
} |
Open Product
Code Block | ||||
---|---|---|---|---|
| ||||
{
"aps": {
"alert": {
"title": "...",
"subtitle": "...",
"body": "...",
"badge": 1
},
"mutable-content": 1
},
"image_url": "...",
"event": {
"type": "product",
"uri": "PRODUCT123"
},
"src": {
"type": "chain",
"id": "ugLxQ7KrnL"
}
} |
Open Custom Page
language | js |
---|---|
theme | FadeToGrey |
| |||||
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
|