AssetLinks | Add download links to asset fields in Craft CMS | Plugin library
kandi X-RAY | AssetLinks Summary
kandi X-RAY | AssetLinks Summary
A Craft CMS extension to automatically add download links to files in the Assets fields on entries. There will now be a new icon beside the "Delete" icon for each file when you’re viewing an entry with assets fields.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Include assets .
- Get the name of the asset links .
- Get the version number .
- Get developer name
- Get the developer URL .
- Returns true if there is a Cp section .
AssetLinks Key Features
AssetLinks Examples and Code Snippets
Community Discussions
Trending Discussions on AssetLinks
QUESTION
Problem is opening application over link in android 12 or higher.
Everything works fine on lower versions of android.
When I look at my “App Info” -> “Open by default” screen. I see unapproved links.
When I turn on that link as approved inside supported web addresses, opening app via link works.
I have read about verifying intent filter inside android documentation and everything looks fine to me.
https://developer.android.com/training/app-links/verify-site-associations#add-intent-filters
Have aded .well-known/assetlinks.json to my domain https://my.domain.net/.well-known/assetlinks.json content of .well-known/assetlinks.json (generated and checked with https://developers.google.com/digital-asset-links/tools/generator)
...ANSWER
Answered 2022-Feb-16 at 09:54What changed?
As from Android 12 they have introduced a new way of checking for supported web domains.
Lower versions of android remain unchanged.
How does verification in android 12 works?
On installing the application android sends async requests to domains inside intent links to check if .well-known/assetlinks.json exists and is valid.
How to generate assetlinks.json?
I recommend using this tool google provides for generating that file.
It can also check if assetlinks.json is present and setup correctly.
Generator: https://developers.google.com/digital-asset-links/tools/generator
Where to get SHA-256 form?
- Open Android Studio
- Open your Project
- Click on Gradle (From Right Side Panel, you will see Gradle Bar)
- Click on Refresh (Click on Refresh from Gradle Bar, you will see List
- Gradle scripts of your Project)
- Click on Your Project (Your Project Name form List (root))
- Click on Tasks
- Click on Android
- Double Click on signingReport (You will get SHA1 and MD5 in Run Bar(Sometimes it will be in Gradle Console))
- Select app module from module selection dropdown to run or debug your application
After you have generated .json file, at put it inside root of domain (.well-known/assetlinks.json).
I recommend opening it manually just to make sure.
https://my.domain.com/.well-known/assetlinks.json
Setting up Intent links in application
To you AndroidManifest.xml add
QUESTION
I am deploying a Flutter Web App on Firebase Hosting.
And a Flutter App on Android.
To use App Links that redirect to my Android application, I need to verify the App Links serving the file assetlinks.json
on the web at https://example.com/.well-known/assetlinks.json
How can I make the file available, without 3XX redirects, from my domain, that is Flutter deployed on the web with firebase hosting?
...ANSWER
Answered 2022-Feb-01 at 10:49If I am not mistaken, Firebase stores files in a so called bucket. The bucket can be directly exposed to the internet or you can use the API to pull the file you need and put it somewhere public on your domain:
https://firebase.google.com/docs/storage/web/list-files
To see how to publish files in a gloud bucket, here is a good answer:
How do you make many files public in Google Cloud Storage?
Be aware the method described provides public access, so make sure you only expose what you want.
QUESTION
I am trying to enable deep linking with my app
I need when I scan the QR from outside my app like using QR Scanner app or using QR scanner in the system, and when I choose the web browser and search with the link, it directs to my app
I added the code to manifest like this image:
and when I searched with https://domain.ex/.well-known/assetlinks.json
and searched with https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://domain.example&relation=delegate_permission/common.handle_all_urls
what is the error I had made?
I am running one release mode and SHA256 is from google play console.
expected behaviour is: when I search with https://domain.example/pathPrefix it direct to my app
...ANSWER
Answered 2021-Dec-31 at 06:09I think need to add scheme separately
QUESTION
I have the following manifest code:
...ANSWER
Answered 2021-Dec-08 at 14:54I'm sure you already visit the following link: https://developer.android.com/studio/write/app-link-indexing
Just a little bit improve your manifest to clean the code
QUESTION
I'm trying to to setup a Digital asset link from my website to my app, but I can't get it to work. I made sure the intent-filter
was present in my manifest and I uploaded a assetlinks.json
file using my Play store signing SHA 256 fingerprint, tested it with Google's statement list and it returned successfuly.
While going through verification steps again, I checked my device's app links with adb -d shell pm get-app-links --user current com.example.app
and I realized that my app link didn't have a signature. I'm guessing that's its probably the reason the app can't link to my website since it can't compare a signature to the fingerprints given in the assetlinks.json
hosted on my site's server.
My app link
...ANSWER
Answered 2021-Nov-25 at 14:35I might just have solved something like this. Things to check:
Please note, i'm only using imgur.com as an example, I'm not affiliated/working for them in any way.
- Check your assetlinks.json, and compare it to a working one (e.g. https://imgur.com/.well-known/assetlinks.json). You could also test your file like so: https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://imgur.com&relation=delegate_permission/common.handle_all_urls
- Next, check your AndroidManifest.xml, and ensure that the attribute
android:autoVerify="true"
is set on theintent
-element (By mistake, I've declared mine on theactivity
-element) which caused same problem as above):
QUESTION
I am working on setting up my Android app to work with HTTP Web Links according to the various guides and protocols and have successfully setup the deeplinks which includes serving my assetlinks file from /.well-known/assetlinks.json
. Everything is working as expected. What I am struggling with from an operational perspective is how to go about maintaining this file -- specifically during update and failure scenarios.
Let's say I have existing customers who have downloaded my app and are using weblinks just fine. I update my assetlink file and push the new version to my server. When do my customers get the updated assetlink file? Is the OS configured to check for updates on some cadence or app launch? Is it only on app update or reinstall?
Similarly, imagine my website is down. New users are installing my app and the OS will not be able to associate my domain and when customers click the HTTP web links they will not be deeplinked into the app. This makes sense. But after I recover from my outage when will the customer get their assetlink file given the app is already installed?
Similarly lets say I upload an invalid assetlinks.json file. Will this break the current web links for existing customers who already had a valid association when they first installed the app?
Understanding these issues will ultimately help me better troubleshoot customer issues and tune the expected traffic I should expect to see for my assetlinks file from my server.
...ANSWER
Answered 2021-Nov-01 at 17:08Let me try to briefly put down how app linking works. I'm listing down all the things which I have learned gathered while playing with app links. Also attaching a very good article which covers in more details about the following.
There are two key components in registering and updating app links: Package manager
and Intent Filter Verifier
. These are the usual steps in which the workflow runs:
Every time an app is installed or updated through the package manager an intent named
INTENT_FILTER_NEEDS_VERIFICATION
is generated.The
Intent Filter Verifier
looks up the domains specified in the tags defined in the manifest of your app.For every domain/hostname specified for the app, the IntentFilterVerfier tries to fetch statements for each of the domain using an API call.
- A sample API call for the domain google.com looks like this
- The APIs documentation of this is carefully hidden by google at Digital Asset Links
Based on the result of the API call, the domain/hostname is categorized into one of the following buckets
QUESTION
I'm trying to create an App link but the App links assistant keeps throwing the below error in Step 3 (Associate website) while generating the assetlinks.json.
An error occurred while trying to get the sha-256 fingerprint of the keystore file. Please make sure that your keystore file is correct.
I have tried both the options but getting the same error:
- Signing config - debug
- Keystore file - Created a new keystore from Build > Generate signed Bundle/Apk > Apk > Create New
Am I missing something? I'm on Android Studio Arctic Fox | 2020.3.1 Patch 3 Is there a way to create the JSON file without using the App links assistant?
...ANSWER
Answered 2021-Oct-12 at 14:08You can use online tool for generating this json: https://developers.google.com/digital-asset-links/tools/generator
Or create it yourself, it's really really simple file, sample: https://developers.google.com/digital-asset-links/v1/getting-started#quick-usage-example
QUESTION
I'm trying to serve my AppLink for google association services. The following works:
...ANSWER
Answered 2021-Sep-30 at 06:46You can use try_files
to find the specific file you want.
For example:
QUESTION
I'm using the PWABuilder to create the apk but whenever I build it, change the fingerprint and install the app, the address bar always shows up.
I used the "Asset links tool" to check if everything was correct and it seems to be so, assetlink fingerprint is the exact same. I've had this issue only after the latest update of PWABuilder, i'm not sure if it's related.
Website manifest and assetlink: https://github.com/Specy/specy.github.io/tree/master/skyMusic Website URL: https://specy.github.io/skyMusic/ Asset links: https://specy.github.io/skyMusic/.well-known/assetlinks.json APK: https://cdn.discordapp.com/attachments/771432833034092554/878028887584550952/Sky_Music_Nightly.apk
I tried on two different devices too.
...ANSWER
Answered 2021-Aug-24 at 02:37have you tried checking the logs using the following command?
adb logcat -v brief | grep -e OriginVerifier -e digital_asset_links
most likely there's an issue (perhaps with the package name) in your asset link file.
also worth checking you can actually view the assetlink file by browsing to the url (https://example.com/.well-known/assetlinks.json) if you can't see that from your device then it wont work.
QUESTION
Hello Everybody I am currently working with assetlinks.json trying to exclude urls containing the "/adm/" directory, in IOS I can do this defining into my https://mysite/.well-known/apple-app-site-association
file this:
ANSWER
Answered 2021-Jul-27 at 22:45There´s a way to exclude certain urls using the assetlinks.json file?
No. That is not the role of assetlinks.json
. assetlinks.json
ties domains to apps via the signing key fingerprints. It does not tie URLs to apps. Your rules for which URLs to handle would go in your for the relevant activity.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AssetLinks
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page