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

feat: Add an endpoint to list active app candidates #941

Closed
wants to merge 2 commits into from

Conversation

mykola-mokhnach
Copy link

Such endpoint could be useful if there are multiple apps running at the same time and we need to figure out which of them to activate manually in order to perform various on-screen interactions.

@KazuCocoa
Copy link
Member

KazuCocoa commented Sep 19, 2024

This change itself is good, but this didn't show up com.apple.ContactsUI.LimitedAccessPromptView.

When an app is foreground, it shows:

{
    "value": [
        {
            "isActive": 1,
            "state": 4,
            "processArguments": {
                "env": {},
                "args": []
            },
            "pid": 1518,
            "bundleId": "com.google.calendar"
        }
    ],
    "sessionId": null
}

When the contact permissions view is in the front of the app:
(no com.apple.ContactsUI.LimitedAccessPromptView was in this endpoint result)

{
    "value": [
        {
            "isActive": 1,
            "state": 4,
            "processArguments": {
                "env": {},
                "args": []
            },
            "pid": 1251,
            "bundleId": "com.apple.springboard"
        }
    ],
    "sessionId": null
}

Home screen:

{
    "value": [
        {
            "isActive": 1,
            "state": 4,
            "processArguments": {
                "env": {},
                "args": []
            },
            "pid": 1251,
            "bundleId": "com.apple.springboard"
        }
    ],
    "sessionId": null
}

in session endpoint as well.

@mykola-mokhnach
Copy link
Author

Thanks for checking it with iOS 18.
If the dialog is not listed then this endpoint won't be very useful :(
I'd prefer to close the PR for now

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

Successfully merging this pull request may close these issues.

2 participants