Hello,
I’m a little bit confused because there is a GitHub post from schiessle that they found a solution to get Nextcloud Links to open with the Android Nextcloud app and not with the browser (this was not working since android 12/13).
The GitHub post is here
offen 04:21PM - 15 Dec 22 UTC
geschlossen 11:52AM - 25 Nov 23 UTC
enhancement
0. Needs triage
client: 🤖🍏 mobile
You might be aware that one of the features of the Android Files app, to open in… ternal file links with the App instead of the Browser is broken since Android 13 and there is no way to fix it with the Android app: https://github.com/nextcloud/android/issues/9346#issuecomment-1326113482
This is a feature many Android user will miss. For me it get regularly in the way when receiving a file link via mail or Talk. Therefore I did some brainstorming with @tobiasKaminsky
We could bring back the feature server side. You may know it from various news sites, online shops, social media sites, etc which try to push you to their app when opening their webpage on a mobile device. The idea:
1. When opening a internal file link by default the browser will open
2. Nextcloud can detect that it is a file link and that the user access it from a mobile device
3. In this case we show some kind of popup/notification with the option:
* "Open the file with the App" (when clicked we do a redirect to a ncc link which will open the app)
* "Install the app", so that there is a easy way to install the app in case the user doesn't have it yet (link to the app store)
* small link "continue in the browser"
* maybe a checkbox "remember decision"
The nice thing about it:
1. It works on all devices and all mobile operating systems and versions
2. We could extend it to other links in the future, e.g redirect talk links to the talk app, note links to the note app, deck links to the deck app,...
cc @nextcloud/designers for the general UX and possible design of the dialog
cc @AndyScherzinger because you face the same issue and also participated in the Android ticket
there is an update from 2023 that the problem was fixed with a beta version
offen 04:21PM - 15 Dec 22 UTC
geschlossen 11:52AM - 25 Nov 23 UTC
enhancement
0. Needs triage
client: 🤖🍏 mobile
You might be aware that one of the features of the Android Files app, to open in… ternal file links with the App instead of the Browser is broken since Android 13 and there is no way to fix it with the Android app: https://github.com/nextcloud/android/issues/9346#issuecomment-1326113482
This is a feature many Android user will miss. For me it get regularly in the way when receiving a file link via mail or Talk. Therefore I did some brainstorming with @tobiasKaminsky
We could bring back the feature server side. You may know it from various news sites, online shops, social media sites, etc which try to push you to their app when opening their webpage on a mobile device. The idea:
1. When opening a internal file link by default the browser will open
2. Nextcloud can detect that it is a file link and that the user access it from a mobile device
3. In this case we show some kind of popup/notification with the option:
* "Open the file with the App" (when clicked we do a redirect to a ncc link which will open the app)
* "Install the app", so that there is a easy way to install the app in case the user doesn't have it yet (link to the app store)
* small link "continue in the browser"
* maybe a checkbox "remember decision"
The nice thing about it:
1. It works on all devices and all mobile operating systems and versions
2. We could extend it to other links in the future, e.g redirect talk links to the talk app, note links to the note app, deck links to the deck app,...
cc @nextcloud/designers for the general UX and possible design of the dialog
cc @AndyScherzinger because you face the same issue and also participated in the Android ticket
and that is not longer a server problem
offen 04:21PM - 15 Dec 22 UTC
geschlossen 11:52AM - 25 Nov 23 UTC
enhancement
0. Needs triage
client: 🤖🍏 mobile
You might be aware that one of the features of the Android Files app, to open in… ternal file links with the App instead of the Browser is broken since Android 13 and there is no way to fix it with the Android app: https://github.com/nextcloud/android/issues/9346#issuecomment-1326113482
This is a feature many Android user will miss. For me it get regularly in the way when receiving a file link via mail or Talk. Therefore I did some brainstorming with @tobiasKaminsky
We could bring back the feature server side. You may know it from various news sites, online shops, social media sites, etc which try to push you to their app when opening their webpage on a mobile device. The idea:
1. When opening a internal file link by default the browser will open
2. Nextcloud can detect that it is a file link and that the user access it from a mobile device
3. In this case we show some kind of popup/notification with the option:
* "Open the file with the App" (when clicked we do a redirect to a ncc link which will open the app)
* "Install the app", so that there is a easy way to install the app in case the user doesn't have it yet (link to the app store)
* small link "continue in the browser"
* maybe a checkbox "remember decision"
The nice thing about it:
1. It works on all devices and all mobile operating systems and versions
2. We could extend it to other links in the future, e.g redirect talk links to the talk app, note links to the note app, deck links to the deck app,...
cc @nextcloud/designers for the general UX and possible design of the dialog
cc @AndyScherzinger because you face the same issue and also participated in the Android ticket
But I’m using the newest Android (3.31.1) and Nextcloud 30.
If I get a nextcloud link the browser used and not the nextcloud app nor get I a notification that I can decide if I want to use the browser or nextcloud app.
So what did I understand wrong in the Github post? Should this work or not and what are the prerequisites? Because the post sounds like “this works out of the box with the new android client”.
I talk about links, for example internal nextlcloud links that should open with the nextcloud app and not the browser.
Would be great if someone can help me.
Thanks.
3 Likes
Hi, is there really no one who has an explanation or the same question? Am i the only one who wants to open internal links directly with the App and not with the browser?
It would be great if someone can help me.
Thanks a lot.
2 Likes
Just to add additional context, I also located these issues (below) which relate to setting up an assetlinks.json file in the .well-known directory. This has been completed, and the file is accessible, but the app still does not open when a share link is used.
master
← bugfix/deep-link
opened 10:50AM - 04 Apr 24 UTC
- [x] Tests written, or not not needed
### What this PR does?
It adds au… to verify for intent filters
Adds missing intent filters
Calls handleOpenFileViaIntent() function in line 564 for missing case
**Note: If we support only Android 12+ we can delete path patterns and http scheme**
### **How to Test**
**Note: Works for Only Android 11 and Below**
adb shell am start \
-W -a android.intent.action.VIEW \
-d "YOUR_INTERNAL_SHARE_LINK"\
### Why It's Not Working For Android 12+
In Android 12 and beyond, it's not possible to provide generic host data, and you must add an assetlinks.json file to the .well-known directory of every potential host so we can't do that.
### How It's Working For Android 12+
1. Host URL must have assetlinks.json in .well-known directory with correct sha256_cert_fingerprints. Example -> https://example.cloud.com/.well-known/assetlinks.json
```
[
{
"relation": [
"delegate_permission/common.handle_all_urls"
],
"target": {
"namespace": "android_app",
"package_name": "com.nextcloud.client",
"sha256_cert_fingerprints": [
".............."
]
}
}
]
```
2. In Android Manifest file for FileDisplayActivity intent filter must added. Example ->
```
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="example.cloud.com" />
</intent-filter>
```
### Useful links
Our previous [topic](https://github.com/nextcloud/android/issues/9346#issuecomment-1326113482)
[Official Documentation](https://developer.android.com/training/app-links/verify-android-applinks)
[Similar Documentation](https://doordash.engineering/2022/01/25/your-deep-links-might-be-broken-web-intents-and-android-12/)
opened 10:49AM - 04 Apr 24 UTC
closed 07:17AM - 19 Aug 24 UTC
enhancement
3. to review
client: 🤖🍏 mobile
[Document](https://developer.android.com/training/app-links/verify-android-appli… nks)
Currently, when user wants to open deep link with latest Android version, Google Chrome opening instead of Nextcloud Android app. To prevent that, we need to do some configuration in server side.
We need to ensure that our app's digital asset links are correctly set up. Digital asset links are used by Android to verify ownership of deep links. We can set up digital asset links **by creating an assetlinks.json file and placing it in the website's .well-known directory.** This file should contain information about our app and the deep links it handles.
**assetlinks.json**
```
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.nextcloud.client",
"sha256_cert_fingerprints":
["APP_CERT_FINGERPRINT"]
}
}]
```
master
← add-deep-link-handling-android
opened 10:12AM - 30 Jul 24 UTC
☑️ Resolves
This pull request includes documentation for handling deep links … in Android applications, specifically addressing the requirements and configurations for Android 12 and above.
🖼️ Screenshots
<img width="1800" alt="Screenshot 2024-07-30 at 12 32 26" src="https://github.com/user-attachments/assets/aed20857-1db8-4b86-88ba-3464fce119a9">
You’re not the only one. I just ran into this issue today. Sent someone a share link directly to a file and instead of opening in the app on their phone, it opened the browser instead (where they’re not already logged in). I also came across these same GitHub issues and it looked to me like this was resolved years ago.
Any idea why this isn’t working now? Does something need to be enabled on the server or app side?
Hi,
great that I’m not alone
But I really don’t understand why nobody else is talking about that.
do we really need enterprise support to get any answer?
Or do we have to write in Github?
EDIT:
I found this new documentation
but there is one question. How get I the cert fingerprint of the nextcloud android app? do I understand it correct, that this fingerprint is needed or is this fingerprint always the same and its the cert fingerprint that is mentioned in the linke above?
1 Like
bb77
July 11, 2025, 8:25am
6
I’ve never tested this myself, but I’d say the certificate fingerprint refers to the fingerprint of the SSL certificate used by your Nextcloud server. You can get it from the command line with:
openssl x509 -in /path/to/cert.pem -noout -fingerprint -sha256
Alternatively, you can find it in your browser. For example, in Firefox:
Click the lock icon in the address bar → More Information → Show Certificate.
Here’s an example from this website (the fingerprint is shown at the very bottom of the screenshot):