Skip to content

Fresh app works anywhere, except on Redmi devices! #404

Open
@enchev

Description

@enchev

From @calebeaires on March 25, 2016 14:50

Fresh Nativescript app (with no modification) stop working on Xiaomi Redimi 2 Prime smartphones. I have tested the same app on Sansung, Nexus, Genymotion and Android emulator. Everting goes well, except on Redimi 2. Here are the reporting log:

W/dalvikvm(24260):              in Lcom/tns/Platform;.callJSMethodNative:(ILjava/lang/String;IZ[Ljava/lang/Object;)Ljava/lang/Object; (CallVoidMethodA)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethodNative(Native Method)
I/dalvikvm(24260):   at com.tns.Platform.dispatchCallJSMethodNative(Platform.java:816)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethod(Platform.java:715)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethod(Platform.java:694)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethod(Platform.java:684)
W/ErrorReport(  950): org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
W/ErrorReport(  950):   at org.json.JSON.typeMismatch(JSON.java:111)
W/ErrorReport(  950):   at org.json.JSONObject.<init>(JSONObject.java:159)
W/ErrorReport(  950):   at org.json.JSONObject.<init>(JSONObject.java:172)

Redimi 2: Android 4.4
NativesScript 1.7.1

Copied from original issue: NativeScript/NativeScript#1851

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions