What I have done : I’m using the OkHttpClient (I’m using okhttp3 package) client to fetch JSON strings from a server in Adroid Studio. Fetching and everything works well only when trying to fetch the lesser number of objects. What I’m looking for: But, when I increase the number of objects to fetch, I don’t ..
Category : fetch
I want to link my app (using android studio) to godaddy SQL database. On my app, i have a button called "generate", which when clicked, will pull a random entry from my database and display on the app in textview. I have tried many different tutorials, but they all relate to editing data in an ..
I am trying to fetch from my react native app using my local backend, and it keeps failing. I can tell the request goes through to my backend from the debug messages, but I never note anything received on my client end. It works on iOS. I’ve already added "android:usesCleartextTraffic="true"" in my AndroidManifest. I have ..
I’m trying to make an api call to my back-end hosted in AWS (nginx + certbot) but every-time, I run the application I am getting the following error error [TypeError: Network request failed] The following is the snippet of the code which I’m using for fetch request. fetch(baseUrl+"/myapi") .then(response => response.json()) .then(result => console.log(result)) .catch(error ..
My goal is to not use Firebase, instead use a json file locally and fetch data from it just like I would by using Firebases’ DataSnapshot functions: getChildren() and getValue(). I’ve been following a youtube tutorial on how to create a Quiz application on Android, here is the json that I’m using on Firebase: { ..
I’m using axios in my app. When I make a post request for the very first time after opening the app, it is failing with the following error. From second time onwards, it works without any issue. Network Error – node_modules/axios/lib/core/createError.js:15:17 in createError – node_modules/axios/lib/adapters/xhr.js:81:22 in handleError – node_modules/event-target-shim/dist/event-target-shim.js:818:20 in EventTarget.prototype.dispatchEvent – node_modules/react-native/Libraries/Network/XMLHttpRequest.js:600:10 in setReadyState ..
I’m using expo-background-fetch to schedule a Background Fetch task. In that task I want to request geolocation, make an HTTP call to my server to retreive some data, and I also want to send a notification. The problem is that the geolocation request, fetch, and notification schedule functions are async. When I use .then or ..
I’m trying to write a mobile app via Capacitor that makes use of PouchDB. When I run the app in the emulator via Android Studio the connection to the remote CouchDB instance fails. I’ve tracked this down to a failure in the fetch API for certain URLs when running on Android. To debug I made ..
I’m developing a simple app with expo and react native that has a simple button. When I click on the button it sends a request to a web service that simply returns a downloadable url for a file. fore example "https://somesite.com/video.mp4" I am using fetch api to send the request to the server. Here is ..
I’m building a pwa based on REACT that fetches the info from an api based on Laravel 8. In this pwa the first action that the user has to do is logging in. On my pc it works perfect, it makes the post request and returns the response to continue the process. But, when I ..
Recent Comments