tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
18.81k stars 1.46k forks source link

Taildrop Android no notification when file is delivered #8626

Open CoreyBin opened 1 year ago

CoreyBin commented 1 year ago

What are you trying to do?

I try to use taildrop to send files from other clients to Android. According to the official documentation, the Android side should receive a notification, click the notification to process the file, but I am using a mobile phone made in China and cannot receive the push from Google gcm. So my mobile phone can't receive the notification of file acceptance, so is there a better way to receive files without relying on message push

How should we solve this?

My initial thought, can you open the api to handle the acceptance of files, such as adding a notification of file sending in webhook, I can build a push service to push messages to my mobile phone

What is the impact of not solving this?

If there is no relevant optimization, Android phones made in China will not be able to use this function normally

Anything else?

No response

DentonGentry commented 1 year ago

So the actual problem is that you don't get a notification when a taildrop file is delivered?

but I am using a mobile phone made in China and cannot receive the push from Google gcm.

The notification is generated on the device, GCM is never used.

CoreyBin commented 1 year ago

So the actual problem is that you don't get a notification when a taildrop file is delivered?

but I am using a mobile phone made in China and cannot receive the push from Google gcm.

The notification is generated on the device, GCM is never used.

Yes, the actual problem is that I did not receive relevant notifications on Android. At first I thought the notifications were through the gcm channel. I am using the miui14 Chinese mainland version. What information can I provide to help troubleshoot?

jstebbins commented 9 months ago

I also do not receive notifications when a file is delivered on android. The file shows up in downloads, but there is no notification.

Phone: Samsung S21 Ultra Android 13

mattlodder commented 9 months ago

I also do not receive notifications when a file is delivered on android. The file shows up in downloads, but there is no notification.

Phone: Samsung S21 Ultra Android 13

Same issue on a Pixel 6 Pro -- and Android tells me I can't turn on notifications for Tailscale as "This App Does not Send Notifications"...

Jon-5 commented 7 months ago

I also do not receive no notification presented when files are received through Taildrop.

TailScale Version: 1.58.2 Install: Google Play Store

Phone: Pixel 7 Pro Android version 14, build UQ1A.240205.002

I do remember in ~Dec 2022 seeing a notification upon receiving a file through Taildrop.

When querying the Android 'App info' screen it shows "Notifications are turned off" >tap> "This app does not send notifications", further "No Permissions granted" nor asked for by the app.

When Tailscale is enabled/disabled the VPN status bar icon does show/hide.

attorneyatlaw commented 7 months ago

I have two phone, one is galaxy note 20(SAMSUNG), another is G7(LG). Galaxy do not receive notification, but G7 receives.

afzl-wtu commented 6 months ago

On Poco x6 pro (Android 14). Not working. Also I can not enable Notifications from App info settings

ilyagr commented 4 months ago

Same problem for me. This is in the US, not China, so I think Chinese issues may be a red herring. I'm using Pixel 6a, Android 14.

See also https://github.com/tailscale/tailscale/issues/9459. Tailscale UI on my Mac claims that the file has completed the transfer. I did not find the file on my phone yet (it's been 20 minutes), though maybe they'll appear there in a bit, who knows.

Update: It is now a day later, and -- lo and behold -- the file appeared on my phone about half an hour after I turned Tailscale back on on the phone. There was no notification. Tailscale wasn't even on on the computer I used to send the file at the time.

phillipprado commented 2 months ago

Can confirm this is still an issue. Tested on my Pixel 8 running Graphene OS, and the Tailscale app is installed from the Play Store. I tried multiple times, I tweaked the notifications settings, and I tried receiving files from both desktop and mobile devices. The file nearly instantly shows up in my downloads, but there is no notification when receiving it.

yqs112358 commented 1 week ago

It seems that Tailscale Android use DirectFileMode in ipnlocal to write the file received directly into Download, no any interaction with Android layer. It's an intentional behavior.

However, in my opinion, the pop up notification when a file is received is quite necessary - this allows the user to click and quickly open the received file, instead of opening file-manager manually and then searching through the whole file list.

Maybe something like https://github.com/tailscale/tailscale/blob/9248290941fc6d05aad96e7ef3a78ebeb3bdfca4/taildrop/taildrop.go#L101 can be useful to call callback functions registered by Kotlin, to provide features like progress-tracking and file receive notification.