Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ts/IterableInboxMessageDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,24 @@ const IterableInboxMessageDisplay = ({
Iterable.trackInAppClick(rowViewModel.inAppMessage, IterableInAppLocation.inbox, URL)
Iterable.trackInAppClose(rowViewModel.inAppMessage, IterableInAppLocation.inbox, IterableInAppCloseSource.link, URL)

//handle delete action
if (URL === 'iterable://delete') {
returnToInbox(() => deleteRow(rowViewModel.inAppMessage.messageId))
//handle dismiss action
} else if(URL === 'iterable://dismiss') {
returnToInbox()
//handle external link
} else if (URL.slice(0, 4) === 'http') {
returnToInbox(() => Linking.openURL(URL))
//handle custom action
} else if (URL.slice(0,9) === 'action://') {
action.type = URL.replace('action://', '')
returnToInbox(() => {
if(Iterable.savedConfig.customActionHandler) {
Iterable.savedConfig.customActionHandler(action, context)
}
})
//handle deep link or error link
} else {
returnToInbox(() => {
if(Iterable.savedConfig.urlHandler) {
Expand Down