Skip to content

Serious issue of inconsistent content by deploying apk #2918

Closed

Description

@ryc16

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 │
└──────────────────┴─────────────────┴────────────────┴───────────────┘

Activity

  1. changed the title [-]Serious issue of deploying apk got inconsistent content.[/-] [+]Serious issue of inconsistent content by deploying apk[/+] on Oct 18, 2016
  2. ryc16 commented on Oct 18, 2016

    @ryc16
    Author

    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?

  3. NickIliev commented on Oct 19, 2016

    @NickIliev
    Contributor

    This issue was moved to NativeScript/android#591

  4. lock commented on Aug 29, 2019

    @lock

    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.

  5. locked and limited conversation to collaborators on Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions