i have a flutter app that has firebase and firestore as backend,
it works fine on the emulator when i changed it into apk, but on the real device on the log in page the loading circle get stuck and the app wont proceed the log in procedure.
i don't why does this happen? it works fine as normal flutter on the device but when its apk it only works on emulator.
here is the pic of the laading being stuck
the pic of the mobile
Did you put the internet permission in your androidManifest.xml?
<uses-permission android:name="android.permission.INTERNET" />
The permission is on by default in a debug build, but not in a release build
go to your flutter project and go /android/app/src/main and open AndroidManifest.xml and add this line under the package tag
<uses-permission android:name="android.permission.INTERNET" />
Related
When building an .apk of my flutter app and installing on my android device the data created is only locally saved not saved online. When using in the android emulator it works perfectly with no errors, even when switching the signing configs to use debug.
There are no firebase rules set, everyone can read and write. There is no fingerprint/sha1 hash set. All android settings have stayed the same since the build version has worked on android correctly.
If there is anything code etc. i can give please ask, not sure what is helpful here as all settings were the same when it was working.
You have not granted internet permission to access the application
Open the AndroidManifest.xml file located at ./android/app/src/main and add the following line:
<manifest xmlns:android="...">
<uses-permission android:name="android.permission.INTERNET"/> <!-- Add this -->
</manifest>
Refer here
I am new to flutter, I am creating a flutter app where I am using different APIs(Third-party APIs).
While running the app on the emulator, It's working perfectly fine but when I generate the APK for it and install it on my phone, it's not working.
All the design and layouts come perfectly fine but when I am about to hit login API, Nothing works.
Thanks in advance.
For release build, you have to add internet permission in AndroidManifest.xml file that is located in my_flutter_project/android/app/src/main/.
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name="io.flutter.app.FlutterApplication"
...
I have an app that I build using Ionic. The app work when i directly
install the sign and zip APK to any device. These device include the
Android 9 simulator, an Android 9 device and also an Android 6 device
.
But the app failed to connect to my database/api after I upload it to
Play Store. It always stuck when it is in the login authentication
splash screen.
Strangely, it only affect android 9, and not in android 6 (my current
phone) device but when I gave the user the signed and zip APK directly
to my colleague Android 9, the app works perfectly fine. My target user are
all outside my country that I'm from and it is not a very proper way
to just past along the APK to them.
I'm also facing the same problem, I come out from this problem following way
Go to AndroidManifest.xml in the platforms->android->app->src->main and add follwoing code in the application selector.
android:usesCleartextTraffic="true"
the final resultant selector will be
<application android:hardwareAccelerated="true" android:icon="#mipmap/ic_launcher" android:label="#string/app_name" android:supportsRtl="true" android:usesCleartextTraffic="true">
and make you have the correct access to Internet
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Hope it will solve your problem !!
I built a game in Unity and I'm trying to export to to Android. I've set the min API in Android player settings to 14. I've confirmed with the AndroidManifest.xml file in both temp/staging and assets/plugins/android that it reflects this. It shows:
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="17" />
I then exported directly into an APK file right from unity (not through eclipse). I uploaded the APK to the google play store in beta mode. However, when I look at the app screen on the play store I see: Requires Android: 1.6 and up. Why is it doing this?
I'm thinking there might be a problem with the Manifest file but I'm not sure. For example, I'm using AdMob so I have these permissions in the file:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
But when I install the app through the beta link it tells me that no extra permissions are necessary. AdMob is working though, I can see the banner ads and the impressions are showing up on my AdMob account. I'm not sure if the no permissions needed thing is related to a bad manifest file or a beta store account. EDIT: Actually if I install the APK manually then it does show the permissions, so I'm guessing it's just a beta thing and my permissions are fine.
To test, I've tried exporting the file as an Android Project, then importing into Eclipse. When I try to do that, it successfully recognizes the project but even though the Finish button isn't greyed out it doesn't do anything...
Decompile your APK file to read AndroidManifest.xml.
Look at this: How to parse the AndroidManifest.xml file inside an .apk package
Apparently this is a known bug, and it doesn't seem to affect published apps, so don't worry about it:
https://gamedev.stackexchange.com/questions/67234/why-does-my-game-display-the-wrong-required-android-version-on-google-play
I'm currently developing an application using PhoneGap in Eclipse. One of the features of the app is that it connects to a remote server through the network. In eclipse, when I run the project as an 'Android Application' directly on the device, everything works perfectly and the device successfully connects to the remote server. This I guess is the 'Debug' build that eclipse offers.
I then go on to create an APK file for the project through PhoneGap's site... I install the APK on the device and when I try to connect, it does not work. The app just hangs when I click on the connect button and does nothing.
I check the debug build and everything works again like a charm. Can someone please tell me what I'm missing ? Do I need to sign the APK file that I'm creating on the PhoneGap site ? Any help would be much appreciated.
Thanks in advance
Maybe you can put
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.package">
<uses-permission android:name="android.permission.INTERNET"/>
<application>
...
</application>
</manifest>