My app works with api.
I'm using the HTTP package.
When I Hot Reload, the data connection drops and crashes.
I changed my model and service codes but it didn't work
when i first run statusCode == 200 when hot reload statusCode==500
Related
I've got Firebase Analytics configured for my Flutter app with -FIRDebugEnabled passed into the Xcode scheme. When I run the app, Firebase Analytics says that debug mode is enabled and that everything is working correctly. Events get logged with a successful upload.
However, nothing appears in Firebase Console. 0 active users, no devices found in DebugView and no events logged.
I ran flutter clean, reinstalled the app and still nothing is working. I've also added AdSupport.framework to the iOS app.
Anyone knows what might be happening?
Original problem: My flutter app using the http package connects to a rest service to get the data needed. If I am connected via my modems wifi, the connection would fail (but not timeout) on the login attempt. The circular spinner would spin forever (tried for 15 minutes). If I connect using my router's wifi, or my mobile data, the connection is fine. The app logs in and runs correctly.
I created a web app to test and after trying a few things, I found port 443 was the problem. I changed the port on my rest service and the app and now 2 emulators and 2 physical devices all work perfectly during testing.
Then yesterday I published the app update to the Play Store and the App Store. I'm still waiting on the app store to approve, but testing from TestFlight worked perfectly on my iPhone.
Google approved the app quite quickly, but when I install the update from the Play Store, no connection at all works now. I have tried uninstalling and rebooting the phone (Galaxy S22+ running Android 13 and a Galaxy S8 running Android 9) but regardless of whether I connect using mobile data or either wifi, the login sits trying forever. The app does not crash, it just won't login and although there is a timeout on the login connection, it doesn't timeout.
What could be the difference between the test version which works great, and the version I build for uploading to the Play Store?
I have developed an PWA with flutter and Provider as state management. API calls happens but app interface not updated. It is Ok on apk version.
I am confused why interface not updating after api responses is ready.
I built my an app with Ionic 5, The app is makes requests to an API which I made with Laravel 8, data is sent in json form while an API key is required and it is sent in the headers section.
Everything works fine when the App is built in debug version however the release version does not even give an indication of what's happening. For example the login button when pressed it does not do anything it only gives a timeout message which I had set in the app to let the user know the process failed.
The debug app works perfectly without any issues but the release app does not.
I'm sorry I can't post the entire code here since I can't pinpoint where the error seems to be coming from and it's a lot of code.
App - Ionic 5, Angular.
API - Laravel 8
Requests in JSON
Headers - API Key
I later checked the app logs on Android Studio logcat and this is the error that kept popping up: "E/chromium: [ERROR:ssl_client_socket_impl.cc(981)] handshake failed; returned -1, SSL error code 1, net_error -202"
Make sure that your server start with https and have a valid SSL certificate.
i got this message :
pc_0 - Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. Reason: Database lives in a different region. Please change your database URL to https://"appname"-default-rtdb.europe-west1.firebasedatabase.app
while i was trying to connect my app to firebase realtime db ,the problem is i made the same steps that i used to create firebase database but it wont work ,i change the the database location many times but it wont work.
i don't know what to do ,i checked the packages and all but still says the same message if you have any idea please help.
Go to your Firebase Console, next to Project Overview is "Settings" button -> choose Project settings from menu.
Scroll down to "SDK setup and configuration", and download your google-services.json file again.
There should be "firebase_url" position now under "project_info".
If you still get an error, run:
flutter clean
flutter pub get