Azure database and unity

SANCHEZ KEVIN FABIAN 11 Reputation points
2022-11-15T07:15:40.437+00:00

Hello, I have a problem with the azure database and Unity, the problem is that, when doing the code to connect and the data modification, within unity and the simulation, everything works, but when generating the apk ( is for android) and run it on the cell phone, it does not connect to the database.

I was looking for information everywhere, asking in various forums, but nobody answers me anything. Also, the azure stuff I found or the posts I found, are old and no longer useful, for example: https://github.com/Unity3dAzure/AppServices/blob/master/README.md

This is already 5 years old, there are things that no longer work.

Is it possible to connect Azure database with Unity for android?

Azure SQL Database
Community Center Not monitored
{count} votes

2 answers

Sort by: Most helpful
  1. SANCHEZ KEVIN FABIAN 11 Reputation points
    2022-11-15T23:13:58.303+00:00

    I was able to solve the problem. I recommend that if you are trying to do this on android, watch this video and see the exception you are getting: https://www.youtube.com/watch?v=55rkbsjhA3U

    If the error is the same as mine:

    NotSupportedException: Encoding 1252 data could not be found. Make sure you have correct international codeset assembly installed and enabled.

    They should go to:

    Unity\Hub\Editor(UnityVersion)\Editor\Data\MonoBleedingEdge\lib\mono\unityjit-win32

    Once there, they must copy the files "I18N.dll" and "I18N.West.dll" and copy them inside the Assets folder, inside your application project, done this, the problem should be solved.

    Luck!

    2 people found this answer helpful.

  2. AB_Casual_Learner 6 Reputation points
    2022-11-21T20:12:43.527+00:00

    Thanks for figuring this out! I had been having a similar issue. I was using unitywebrequest to get an excel file from google.drive and stream the downloadhandler.data bytes to eppplus. After many frustrating builds, both webgl and desktop, I found your post here. A few minutes later and everything worked great!

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.