Name: ios-open-thirdparty-browser
Owner: Brave Software
Description: Reference client for opening links in Firefox and Brave iOS
Forked from: mozilla-mobile/firefox-ios-open-in-client
Created: 2016-04-22 15:31:18.0
Updated: 2017-11-19 15:03:38.0
Pushed: 2016-04-22 17:26:49.0
Size: 76
Language: Swift
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This open-source project provides support for opening links in third party browsers for iOS. There are classes (for Objective-C and Swift), along with a sample project that uses them, available for reference and use.
Thes classes provide methods that handle the making of custom URI schemes, checking if Firefox or Brave (or others if we want to add more) is installed on the device and opening the URL in the browser. Swift and Objective-C implementations of these classes are provided to accommodate your language of choice.
isInstalled
: returns true if installedopenInBrowser
: opens the specified URL; used with or without the following:The URI schemes are firefox://
and brave://
. The scheme accepts the following query parameter:
url
: (required) the URL to open.For Example:
fox://open-url?url=https%253A%252F%252Fwww.mozilla.org%252Fen-US%252Fnewsletter%252Fios%252F
firefox
and brave
to LSApplicationQueriesSchemesopenInBrowser(url)
on OpenInThirdPartyBrowserController(Swift/ObjC)