in react-native & apollo-boost client & android, network request fail in builded apk
See original GitHub issuewhen i try request to apiserver, it is not problem in android just running by react-native(script: react-native run-android)
but, in builded apk, i got a error
Network error: Network request failed]
only in apk.
i guessed that the reason is http/https. but, in https same. runned by react-native => ok, but apk => fail.
ApolloClient.js
export default new ApolloClient({
uri: 'https://domain',
cache: new InMemoryCache(),
clientState: {
defaults: defaults,
resolvers: resolvers
}
})
let me know the reason and solution please.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
React Native Apollo error - Network request failed
I tried to set ip address, it's working on real device. But on android emulator, it's not working. – linhnh. Sep 4, 2017...
Read more >Integrating with React Native - Apollo GraphQL Docs
You can use Apollo Client with React Native exactly as you do with React.js. Install it with npm like so: Bash. 1. npm...
Read more >React Native for Mobile Development - EBooksWorld
This chapter describes how to beta test a React Native application with the distribution systems available for iOS and Android. We also cover...
Read more >Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. This document is under active development; the topic it covers is...
Read more >native part of mapbox react native libraries were not registered ...
I am trying to configure for Android a react-native app which uses Mapbox and works ... universalApk false // If true, also generate...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If your link is having http then add the following line in your android manifest file android:usesCleartextTraffic=“true”
Any solution here !??? I’m facing same issue on some of android devices.