pushy / pushy-flutter

The official Pushy SDK for Flutter apps.
Apache License 2.0
21 stars 19 forks source link

Unable to turn off notifications using Pushy.toggleNotifications(false), Even with Pushy.toggleFCM(false) #41

Closed cabonitavince closed 2 years ago

cabonitavince commented 2 years ago

Pushy.toggleNotifications(false); Pushy.toggleFCM(false);

No logs displayed too. Pushy version: ^2.0.5

pushy commented 2 years ago

Hi @cabonitavince, Thanks for reporting this issue. We'd be glad to assist.

Calling Pushy.toggleNotifications(false) should definitely prevent new notifications from coming through on Android devices. Are you experiencing the issue on an Android or iOS device? Please be advised that this method is currently only supported on Android.

The best way to understand what is happening behind the scenes is to inspect the Android device logcat, specifically, the Pushy SDK logs. If you could please follow these instructions to export the device logcat from one of the affected devices after calling Pushy.toggleNotifications(false), that would be greatly appreciated:

  1. Install "adb" by following the instructions in this guide

  2. Enable Developer Options in the device settings

  3. Connect the device to your computer via a USB cable

  4. If the "Trust this computer" dialog appears on the device, press "Yes"

  5. Open a terminal prompt on your computer

  6. Run adb logcat -d *:S Pushy > logcat.txt

  7. Attach logcat.txt to this issue, or send it to us privately via e-mail at support@pushy.me

Thanks for your assistance in helping us investigate and resolve this issue!

pushy commented 2 years ago

Closing the issue due to lack of response, feel free to reply if you still need help with this.