flashrick
V2EX  ›  问与答

B 站短链接 b23.tv 是怎么做到在短信里打开 B 站 APP 的?

  •  
  •   flashrick · Jun 2, 2020 · 4573 views
    This topic created in 2352 days ago, the information mentioned may be changed or developed.

    收到 B 站的广告短信,里面有 b23.tv 为域名的超链接

    我的手机是红米 K20P

    点击链接会提示 1 使用浏览器打开 2 BILIBILI

    点击 BILIBILI 直接就打开了 APP,并跳转到活动页。

    请问大佬们这个是怎么实现的呢

    5 replies  •  2020-06-02 12:09:51 +08:00
    mayx
    mayx
    Jun 2, 2020 via Android
    1
    把 bilibili:// 注册成协议,然后 html 页只要一访问就会打开 blilbilil
    JasperYanky
    JasperYanky
    Jun 2, 2020
    2
    url scheme
    SuYia
    SuYia
    Jun 2, 2020
    3
    有个东西叫做 universal-links.
    附上文档: https://developer.apple.com/ios/universal-links/
    Vegetable
    Vegetable
    Jun 2, 2020❤️2
    4
    <intent-filter>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="http" android:host="b23.tv"/>
    <data android:scheme="https" android:host="b23.tv"/>
    </intent-filter>
    flashrick
    flashrick
    OP
    Jun 2, 2020
    5
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2279 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:07 · PVG 22:07 · LAX 06:07 · JFK 09:07
    ♥ Do have faith in what you're doing.