maestro
maestro copied to clipboard
clearState doesn't clear notification permissions on iOS (Maestro v1.30.4)
Describe the bug
Having some trouble unsetting permissions on iOS, if to use clearState or specifically try unset permissions like this:
- launchApp:
appId: "com.app.id"
clearState: true
permissions:
all: unset
Nothing happens, I've also tried specifically to unset notifications, and I've also tried the value deny instead, but nothing seems to make any difference to the permissions the app has, in Settings it still says all the permissions have been granted, regardless of which value I used. Any thoughts on what I might be doing wrong? I really appreciate any help you can provide.
To Reproduce Steps to reproduce the behavior, e.g.:
- On MacOS 13.5 against an iOS 16.2 simulator use
clearStateas part of thelaunchAppcommand or separately and observe there are no changes to the notifications for the app
Expected behavior
I expect that clearState should unset any permissions previously granted from a previous run of the app.
Environment information:
- Maestro v1.30.4
- Platform: iOS 16.2
- Framework: Native app
- Device model and OS version: iPhone SE (3rd Generation) Simulator
- Host: M1 Macbook Pro
The same issue is also occurring on the Android side. Even after performing the necessary actions, the permission state persists. This issue is happening on Maestro Cloud, but it works as expected on a local device.
- launchApp:
clearState: true
permissions: { all: deny }