Not Getting API request In build preview of expo(Working fine in expo Go) #29171
Unanswered
git-ishaan
asked this question in
Archived: Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have made a expo app,
I hade made the login auth using my db(api req)
I have made some CRUD in the app(Inlcuding image upload n all)
but the issue here is, working absoluletly fine in local , using expo go
but When making its build preview, it is not making network request to even my local server (http) or not even to my deployed prod server(https)
here is my eas.json
{
"cli": {
"version": ">= 9.0.5"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"env": {
"EXPO_PUBLIC_URL": "http:myapihere"
}
},
"preview": {
"distribution": "internal",
"android": {
"buildType": "apk"
},
"env": {
"EXPO_PUBLIC_URL": "http:myapihere"
}
},
"production": {
"android": {
"buildType": "apk"
},
"env": {
"EXPO_PUBLIC_URL":"http:myapihere"
}
}
},
"submit": {
"production": {}
}
}
and here is my app.json
{
"expo": {
"name": "app",
"slug": "app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/iconnn.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splashhh.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.cnocit.MobileOps",
"permissions": ["INTERNET", "ACCESS_NETWORK_STATE"]
},
"web": {
"favicon": "./assets/favicon.png"
},
"extra": {
"eas": {
"projectId": "3dfthis is the id here demo13a2-76659ba881d9"
}
}
}
}
Any thing am i missing?
Beta Was this translation helpful? Give feedback.
All reactions