Skip to content

FIRApp bundle ID validation: allow exact match for extensions #5531

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 2 commits into from
May 5, 2020

Conversation

maksymmalyhin
Copy link
Contributor

Fixes #5126

return YES;
}

if ([GULAppEnvironmentUtil isAppExtension]) {
// This allows app extensions that have the app's bundle as their prefix to pass this test.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I think we should describe why we're doing this, not what the code is doing. Something like:

A developer could be using the same `FIROptions` for both their app and extension. Since extensions have a suffix added to the bundleID, we consider a matching prefix as valid.

@maksymmalyhin maksymmalyhin merged commit 3c99e7e into master May 5, 2020
@maksymmalyhin maksymmalyhin deleted the mm/bundle-id branch May 5, 2020 15:29
@firebase firebase locked and limited conversation to collaborators Jun 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bundle ID validation doesn't work in my share extension
5 participants