Universal Link is not working on properly on iOS 13 (AASA not downloaded)

后端 未结 5 886
时光说笑
时光说笑 2021-01-30 18:18

Universal Link was working fine on iOS 12 but I ran into issues when I updated to iOS 13.1 yesterday. URLs that\'s supposed to open the app when tapped are just opening up in th

相关标签:
5条回答
  • 2021-01-30 18:43

    Try to open Settings > Safari > Request Desktop Website > All websites > Switch Off.

    This issue occurs more often on iPads, since it makes more sense to show desktop websites on big screens rather than on small ones.

    From apple developer forums.

    It resolved my problem, great

    0 讨论(0)
  • 2021-01-30 18:45

    I had the same issue with iOS 13 only and it turned out that since iOS 13 the appID entry is now case sensitive. My app's bundle identifier and the entry in the appID of the AASA file mismatched only in casing. Example:

    Bundle ID: TEAMID.com.company.EXAMPLE AASA entry:

    {
      "applinks": {
        "apps": [],
        "details": [
          {
            "appID": "TEAMID.com.company.example",
            "paths": [ "*" ]
          }...
    

    Needed to fix the appID in AASA file and my problem was gone.

    0 讨论(0)
  • 2021-01-30 18:50

    After much testing, I found out the following is the format that works for both iOS12 and iOS13. iOS12, absolutely requires every details dictionnary entry to contain the appID and paths parameters to work properly. iOS13 on the other hand expects the first entry to contain both appIDs and components. This means the first entry absolutely needs to contain all 4 parameters to support both platforms for Autofill (with the Save Password prompt) and Universal Links.

    Ironically, this format does not pass the Apple App Search API Validation Tool, but it does work for the Branch one... FTS! Note also that having your username and password UITextField on different VCs does not work (you will not get the Save Password prompt). I had to add a "fake" username UITextField on our password screen so it got picked up by the OS and DO NOT hide it, nor make either width or height 0px (so basically make it 1x1px in size, with clear text and background and fill it with your username from the previous VC).

    {
      "applinks": {
        "apps": [],
        "details": [
          {
            "appIDs": [ "ABCDE12345.com.domain.app", "ABCDE12345.com.domain.app2" ],
            "appID": "ABCDE12345.com.domain.app",
            "components": [
              {
                "/": "/documentationsucksforios13",
                "comment": "This documentation is awful"
              }
            ],
            "paths": [ "/documentationsucksforios12" ]
          },
          {
            "appID": "ABCDE12345.com.domain.app2",
            "paths": [ "/validationtoolsdontwork" ]
          }
        ]
      },
      "webcredentials": {
        "apps": [ "ABCDE12345.com.domain.app" ]
      }
    }
    
    0 讨论(0)
  • 2021-01-30 18:57

    We were running into a similar issue. After upgrading to iOS 13.1.2 it seems to be working correctly now. So apple has most likely resolved the bug on their end.

    0 讨论(0)
  • 2021-01-30 19:03

    It seems for ios13, the apple-site-app-association as a new format

    {
      "applinks": {
          "details": [
               {
                 "appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ],
                 "components": [
                   {
                      "#": "no_universal_links",
                      "exclude": true,
                      "comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link"
                   },
                   {
                      "/": "/buy/*",
                      "comment": "Matches any URL whose path starts with /buy/"
                   },
                   {
                      "/": "/help/website/*",
                      "exclude": true,
                      "comment": "Matches any URL whose path starts with /help/website/ and instructs the system not to open it as a universal link"
                   }
                   {
                      "/": "/help/*",
                      "?": { "articleNumber": "????" },
                      "comment": "Matches any URL whose path starts with /help/ and which has a query item with name 'articleNumber' and a value of exactly 4 characters"
                   }
                 ]
               }
           ]
       },
       "webcredentials": {
          "apps": [ "ABCDE12345.com.example.app" ]
       }
    }
    
    0 讨论(0)
提交回复
热议问题