Skip to content
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

Regular requests fail on android build. Works in Development #20

Open
ReMuSoMeGA93 opened this issue Dec 13, 2023 · 0 comments
Open

Regular requests fail on android build. Works in Development #20

ReMuSoMeGA93 opened this issue Dec 13, 2023 · 0 comments

Comments

@ReMuSoMeGA93
Copy link

Im using this package & populating polyfills like this:
import 'react-native-polyfill-globals/auto';

my fetch requests (both streaming & non-streaming) work in iOS. It does not work in Android, but I know that is a known problem for development builds.

Im testing it in a production build, and android fails for regular non-streaming HTTP requests. The request is received by my backend which returns a 200. But there is no response or error produced by my app.

 "dependencies": {
    "@joaosousa/react-native-progress-steps": "^0.4.0",
    "@react-native-async-storage/async-storage": "1.18.2",
    "@react-native-community/slider": "4.4.2",
    "@react-native-google-signin/google-signin": "^10.1.1",
    "@react-navigation/bottom-tabs": "^6.5.11",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/native-stack": "^6.9.17",
    "@react-navigation/stack": "^6.3.20",
    "expo": "~49.0.15",
    "expo-constants": "^14.4.2",
    "expo-dev-client": "~2.4.12",
    "expo-splash-screen": "~0.20.5",
    "expo-status-bar": "~1.6.0",
    "react": "18.2.0",
    "react-native": "0.72.6",
    "react-native-fetch-api": "^3.0.0",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-markdown-display": "^7.0.1",
    "react-native-paper": "^5.11.3",
    "react-native-purchases": "^7.4.0",
    "react-native-safe-area-context": "^4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-vector-icons": "^10.0.2",
    "react-redux": "^9.0.2",
    "redux": "^5.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/react": "~18.2.14",
    "@types/react-native-vector-icons": "^6.4.18",
    "react-native-polyfill-globals": "^3.1.0",
    "typescript": "^5.1.3"
  },
  "private": true
}

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

No branches or pull requests

1 participant