-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
GetNotifications returns nothing. #147
Comments
Sorted it out, but I'm leaving here what went on, maybe it will help someone in the future. Documentation says that Notification permissions should be given to the application. However, at least here in this phone (and maybe in other Xiaomis), this isn't just about setting normal Notification permissions. These can be set at a number of places, for example: Settings -> Apps -> Manage Apps -> Appium Settings -> Notifications -> Yes This, however, won't be enough. You'll still need: Settings -> Privacy Protection -> Special Permissions -> Device & app notifications -> Appium Settings -> Allow notification access |
Trying to use the GetNotifications method to get the current notifications at a Xiaomi Poco F3, but the array returns empty:
I know I've given the io.appium.settings app Notification permissions. This app is also updated to version 5.7.5. I am able to get notification data with:
adb shell dumpsys notification
I was able to successfully use the very same uiautomator2 driver method on a samsung device.
Any idea what this might be?
The text was updated successfully, but these errors were encountered: