question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tns run command refreshes both platforms

See original GitHub issue

Did you verify this is a real problem by searching the [NativeScript Forum]

Yes

Tell us about the problem

I usually work on both iOS and Android devices. Both devices work at the same time. If I run tns run android command without making any changes to the code, iOS app is also refreshed. Opposite of this is also true.

Which platform(s) does your issue occur on?

Both

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

  • CLI: 3.4.0
  • Runtime(s): 3.4.1 for both platforms

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

Start an iOS or an Android device/simulator. While it is working, open another terminal and run tns run for other platform. Other one is also refreshed without any code change.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
erkanarslancommented, Feb 13, 2018

@Plamen5kov I didn’t know that and didn’t see it in the documentation. I will try it. Thanks

1reaction
Plamen5kovcommented, Feb 13, 2018

Hi @erkanarslan, If you want to develop for ios and android at the same time I’d suggest using the tns run command. This command should start the application on both the ios simulator and an android emulator. Keep in mind that the command won’t start the emulator/simulator for you, they need to be already running. This is an alternative and the recommended way to develop for both platforms at the same time instead of running two separate commands on two terminals.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tns run android - NativeScript Docs
Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application. When running this command without ...
Read more >
My gradlew.bat keeps failing on tns build android
1 Answer 1 · From the project root, run ./node_modules/.bin/update-ns-webpack --deps --configs to regenerate a 'clean' webpack configuration.
Read more >
tns-platform-declarations
This plugin contains type information about the native platforms as exposed by the NativeScript framework. Offically supported entry points:.
Read more >
Cross-Platform Native Apps With A Single Code Set Using ...
Instead of two developers developing for two platforms, ... From the terminal or command prompt, execute the following command: tns create ...
Read more >
Use the Oracle Database refreshable clone feature—Part ...
If it's not available in the same platform or version, ... -Execute the following Transparent Network Substrate (TNS)commands:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found