Skip to content

Add a utility to detect App Clips and make a semantic check for background URL sessions #220

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

harlanhaskins
Copy link
Contributor

@harlanhaskins harlanhaskins commented Apr 30, 2025

This adds two utility functions to GULAppEnvironmentUtil.m:

  • isAppClip, which determines heuristically whether the current app is an App Clip. I do not think it's necessarily required that app clips have this top level dictionary in their Info.plist, but in practice I would assume almost all do.
  • supportsBackgroundURLSessionUploads, which checks both for app extensions and app clips and turns off background uploads for both of them.

I have submitted a separate PR to firebase-ios-sdk to make use of supportsBackgroundURLSessionUploads, because as of now AppClips fail when uploading files.

Copy link
Collaborator

@morganchen12 morganchen12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! You should be able to fix the tests by cherry-picking c54e175.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…round URL sessions
@harlanhaskins harlanhaskins force-pushed the harlan/hi-im-clippy branch from b427b4f to 27cedee Compare May 1, 2025 16:30
Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@harlanhaskins
Copy link
Contributor Author

harlanhaskins commented May 1, 2025

Thanks so much for the review! Is this good to merge?

@ncooke3 ncooke3 merged commit c18f2e1 into google:main May 1, 2025
19 checks passed
@ncooke3
Copy link
Member

ncooke3 commented May 1, 2025

Done, @harlanhaskins. I'll work on getting it released to unblock your other PR.

@harlanhaskins
Copy link
Contributor Author

Thank you so much!

@harlanhaskins harlanhaskins deleted the harlan/hi-im-clippy branch May 1, 2025 19:00
ncooke3 added a commit that referenced this pull request May 1, 2025
ncooke3 added a commit that referenced this pull request May 1, 2025
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.

None yet

3 participants