Skip to content

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

Merged
ncooke3 merged 1 commit into
google:mainfrom
harlanhaskins:harlan/hi-im-clippy
May 1, 2025
Merged

Add a utility to detect App Clips and make a semantic check for background URL sessions#220
ncooke3 merged 1 commit into
google:mainfrom
harlanhaskins:harlan/hi-im-clippy

Conversation

@harlanhaskins

@harlanhaskins harlanhaskins commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

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.

@morganchen12 morganchen12 left a comment

Copy link
Copy Markdown
Collaborator

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.

@ncooke3 ncooke3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@harlanhaskins

harlanhaskins commented May 1, 2025

Copy link
Copy Markdown
Contributor Author

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

@ncooke3 ncooke3 merged commit c18f2e1 into google:main May 1, 2025
@ncooke3

ncooke3 commented May 1, 2025

Copy link
Copy Markdown
Member

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

@harlanhaskins

Copy link
Copy Markdown
Contributor Author

Thank you so much!

@harlanhaskins harlanhaskins deleted the harlan/hi-im-clippy branch May 1, 2025 19:00
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.

3 participants