Skip to content

Serious issue of inconsistent content by deploying apk #2918

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

Closed
ryc16 opened this issue Oct 18, 2016 · 3 comments
Closed

Serious issue of inconsistent content by deploying apk #2918

ryc16 opened this issue Oct 18, 2016 · 3 comments

Comments

@ryc16
Copy link

ryc16 commented Oct 18, 2016

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:

>tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬───────────────┐
│ Component        │ Current version │ Latest version │ Information   │
│ nativescript     │ 2.3.0           │ 2.3.0          │ Up to date    │
│ tns-core-modules │ 2.3.0           │ 2.3.0          │ Up to date    │
│ tns-android      │ 2.3.0           │ 2.3.0          │ Up to date    │
│ tns-ios          │                 │ 2.3.0          │ Not installed │
└──────────────────┴─────────────────┴────────────────┴───────────────┘
@ryc16 ryc16 changed the title Serious issue of deploying apk got inconsistent content. Serious issue of inconsistent content by deploying apk Oct 18, 2016
@ryc16
Copy link
Author

ryc16 commented Oct 18, 2016

In order to get the content up to date, I have to plug my device to my computer and use tns command.

tns livesync android --watch

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?

@NickIliev
Copy link
Contributor

This issue was moved to NativeScript/android#591

@lock
Copy link

lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants