Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

To add support for Android App Links:

  1. Create intent filters in your Android manifest (PLK ES).

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

    1. @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();
          ...
      }

      → Here we need to figure out how to route it internally

      1. Example: For push notifications, we used PendingIntent in LocalFirebaseMessagingService

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

[{
  "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 assetlinks.json to https://www.popeyes.es/.well-known/assetlinks.json

POC : feat/IBFEC-426-applinks

  • In this PoC, we used a fake domain using external tools to deploy a simple site just to validate the assetlinks.json

  1. Test and validate

    1. Type the site and check that the app is called

  1. Internal routing.

    1. Once the user enters an internal path. For instance, https://www.popeyes.es/menu, the app should be redirected to the /menu internal route. This logic must be generic for any path and be implemented in a new class defined in step 2.

  • No labels