Problem on Android export with insert #4

Closed
dgkanatsios opened this Issue Aug 18, 2016 · 5 comments

Projects

None yet

2 participants

@dgkanatsios
Owner

Android seems to have an issue with the PATCH Http verb, which is necessary for Easy Tables' Update. Investigating

source: http://answers.unity3d.com/questions/1230067/trying-to-use-patch-on-a-unitywebrequest-on-androi.html

@dgkanatsios
Owner

Unity has acknowledged that this is a bug, waiting for a hotfix

@dgkanatsios
Owner

Unity has responded that this is by design, due to Android http client implementation that forbids PATCH.

http://androidxref.com/6.0.1_r10/xref/libcore/luni/src/main/java/java/net/HttpURLConnection.java#273

http://androidxref.com/6.0.1_r10/xref/libcore/luni/src/main/java/java/net/HttpURLConnection.java#680

Investigating potential other workarounds (apart from doing an Easy API call on Android just for Updates)

@deadlyfingers

This is how the Mobile Services SDK for Android handles PATCH - wonder if Unity could do the same workaround for UnityWebRequest...?
HttpPatch class

@dgkanatsios
Owner

The Mobile Services team opted to use the Apache HttpClient for Android instead of the native Android Http client, probably for this very reason. Unity could potentially use that, but I think that this would require some refactoring on their side.

@deadlyfingers deadlyfingers referenced this issue in Unity3dAzure/AppServicesDemo Nov 22, 2016
Closed

Unity Web Request and Json Utility #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment