Skip to content

Commit

Permalink
feat(INT-503): hybrid mode braze (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik authored Nov 10, 2023
1 parent d55dd54 commit 4bf4f48
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
16 changes: 13 additions & 3 deletions src/configurations/destinations/braze/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"whitelistedEvents",
"oneTrustCookieCategories",
"eventFilteringOption",
"connectionMode"
"connectionMode",
"enablePushNotification"
],
"excludeKeys": [],
"supportedSourceTypes": [
Expand All @@ -37,11 +38,20 @@
],
"supportedConnectionModes": {
"android": ["cloud", "device", "hybrid"],
"web": ["cloud", "device"],
"web": ["cloud", "device", "hybrid"],
"ios": ["cloud", "device", "hybrid"],
"flutter": ["cloud", "device"],
"reactnative": ["cloud", "device"]
},
"hybridModeCloudEventsFilter": {
"web": {
"messageType": [
"identify",
"track",
"page"
]
}
},
"supportedMessageTypes": ["group", "identify", "page", "screen", "track", "alias"],
"destConfig": {
"defaultConfig": [
Expand All @@ -61,7 +71,7 @@
"ios": ["useNativeSDK", "connectionMode"],
"reactnative": ["useNativeSDK", "connectionMode"],
"flutter": ["useNativeSDK", "connectionMode"],
"web": ["useNativeSDK", "enableBrazeLogging", "connectionMode"]
"web": ["useNativeSDK", "enableBrazeLogging", "connectionMode", "enablePushNotification"]
},
"secretKeys": ["restApiKey"]
}
Expand Down
5 changes: 3 additions & 2 deletions src/configurations/destinations/braze/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@
"properties": {
"android": { "type": "string", "enum": ["cloud", "device", "hybrid"] },
"ios": { "type": "string", "enum": ["cloud", "device", "hybrid"] },
"web": { "type": "string", "enum": ["cloud", "device"] },
"web": { "type": "string", "enum": ["cloud", "device", "hybrid"] },
"reactnative": { "type": "string", "enum": ["cloud", "device"] },
"flutter": { "type": "string", "enum": ["cloud", "device"] }
}
}
},
"enablePushNotification": { "type": "object", "properties": { "web": { "type": "boolean" } } }
}
}
}
14 changes: 14 additions & 0 deletions src/configurations/destinations/braze/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,20 @@
"configKey": "enableBrazeLogging",
"default": false,
"note": "Turn on if you want to show braze logs to customer"
},
{
"type": "checkbox",
"label": "Use web push notifications",
"configKey": "enablePushNotification",
"default": false,
"note": [
"Turn on if you want to use ",
{
"text": "push notification",
"link": "https://www.braze.com/docs/developer_guide/platform_integration_guides/web/push_notifications/integration/#step-1-configure-your-sites-service-worker"
},
". It requires service worker setup by client."
]
}
]
}
Expand Down
3 changes: 1 addition & 2 deletions test/data/validation/destinations/braze.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@
"web": "hybrid"
}
},
"result": false,
"err": ["connectionMode.web must be equal to one of the allowed values"]
"result": true
}
]

0 comments on commit 4bf4f48

Please sign in to comment.