Creating an android smart app banner

后端 未结 4 1771
南方客
南方客 2020-12-02 11:46

Is there any solution for Android devices similar to the iOS 6 smart app banner?

Here is the code for smart app banner



        
4条回答
  •  情书的邮戳
    2020-12-02 12:52

    There are two APIs available:

    • To detect if the app is already installed use getInstalledRelatedApps (only for Chrome 80+)
      • Article with general information: https://web.dev/get-installed-related-apps/
      • Docs and demo (web+app) with code https://www.chromestatus.com/feature/5695378309513216
    • Show a prompt to install your app
      • Article with code samples: https://web.dev/customize-install/
      • Documentation: https://developers.google.com/web/fundamentals/app-install-banners/native

提交回复
热议问题