-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh app works anywhere, except on Redmi devices! #404
Comments
In my opinion JSON.parse() is failing since some service/server returned HTML (most probably server error) instead expected JSON. |
From @calebeaires on March 25, 2016 15:11 Do you have some workaround to fix it? |
Any more info what components are used or how to replicate this behavior will be helpful. Do you get this error in some of our default modules? Or this is somewhere else in your app? |
From @calebeaires on March 28, 2016 14:57 This error get on a pure nativescript install.
This works on every device I have here (motorola, samsung, nexus), but when I run it on Redmi 2 Prime, from Xiaomi, the app stop working and it is closed. |
I guess it is not the case, but for notice Redmi uses android 64-bit version |
Some news about this issue!? |
Hi @calebeaires,
and you can paste send us the
As @enchev pointed out, this line:
points to the problem being related to |
Debug logcat and terminal logs |
Hi @calebeaires,
and send us the file |
Here is the file. I had to zip it, so I could send it from github |
@calebeaires, because the file contains no classes in it, can you list all files in the folder:
and paste the result here, so we can look for the size of each file there and find the right |
|
Has any progress ? |
Found an issue with this device. we need to investigate further why this is happening only on Redmi 2 devices. I created another issue #445 to track it's progress |
I guess it is related ti all devices that uses Miui Room, from Xiaomi @Plamen5kov, is there some file you want check up? |
@calebeaires can you try running the app with NativeScript 2.0 Their might be a problem with the installed Android ROM on the device, but we suspect that it might be a packaging problem during the build. Somehow you get a version of the app that has API metadata for 5.0 and newer. |
Even the Examples NativeScript (from Play Store) stop working sometimes, but it is more stable than a dev nativescript app. I sent the report from it by Android FeedBack ANR and here is one of my apps ANR reports by some user. (This fail occurs on NativeScript 2.0 too!)
Xiaomi is getting massively populated on Brazil since it has open an office here. |
I tried to run an app I have made on past, using nativescript 1.7.1. App is installed and running. Is there some other information I can give you to help find the solution to this problem? |
Hi @calebeaires
|
Hi. @Plamen5kov
Do you need some file from /system/framework to take a look at this problem! |
@calebeaires can you send me both
|
I had the same issues on Redmi 2 Pro. Here are the files: |
I've looked through the framework jars and I believe there are no different than the common ones for the specific android api level, so the problem might be somewhere else. Could you try running the following NativeScript application using a newly installed cli ^2.0.1, on both redmi and other devices, so we can spot if there is difference in behavior. How to install new cli:
After you've installed the new cli run
I hope you get back to me with the results. |
@calebeaires we haven't heard from you in a while, so we're closing this issue. Feel free to reopen it. |
I had the same problem on my Xiaomi mi5 device and I found that it has to do with the MIUI permissions.
|
@igorpetrov it should be fixed #628 |
Client reported this issue again with XIaomi Redmi 1 device and with NativeScript 2.5.0, |
dump for bundle instance from ^^*
|
Same problem here with Redmi 1s devices. Hey @NickIliev did you get the solution? I'm running on nativescript 3.0.3 |
@hamzahppa it would be very helpful if you could provide steps to reproduce the problem and describe what device were you using when the problem occurred. |
@Plamen5kov sure Nativescript version : 3.0.3 DescriptionHi, this issue happens only on my device Redmi 1S (HM 1S) Kitkat 4.4.4 KTU84P with MIUI version MIUI Global 8.2.1.0 (KHCMIDL). Step to reproduce
|
We don't have redmi devices, and it's hard to reproduce the problem without one, but we'll try and fix it as soon as possible. |
@shmox, that's a great idea. Please provide us with a link of instructions of some sort and I'll be sure to try and reproduce the problem. |
Hey @shmox @Plamen5kov I think the problem is not in the MIUI ROM version but the problem is in the android version. I find the problem only happened on MIUI ROM that use kitkat 4.4.4 as the android os version. FYI, MIUI has its own versioning with different android OS, for example, you can find the exact same version of MIUI 8 in different devices but when you check the android version, you will find that they have different version like Kitkat and Lolipop Why? Because finally I can run my nativescript app without problem after I buy a new Xiaomi device that run on Android 6.0.1 but still have the same MIUI version 8 |
@hamzahppa thanks for the detailed information, now we have something to go on. We'll investigate further as soon as possible. |
OS: Android 4.4.4 (MIUI 7) App: Examples NativeScript App: NativeScript Playground App: NativeScript Preview EXCEPTION
LOGCAT
|
Update: Unfortunately, we won't be able to investigate this issue for some time, but if anyone decides to try and fix it, we'll try and help any volunteers. |
2016-2018 still can't run in miui phone android 4.4.x |
2016-2019 still can't run in miui phone android 4.4.4 (redmi 2) |
This was never a trivial fix. Perhaps it's time to close the issue and get a more modern device with an OS from more recent years. |
Well, got quite number of user on my country still use that device. It become serious issue now on our production apps |
It's hard to find xiaomi emu, especially on Macos. |
I have the same problem with miui 10.3 4 |
Same issue with miui 10.2.1, please anyone provide any solution. |
Which version of android are you running ? |
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:
Redimi 2: Android 4.4
NativesScript 1.7.1
Copied from original issue: NativeScript/NativeScript#1851
The text was updated successfully, but these errors were encountered: