Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

https://developer.android.com/training/app-links

To add support for Android App Links:

  1. Create intent filters in your manifest.

    1. https://github.com/rbilabs/intl-whitelabel-app/blob/3f5adec12c602f49086db11a278d2962d5cb7411/workspaces/frontend/native-assets/plk/es/android/app/src/main/AndroidManifest.xml#L13

  2. Add code to your app's activities to handle incoming links.

    1. Code Block
      @Overrride
      void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          ...
          // ATTENTION: This was auto-generated to handle app links.
          Intent appLinkIntent = getIntent();
          String appLinkAction = appLinkIntent.getAction();
          Uri appLinkData = appLinkIntent.getData();
          ...
      }

  3. Associate your app and your website with Digital Asset Links.

Code Block
[{
  "relation": ["delegate_permission/common.handle_all_urls"],
  "target": {
    "namespace": "android_app",
    "package_name": "es.popeyes.android",
    "sha256_cert_fingerprints":
    ["E7:53:E0:B3:DA:02:B4:47:31:E1:80:2D:85:14:EF:58:9B:AA:04:B4:21:94:B5:9F:4D:28:41:79:38:5C:0E:8A"]
  }
}]

Checking how to upload it to https://www.popeyes.es/.well-known/assetlinks.json