Skip to content

Commit

Permalink
add malformed url example
Browse files Browse the repository at this point in the history
  • Loading branch information
avioli committed Apr 28, 2021
1 parent 4e770d4 commit 954403e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uni_links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ Assuming you've installed Android Studio (with the SDK platform tools):
adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "unilinks://host/path/subpath"'
adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "unilinks://example.com/path/portion/?uid=123&token=abc"'
adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "unilinks://example.com/?arr%5b%5d=123&arr%5b%5d=abc&addr=1%20Nowhere%20Rd&addr=Rand%20City%F0%9F%98%82"'
adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "unilinks://@@malformed.invalid.url/path?"'
```

If you don't have [`adb`](https://developer.android.com/studio/command-line/adb)
Expand Down Expand Up @@ -379,6 +380,7 @@ Assuming you've got Xcode already installed:
/usr/bin/xcrun simctl openurl booted "unilinks://host/path/subpath"
/usr/bin/xcrun simctl openurl booted "unilinks://example.com/path/portion/?uid=123&token=abc"
/usr/bin/xcrun simctl openurl booted "unilinks://example.com/?arr%5b%5d=123&arr%5b%5d=abc&addr=1%20Nowhere%20Rd&addr=Rand%20City%F0%9F%98%82"
/usr/bin/xcrun simctl openurl booted "unilinks://@@malformed.invalid.url/path?"
```
If you've got `xcrun` (or `simctl`) in your path, you could invoke it directly.
Expand Down

0 comments on commit 954403e

Please sign in to comment.