Skip to content

Livesync won't work if appId doesn't match - no warning/error #2825

@ryanlangton

Description

@ryanlangton

Did you verify this is a real problem by searching [Stack Overflow]

Yes

Tell us about the problem

If the nativescript ID in package.json does not match the applicationId in app.gradle, the application will launch and run normally, but will only refresh code changes by deleting the /platforms folder. Please at a minimum provide a warning to the developer with steps to fix, or prevent the app from launching.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.0.1
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): 3.0.0
  • Plugin(s): 3.0.0

Please tell us how to recreate the issue in as much detail as possible.

Change the application Id in /App_Resources/android/app.gradle

android {
defaultConfig {
generatedDensities = []
applicationId = "{{appID1}}"

Change the application Id in package.json to something different.

"nativescript": {
"id": "{{appID2}}",

Launch the app using tns run android.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

See above

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions