Skip to content

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

Description

@ReMuSoMeGA93

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions