Skip to content
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

Closed
JumBe08 opened this issue Feb 12, 2024 · 1 comment
Closed

GetNotifications returns nothing. #147

JumBe08 opened this issue Feb 12, 2024 · 1 comment

Comments

@JumBe08
Copy link

JumBe08 commented Feb 12, 2024

Trying to use the GetNotifications method to get the current notifications at a Xiaomi Poco F3, but the array returns empty:

image

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?

@JumBe08
Copy link
Author

JumBe08 commented Feb 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant