Xamarin App SQL Server Connection not working in release mode - android

I have a C# Android app that connect to a SQL Server database. I noticed that if I build in Release mode, the connection to the database is not working. But if I build in Debug mode, it works fine. What could be causing this?
I already set the user permission
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
And this is my settings
And this is my Sql Server connection

I solve the issue by setting up the
Linkers properties to
SDK ASSSEMBLIES ONLY
and
Additional support encodings to MIDEAST,WEST

Related

No internet connection - Android Firebase Flutter RTD

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

Debug release apk using chrome dev tools

My app connects to the internet in development, however, the apk uploaded to the play store does not pull down data from the api.
How can I debug the release apk using chrome dev tools?
I have the following permissions in my AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
If debug the API response, you do it by setting up the proxy, for that you can use the Charles proxy .
guide https://www.charlesproxy.com/documentation/using-charles/

Android application using phone gap

I successfully completed my application in android and is running in real device and simulator .My app requires internet access hence given access in manifest.xml file.
The code is like this:
uses-permission android:name="android.permission.INTERNET" />
uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Now the problem is my app is running only when the wifi is ON but not running through the internet connection in mobile. I have to run the application with out wifi in my device.
I am using Apache 2.2.0 version. okay, no problem my issue is solved I added code lane super.setIntegerProperty("loadUrlTimeoutValue", 100000); and now it's running.

AIR Android application remote debugging

I have my AIR application created in Flash Builder 4.6, and trying to debug it on the device via USB. Application gets deployed properly, but doesn't connect to the internet. I have permissions set properly to
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
When I export release build and deploy it on the same device, it gets connected to internet without any issues.
Any ideas how to fix it?

Cannot access the internet while i debug android on device

I'm trying to develop an android application that uses network connection. The server is up and running, but when i am trying to access it from the device that runs the android app (in debug mode-using eclipse) it outputs a message that 'cannot find the server' after a UnknownHostException occurs!
I have tested the server with a java application and it works fine! What is the problem then with the device?
check your Mainfest.xml file for this line...
<uses-permission android:name="android.permission.INTERNET" />

Categories

Resources