DimensionDev / Maskbook

The portal to the new, open Internet. ([I:b])
https://mask.io
GNU Affero General Public License v3.0
1.51k stars 307 forks source link

[Demand] separate external URL & universal link #1903

Closed jk234ert closed 3 years ago

jk234ert commented 3 years ago

Catalogue

Part 1: Introduction and Background

To make mobile apps working with other WalletConnect support apps, Mask Network mobile app need to know how to handle specific URL & link opening event sent from webview.

Part 2: Problem to Solve

Now we have 2 kinds of URLs to handle:

  1. External URLs needs to open in separate SFSafariViewController on iOS (like "arweave.net" links form file-service plugin)
  2. Universal links need app native to call system URL handling (like WalletConnect link). Tried to open sample universal links in separate SFSafariViewController on iOS, the system redirects to App Store page of the wallet apps, not the wallet apps themselves. This means we have to tell the app native that such kind of links MUST be handled by openUrl, not by webview

Part 3: Expected Behavior

septs commented 3 years ago

CC @Jack-Works

Jack-Works commented 3 years ago

LGTM

septs commented 3 years ago

1904 #1926 DimensionDev/webextension-polyfill#11