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

App Tracking Transparency Permission can't be set on iOS #906

Closed
jacobsapps opened this issue Mar 16, 2023 · 5 comments
Closed

App Tracking Transparency Permission can't be set on iOS #906

jacobsapps opened this issue Mar 16, 2023 · 5 comments
Assignees
Labels
bug Something isn't working maestro cli Related to the command-line Maestro tool platform: ios Testing iOS apps is affected

Comments

@jacobsapps
Copy link

jacobsapps commented Mar 16, 2023

Hello 👋

I'm fairly new to Maestro and absolutely loving it. Transitioning to this from Appium is like the difference between ARM Assembly and SwiftUI. Simply 🤯.

I've got a small teething issue which I think might be a bug on Maestro's side.

I can't set App Tracking Transparency permissions state in my flows.

I'd expect to set it as such:

appId: my.app.id
---
- launchApp:
    clearState: true
    permissions:
        usertracking: unset
- runFlow: subflows/my-subflow.yaml

I have some navigation logic which shows my ATT permissions screen if ATT is not yet set, but this does not show up when running these tests. However, when deleting the app from Simulator and running a real fresh install, the screen does show up. Therefore, it seems like the ATT permissions aren't being set via launchApp.

I've looked in your source code and in maestro-ios/src/main/java/ios/simctl/Simctl.kt the usertracking permission is listed in the list of all permissions, but it seems like it's not actually applied.

Would really appreciate any help you can give, and happy to share more info as required!

Thanks,

Jacob

@ArthurSav ArthurSav assigned ArthurSav and berikv and unassigned ArthurSav Mar 20, 2023
@ArthurSav
Copy link
Contributor

Hi @jacobsapps thanks for reporting this issue. We'll take a look.

@ArthurSav ArthurSav added the enhancement New feature request or improvement of an existing feature label May 3, 2023
@aldo-astro
Copy link

I think it's already added in LocalSimulatorUtils.kt about 2 months ago.

Since I have a similar use case, I'll verify the flow that uses app tracking transparency in my simulators, I hope this issue has been resolved 👍

@otoniel-isidoro
Copy link

seems that the notifications permission is missing for ios too. Why the notifications permission is not listed here? https://github.com/mobile-dev-inc/maestro/blob/8aacc071649fe0b5eb755d6fe92ea115245d1a63/maestro-ios-driver/src/main/kotlin/util/LocalSimulatorUtils.kt#L345C5-L345C5

@bartekpacia bartekpacia added bug Something isn't working maestro cli Related to the command-line Maestro tool platform: ios Testing iOS apps is affected and removed enhancement New feature request or improvement of an existing feature labels Jul 12, 2024
@bartekpacia
Copy link
Contributor

bartekpacia commented Jul 12, 2024

Thanks for reporting (and sorry about the problem, of course). If someone would like to take a stab at it, we are happy to receive contributions and will do our best to review them promptly.

@Fishbowler
Copy link
Contributor

I believe this was fixed in #1476.
Annoyingly, I suspect you need to use userTracking - case sensitive :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maestro cli Related to the command-line Maestro tool platform: ios Testing iOS apps is affected
Projects
None yet
Development

No branches or pull requests

7 participants