I have apple-app-site-association file in my server root directory, so getting banner on my iOS safari browser, but when I remove the file from server, cleared my browser history, then reset my phone too, but still getting the banner.
Note : changed my app ID in the file, but not reflects in banner.
https://example.com/apple-app-site-association
apple-app-site-association file :
{
"applinks": {
"apps": [],
"details": [
{
"appID": "123456789.com.abc.example",
"paths": [ "*" ]
}
]
}
}
Your are getting the banner still because you haven't build the app again.
During the build process of the ios app it downloads the apple-app-association-file from the asociated domain and save it in the app for deeplinking purpose.
Once you get the new build with the updated apple-app-association-file
your problem will be solved.
To remove the banner from all the pages you can just try below code:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "your app id here",
"paths": [
"NOT /*"
]
}
]
} }
Related
I am using two websites in my app(Development/Production) They are as-
app.domain.com
domainworksite/ca12_2020_integration/
and then use same AASA file for both domains.
app.domain.com is working fine,
but domainworksite is not working. What is the issue?
I attached my AASA file Kindly help me anyone for this.
{
"applinks": {
"apps": [],
"details": [
{
"appID": "xxxxx.com.xxxx.xxx",
"paths": [ "/link/xxxx"]
}
]
}
}
I've been trying to add the universal links to my app. currently the scheme links work fine. I am working with expo, and expo linking I have this type of links working:
dandy://SquadSingle?id=6111b70f76cefd027b664270
And I want it to work as:
www.mysite.com/SquadSingle?id=6111b70f76cefd027b664270
The ASSA file in my website is this one, located in mysite.com/.well-known/apple-app-site-association:
{
"applinks": {
"apps" : [],
"details": [
{
"appIDs": ["<TeamID>.<BundleID>"],
"components":[
{
"/": "/SquadSingle/",
"comment": "Mathces any URL whose path starts with /SquadSingle/"
},
]
},
{
"appID": "<TeamID>.<BundleID>",
"paths": [
"/SquadSingle/*",
"*"
]
}
]
}
"activitycontinuation": {
"apps": [
"<TeamID>.<BundleID>"
]
}
}
I added the configuration of associatedDomains to the app.json like this:
"ios": {
...
"associatedDomains": [
"applinks: <mysite>.com"
],
...
}
I have already enabled the associated domains in my developer.apple
I uploaded my .IPA to App Store connect to try on testflight but but even then the app does not open the desired links.
Can somebody help me please?
We're trying to get universal links working in our app but we are encountering errors when trying to download the Apple App Site Association file.
We've used various online tools to validate the file and they all say their is a parsing error but they don't go into any detail about what the issue is.
We've validated that the JSON is valid but what else could be wrong with the file contents?
{
"applinks": {
"details": [
{
"appIDs": [ "12345NGB.co.uk.my.app" ],
"components": [
{
"/": "/universallink/*",
"comment": "Matches any URL whose path starts with /universallink/"
}
]
}
]
}
}
It turns the I did need to follow the format outlined here: https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html
{
"applinks": {
"apps": [],
"details": [{
"appID": "12345NGB.co.uk.my.app",
"paths": ["/universallink/*"]
}]
}
}
The Apple documentation is very misleading because it suggests that's an old format for supporting iOS 12 and earlier.
I want to perform a deeplink to my iOS app to reset the app
my url goes https://something/en/reset-password?...
I made the needed apple-app-site-association
this works when i put in the path section
"paths": [
"*"
]
but when I change it to
"paths": [
"/(fr|en)/reset-password*"
]
the app doesn't open/ link to app is gone
Is there something wrong with the paths formatting?
Check your path section * .
Your file format should be like this.
{
"applinks": {
"apps": [],
"details": [
{
"appID": "BundleIdentifierOfYourApp",
"paths": ["/reset-password/*"]
}
]
}
}
Even you can add more as per your need in the path section like.
["/reset-password/*","reset-password1/*","reset-password2/*"]
All my applications use the same custom domain, namely links.ci--e.es.
My app are:
Co-ba -> Bundle id --> com.cit--e.co-ba
Ca-as -> Bundle id --> com.cit--e.ca-as
Gu-la -> Bundle id --> com.cit--e.gu-la
In each app:
I have installed on my device my applications.
I have correctly set up all my applications. Both live and test dashboard. Also in XCode.
I consider the code for facebook. And I added the code to my Applications.
In Validator universal links, personalized domain, the bundle id and return prefix me this json. And everything is correct.
Validator Universal Links
Validator Universal Links
{
"applinks": {
"apps": [],
"details": [
{
"appID": "ZXXXXXXXX4.com.ci--e.co-ba",
"paths": [
"*",
"/"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.gu-la",
"paths": [
"*",
"/"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.ca-as",
"paths": [
"*",
"/"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.test",
"paths": [
"*",
"/"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.co-ba",
"paths": [
"*",
"/"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.gu-la",
"paths": [
"*",
"/"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.test",
"paths": [
"*",
"/"
]
}
]
}
}
For each of my applications I make marketing link. Example:
App name Co-ba
- htttp://link.ci--e.es/TzUm/CL1D25b4tt
App name Ca-as
- htttp://link.ci--e.es/LKVl/wkb27JqVtt
App name Gu-la
- htttp://link.ci--e.es/lySm/ygacY4N2tt
And these links work correctly when there is a single application installed on my device. Links do not work properly when installed have more than one application.
The links I always open the same application even if they belong to another application. Example:
If you have installed Co-ba and Gu-la. I open a link on my device Co-ba and the Co-ba app opens. I open a link on my device Gu-la and the app opens Co-ba. This is a mistake. Where you can be the fault?
thanks for your reply.
Alex from Branch.io here:
Short version
Branch doesn't currently support multiple apps on the same domain, so there will be some unavoidable unexpected behavior. I recommend using different subdomains for each app.
Longer explanation
The reason this is happening is because all three apps are registered to open the same Universal Links URLs. Co-ba is just the first one in the apple-app-site-association file, so it is the one that opens by default when several apps are installed.
If you look at the Branch link links for each app, you'll see there is a four character unique ID in each one.
Co-ba: TzUm
Ca-as: LKVl
Gu-la: lySm
This four character ID is what Branch uses to separate the links for each app, so that only the correct app opens. You will need to host your own apple-app-site-association file and update it to look like this (also getting rid of the duplicate entries):
{
"applinks": {
"apps": [],
"details": [
{
"appID": "ZXXXXXXXX4.com.ci--e.co-ba",
"paths": [
"/TzUm/*",
"/a/Branch-key-for-co-ba/*"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.gu-la",
"paths": [
"/lySm/*"
"/a/Branch-key-for-gu-la/*"
]
},
{
"appID": "ZXXXXXXXX4.com.ci--e.ca-as",
"paths": [
"/LKVl/*"
"/a/Branch-key-for-ca-as/*"
]
}
]
}
With this solution, you must keep in mind that Marketing links created on the Branch dashboard (and any other link you create with a custom alias) will not work, because they do not have the four character identifier.