Skip to content

Increase initOrder of content provider #57

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
Oct 28, 2021

Conversation

androideveloper
Copy link
Contributor

android:initOrder provides the order in which the content provider should be instantiated, relative to other content providers hosted by the same process. When there are dependencies among content providers, setting this attribute for each of them ensures that they are created in the order required by those dependencies. The value is a simple integer, with higher numbers being initialized first. Source https://developer.android.com/guide/topics/manifest/provider-element

With Firebase setting 100 as initOrder, we can use 200 here to run earlier in the process.

`android:initOrder` provides the order in which the content provider should be instantiated, relative to other content providers hosted by the same process. When there are dependencies among content providers, setting this attribute for each of them ensures that they are created in the order required by those dependencies. The value is a simple integer, with higher numbers being initialized first. Source https://developer.android.com/guide/topics/manifest/provider-element

With Firebase setting [100 as `initOrder`](https://github.com/firebase/firebase-android-sdk/blob/c56a9769b723bb96551ed2aa9fd3731e541ca018/firebase-common/src/main/AndroidManifest.xml#L28), we can use 200 here to run earlier in the process.
@oblador oblador merged commit fa315b5 into oblador:master Oct 28, 2021
@androideveloper androideveloper deleted the patch-1 branch October 29, 2021 07:10
r0h0gg6 pushed a commit to r0h0gg6/react-native-performance that referenced this pull request Jul 27, 2025
`android:initOrder` provides the order in which the content provider should be instantiated, relative to other content providers hosted by the same process. When there are dependencies among content providers, setting this attribute for each of them ensures that they are created in the order required by those dependencies. The value is a simple integer, with higher numbers being initialized first. Source https://developer.android.com/guide/topics/manifest/provider-element

With Firebase setting [100 as `initOrder`](https://github.com/firebase/firebase-android-sdk/blob/c56a9769b723bb96551ed2aa9fd3731e541ca018/firebase-common/src/main/AndroidManifest.xml#L28), we can use 200 here to run earlier in the process.
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