-
-
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
Serious issue of inconsistent content by deploying apk #591
Comments
From @ryc16 on October 18, 2016 11:5 In order to get the content up to date, I have to plug my device to my computer and use tns command.
Afterwards, everything works as expect. Again, I am worry what would be happend if app is in production and install from ie google play store. Would this happen? |
Hi @ryc16, |
@Plamen5kov, this doesn't happen all the time. I just wonder how does the android deployment works. Where does the content running at? For example, running at /data/data//files or it actually running on different location? When apk got deployed, does the process delete all files (including cache files if exist)? Would it possible some files is being locked on the file system? |
@ryc16 when
and then unpacked inside the folder you mentioned
When the app is uninstalled all these directories are deleted, so I can think of no way for the same app to have different behavior. I can suggest using the Adb command is:
|
@Plamen5kov, I could try when it happen again (I didn't uninstall from device app manager which I think the same so not sure if adb -r helps). Is adb -r is the regular deployment process or handle by tns android cli? If your suggestion is just for troubleshooting, then it is ok otherwise this wouldn't be production solution. So there is no cache mechanism of running content, right? What about the javascript layer? Hope other people could replicate this problem. |
@ryc16, yes the CLI uses
I can't tell you if android has a cache mechanism, I haven't looked into it.
I can't reproduce the issues at hand, so it's a suggestion to help you isolate the problem. If we manage to do that, we can figure it out. |
I've seen this issue too... very strange! I updated an XML file to fix a spelling issue, tested it on a real Nexus 7 device worked fine. Uploaded the debug apk to a server and downloaded it to a real Motorola G and the old UI was still there! |
Now more people are able to catch this strange problem. This kind of problem is very scary if it is on production. We don't know if user really running/showing the latest content. |
Hi @ryc16, |
Hi @Plamen5kov, understood. it is not consistent to me so not sure how to let you reproduce the problem. |
@ryc16 did you mange to isolate the issue, or find a way for us to reproduce it? |
I'm closing this issue, because there's no response, but feel free to reopen it again, if you find a way to reproduce it. |
Hey, I am also facing the same issue. It's very frustrating. In my scenario, I added few images on app resources and when I tried to run the app. It shows me the previous content. |
I am using NativeSctipt 2.5 |
I got the issue. The issue was I changed the NativeSctipt id but had not changed in app.gradle therefore it was giving me this kind issue. For more information you can refer NativeScript/nativescript-cli#2092 |
Hi @mayureshjadhav, |
Will close this issue because there's no steps to reproduce and lack of interest. Feel free to reopen if someone can provide steps to reproduce. |
This comment was marked as abuse.
This comment was marked as abuse.
@NathanaelA thanks for describing the process in details. It just came to my attention that we face the problem internally too. I can finally confirm that this is indeed an issue with temp directory not being erased on certain devices, despite permissions being granted. I would also like to add that the bug does not affect packages built in release, so publishing and updating applications should be safe. |
Addressed with changes in PR #743 as well as some modifications inside the CLI version 3.0.0 |
@Pip3r4o how do we go about getting this update? Since I couldn't quite figure it out, this was a temporary workaround for me. to get the directory name, you can find it by running this
Then, I did
|
@cjdreiss 3.0.0 will be officially released next week. Using the |
+1 Reported via t.1119637 with |
@NickIliev the changes released earlier this year unfortunately do not fix the problem occurring on Samsung devices. |
I can confirm this still happens with 3.3.1
This problem doesn't seem to affect release builds ( |
what is the solution plz |
From @ryc16 on October 18, 2016 9:28
Tell us about the problem
I recently started to build a debug apk for easy of deploying various devices for testing (which also similar production deployment) but I encountered very strange behavior. Apk got deployed but content sometimes show updated and sometimes not. Also same apk deploy to 2 devices but one shows correctly but another devices shown incorrectly. This could be easy to tell looking at UI already. The problem happen randomly so very painful. I wish more people try this way and see if more people got the same problem.
Steps:
#1. build apk by "tns build android".
#2. copy the xxx_debug.apk from platforms\android\build\outputs\apk to my share place.
#3. I installed the apk to 2 devices. note: both devices had early version installed.
From app info, both devices got the same, in term of content, they look different see the attachment for 2 devices.
Device1: content not updated look like old UI.
hw.zip
Device2: content did updated show correctly
note2.zip
On device 1, Also try clean cache, clean data on the device, uninstall package from device package manager, then install apk from my share place. Still had same problem - correct app version but incorrect content.
Any idea? How can I further troubleshoot? How could I know what content I am running on?
I am a bit worry what happen if this is on production environment, Would user will face this problem? If so, user wouldn't know about it. So this is very critical issue.
Which platform(s) does your issue occur on?
Only tried on Android not IOS
Please provide the following version numbers that your issue occurs with:
Copied from original issue: NativeScript/NativeScript#2918
The text was updated successfully, but these errors were encountered: