binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.35k stars 722 forks source link

iOS - Feature Request - QR Code Scanner + Topic Label #756

Open laranjaquadrada opened 1 year ago

laranjaquadrada commented 1 year ago

:bulb: Have Topics added via scanning QR Code and set with a custom Label name.

:computer: Android app, iOS app

The idea is that if we generate a random topic, for example "71e0a067-3020-44e8-900f-65638341a453" that could be turn into a QR Code that the ntfy app could then use when adding a New Topic.

So a New Topic could allow someone to type or to Scan a QR Code, and then to be able to also add a "Label" to the topic.

So for example, I could scan the QR Code to add topic "71e0a067-3020-44e8-900f-65638341a453" and add label "Custom Topic".

In Ntfy App then I would have my topics listed with Labels and topic-id, example:

Custom Topic 71e0a067-3020-44e8-900f-65638341a453

Somt Topic some-topic

My Topic mytopic

... And so on.

Makes sense?

I think this would be great so we could have topics generated with UUIDs and let people subscribing label them as they need, regardless of the actual topic id.

Thanks!

wunter8 commented 1 year ago

"Labels" already exist. If you look at the subscription settings for a specific topic, you'll see a "Display Name" setting. A QR code should work already, too (at least on Android). If you create a QR code that goes to a website like this: ntfy://[DOMAIN]/[TOPIC], and scan it with any QR code reader on your phone, it should open up the ntfy app and automatically subscribe to that topic.

For example, you could do ntfy://ntfy.sh/UUID or ntfy://ntfy.example.com/UUID. Then once you're subscribed to the topic, change the display name

binwiederhier commented 1 year ago

I don't hate the idea of adding a scannable/visual thing to add a topic though. Not high on the list though. The barcode would probably just include the ntfy:// link, as wunter said.

leapfog commented 1 year ago

It would be great, if a QR-code with topic (and label) could also be generated from UIs context menu.

mxbranson commented 1 year ago

IOS too please. I just integrated this with Perfex CRM (from codecanyon) and would love a point and click way for staff to subscribe to their personal notification topic and the department ones in the mobile apps.

I guess an alternative would be to have subscriptions pushed back when a user/pass is used to connect to a specific topic (like a company wide one)

P.S. Just found this and I am amazed how much work you've put into it. Fantastic project. Thanks!

mofosyne commented 1 year ago

At least for android, there is now actions.intent.GET_BARCODE which would request the system's default barcode reader, so that should reduce the complexity of needing to bake in a barcode reader library into the app. This feature will certainly be handy for adding UUID based topic label

https://developer.android.com/reference/app-actions/built-in-intents/common/get-barcode

weirlive commented 1 year ago

The display name doesn't seem to exist on the IOS app, I can do it on the desktop but not in the app.

dgtlmoon commented 1 year ago

@mxbranson same/similar situation, i just cant get people to type in our custom URL correctly, a QR code reader or similar would be just amazing - "Push notifications made easy" but its really not easy having to correctly type in a complicated URL - it is 2023 after all :) lets go :)

CypherPotato commented 11 months ago

ntfy can be an more useful tool if it was easy to link for the end user. we need to teach him how to link their device on ntfy and it's so complex to download an app, copy their topic id and subscribe on the app.

if we could just support iOS deep linking or scanning an qr code it would be awesome.

dgtlmoon commented 11 months ago

@CypherPotato @binwiederhier https://github.com/binwiederhier/ntfy-android/pull/67 unfortunately the author of the PR doesn't write what the status of it is

The PR itself looks really clean

oHTGo commented 8 months ago

I'm glad deep link is available in the Android app, but I don't know when it will be available in the iOS app :(

dlt-green commented 5 months ago

when integrating a qrcode scan in the app for the ID, maybe it would also be possible to add in this qrcode 4 informations: "serverURL + channelID + channelName + logoURL" to get this example result like on the picture

(logoURL downloads the picture and save it on the phone)

image

Kore-rep commented 1 month ago

I've made a PR for the android app here: https://github.com/binwiederhier/ntfy-android/pull/91, I'll probably update it to add a back button to the QR scanner Action, but otherwise it's ready to go. Unfortunately I don't know IOS, so can't help on that end