NativeScript / NativeScript/nativescript-cli
refresh application on iOS simulator with notification
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
Currently CLI refreshes the application on iOS device as sending a RefreshRequest notification.
If the application is running on device, it posts back a AppRefreshStarted notification. This way CLI knows that the application can be refreshed and doesn't restart it.
If the application is not running on device, CLI doesn't receive AppRefreshStarted notification. CLI waits for this notification 5 seconds and if no response is received, it restarts the application.
The same workflow should be implemented for iOS simulator as well.
Currently we have a mechanism to post a notification to iOS simulator. The problem is that no response is posted back to the CLI.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/iphone-simulator-xcode-simctl.ts at the notification mechanism linked in the issue, then trace how the CLI handles RefreshRequest and AppRefreshStarted for devices. Implement the corresponding simulator response workflow and verify that the CLI can distinguish a running application from one that must be restarted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100