New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening ntfy.sh link in a browser on Android opens the app and subscribes to the topic if the app is installed #20
Comments
I like this idea. And it should not be hard to implement. |
Re-opening this, since I removed the feature in the latest commit. Android is not allowing me to register reg-ex patterns of URLs and the wildcard stuff seems incredibly buggy. I spent two+ hours with it yesterday and it's not worth it for now. |
Let's simplify it first?
Is this a possibility? |
I wrote a whole long paragraph about why that's difficult and then I read your comment again. You just want a Share button that prints two links, one of which will open the app? I don't know if Android will highlight and let you click ntfy:// links, probably not, but it's worth a try definitely. And we'd still need a solution for the web UI. |
Philipp, then I did a poor job of conveying my intention. In case you happen to have that paragraph, I would really appreciate reading it. If it's gone, can you just type in the highlights so I can figure out what disconnect existed (before you read my comment again)?
Right. My thought is that the app can register itself with
I believe we can still use |
I'm not a dev, but going from what has been spoken in the issue and my limited knowledge of stuff, you could just add a ntfy: link in the web page if you can get ntfy app to open ntfy: links. Kind of link how tel: opens the dialer and mailto: opens email. |
That would be easy to do, but then it looks horribly broken for people that don't have the app installed. |
You could word something like "if you have the app installed hit THIS link" |
For me, having the app able to handle I wrote a custom Owntracks server implementation and part of it includes device configuration generation. It creates an |
Sorry I never responded to this. This sounds easy enough. I should be able to whip that up at some point. There are just so many tickets :-D |
(I'm starting work on this) So if I implement I wonder if I should structure the link differently, so that other actions are supported in the future, like I suppose I could iterate on it, so I think I'll just start with |
https://github.com/binwiederhier/ntfy-android/pull/24/files implements this:
I think this is all there is to it. All that's missing is documentation for it. To test:
|
A scenario may be:
If I click on the ntfy.sh link, it will attempt to open the app and subscribe to the topic, so that I can view it from there.
If I do not have the ntfy.sh link, it will display the web page for that topic.
The text was updated successfully, but these errors were encountered: