Skip to content

Commit

Permalink
wip: restrict external urls
Browse files Browse the repository at this point in the history
  • Loading branch information
rajveermalviya committed Jan 8, 2025
1 parent 467725f commit bbbf68e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ import UserNotifications
)
}

// Allow only `zulip://login` external urls.
override func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
if url.scheme == "zulip" && url.host == "login" {
return super.application(application, open: url, options: options)
}
return false
}

// Handle notification tap while the app is running.
override func userNotificationCenter(
_ center: UNUserNotificationCenter,
Expand Down

0 comments on commit bbbf68e

Please sign in to comment.