Closed azizsaad closed 10 months ago
cc @christocracy Added the new issue here - thanks!
You need to add "plugins"
to your app.json
You need to add
"plugins"
to yourapp.json
Sorry for not clarifying this in the original issue, but I believe I have:
plugins: [
"react-native-background-fetch", // background worker
[
"expo-image-picker", // image picker
{
photosPermission: "Allow access your photos",
},
],
],
And what about the final section in the Setup doc: Re-build?
And what about the final section in the Setup doc: Re-build?
Does that not only apply to Android apps? as stated: "You must rebuild your Android app for the added plugins to be evaluated."
Side-question - this is akin to ejecting from a managed to bare workflow, is it not?
I believe the word "Android" should be omitted.
Run it.
I believe the word "Android" should be omitted.
Run it.
I have - the ios
and android
directories have been created, but the error is still appearing
I don't know
I am running this in the Expo Go app - should that make a difference with this error?
I don't know. I have little experience with Expo Go and I'm too swamped with other stuff to look into it.
No worries - thank you anyways!!
Hey, I realised my issue.
I was testing this on the Expo Go app, which would not work as, if I understand correctly, the Expo Go app is only compatible with the Expo SDK packages.
I had to create a custom Development Client build with the EAS CLI, create this build on their infrastructure, scan the QR code and open the dev-client app on my physical phone (background-fetch doesn't work on iOS Simulator it seems)
Great. Good work.
Your Environment
react-native -v
): 0.71.8 - Managed Expo applicationExpected Behavior
Should be able to install and use the plugin
Actual Behavior
Getting the following error when installing the plugin:
Steps to Reproduce
npx expo install react-native-background-fetch
ios
key in the Expo config file looks like this:App.js
file (entry point to project)Context
Debug logs