tns run command refreshes both platforms
See original GitHub issueDid 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:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Plamen5kov I didn’t know that and didn’t see it in the documentation. I will try it. Thanks
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.