Skip to content

Commit

Permalink
✨ Add support for Democues special case deeplinking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed Jun 7, 2022
1 parent 7edd709 commit 5a640d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/AppcuesKit/Presentation/DeeplinkHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ internal class DeeplinkHandler: DeeplinkHandling {
case debugger(destination: DebugDestination?)

init?(url: URL, isSessionActive: Bool, applicationID: String) {
guard url.scheme == "appcues-\(applicationID)", url.host == "sdk" else { return nil }
let isValidScheme = url.scheme == "appcues-\(applicationID)" || url.scheme == "appcues-democues"
guard isValidScheme, url.host == "sdk" else { return nil }

// supported paths:
// appcues-{app_id}://sdk/experience_preview/{experience_id}
Expand Down

0 comments on commit 5a640d6

Please sign in to comment.