binwiederhier / ntfy-android

Android app for ntfy.sh
Apache License 2.0
539 stars 112 forks source link

Feature Request: Allow subscribing topics by scanning a QR code #87

Open BigPebble123 opened 3 months ago

BigPebble123 commented 3 months ago

I'd like to propose a feature that allows users to configure topics in the Ntfy Android app by scanning a QR code. This would provide an easy and convenient way for user to subscribe topics, particularly in situations where typing is not feasible.

I see two possible approaches to achieve this:

The QR code should be composed of a protocol, an instance URL and a topic. Example: ntfy://ntfy.sh;topicname

c33s commented 2 months ago

cosmetic comment: for the format i would vote to stick to a more regular format like:

ntfy://ntfy.sh/topicname

symfony notifier ntfy is using NTFY_DSN=ntfy://[USER:PASSWORD]@default[:PORT]/TOPIC?[secureHttp=[on]]