JagandeepBrar / lunasea

Self-hosted software controller built using Flutter
https://www.lunasea.app
GNU General Public License v3.0
1.24k stars 61 forks source link

[Bug] Cannot copy webhook url (Android) #713

Closed Flash1232 closed 1 year ago

Flash1232 commented 1 year ago

Describe the Bug When I go under Settings>Notifications>Overseerr and click the Device button (or any other option) nothing happens and I get no webhook into my clipboard.

To Reproduce As above.

Expected Behaviour I should have the webhook url in clipboard.

Screenshots If applicable, add screenshots to help explain your problem.

Versions 10.2.0 stable

Additional context Add any other context about the problem here.

JagandeepBrar commented 1 year ago

Does your device have Google Play Services installed?

Flash1232 commented 1 year ago

No, it does not.

JagandeepBrar commented 1 year ago

Sorry for the very late response, been dealing with a move and a few other things lately in my personal life!

Google Play Services are required for notifications to work, and so by extension you will not be able to copy the webhook URLs without them installed. This is because notifications currently rely on Firebase Cloud Messaging which relies on Google Play Services.

I will try to add in detection of Google Play Services and hide the notifications section on devices without it, but at this time there are no alternatives with Flutter except for OneSignal which also uses Firebase Cloud Messaging under the hood.

So at this time it is not possible to receive notifications on Android without Google Play Services installed.

Flash1232 commented 1 year ago

No worries and thanks for the clarification.

I have no dev experience with Flutter but it seems unifiedpush might be supported: https://unifiedpush.org/developers/flutter/ with a FOSS FCM distributor https://unifiedpush.org/developers/embedded_fcm/