App 通用链接测试


格式:


1. https://fewper.com/ 开头
2. fewper:// 开头

场景:


1. 点击通知栏推送消息
2. 点击 App 内消息列表
3. 点击推送弹窗(暂未推送)
4. 点击 Banner 图
5. Universal Links / App Links (iOS 备忘录链接 或 Android 备忘录链接)
6. URL Schemes (iOS 或 Android 通用链接)

方式:


1. 打开功能页面
2. 内部浏览器打开网页(不存在功能页面且主域名为 fewper )
3. 外部程序打开(以上都不满足时,通过浏览器打开网页或其他应用程序打开)

测试:


xcrun simctl openurl booted "https://fewper.com/store"

xcrun simctl openurl booted "fewper://store"

adb shell am start -a android.intent.action.VIEW \
  -d "https://fewper.com/store"

adb shell am start -a android.intent.action.VIEW \
  -d "fewper://store"

adb shell am start -a android.intent.action.MAIN \
  -c android.intent.category.LAUNCHER \
  -f 0x10200000 \
  -n com.fewper/com.fewper.MainActivity

功能链接列表: