-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android openNotificationSettings opens Do Not Disturb #34
Comments
What version of Android OS are you running? I will setup Pixel 3 XL with that version and try to replicate what you are seeing. The navigation back to the calling Flutter application is standard Android navigation... use the system back button. iOS offers a back to app link in the upper left of the window but Android doesn't and expects the native built in back button to be used. There is no way to add a back button to that native Android screen that is being called from a separate application. |
Happens also on my end. It opens do not disturb permission on Samsung J4 plus. |
Same issue on my Galaxy S6 with Android 7.0. It opens the DND page instead, but it does show the top-left back button which works fine. However when I choose to open app settings it does not show the back button and the hardware back button doesn't work either. |
Looking at the code it uses Looking around the place it could use APP_NOTIFICATION_SETTINGS for Android 8 and above or ACTION_APPLICATION_DETAILS_SETTINGS May need to checked and it could be dependant on the Android version. |
We will need to add a Android version check and swap out the setting accordingly. Anyone interested in taking this one on and creating a PR? Sent with GitHawk |
Implemented solution in issue spencerccf#36 for issue spencerccf#34
I'm still having issues with API version 24. The StackOverflow and documents show that APP_NOTIFICATION_SETTINGS cannot be relied on for versions prior to API 26. In app_settings/android/src/main/kotlin/com/example/appsettings/AppSettingsPlugin.kt Line 67 in 9802283
>= 26 not 21.
|
Android Emulator Pixel 3 XL
When calling AppSettings.openNotificationSettings the device navigates to Do Not Disturb settings.
Additionally, it interrupts the app history and does not allow for easy navigation back to the calling Flutter application
app_settings: ^3.0.0+1
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G2022, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.39.2)
[✓] Connected device (1 available)
The text was updated successfully, but these errors were encountered: