NativeScript / NativeScript/nativescript-cli
refresh application on iOS simulator with notification
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit lib/iphone-simulator-xcode-simctl.ts beim im Issue verknüpften Benachrichtigungsmechanismus und verfolge anschließend, wie die CLI RefreshRequest und AppRefreshStarted für Geräte verarbeitet. Implementiere den entsprechenden Workflow für Simulatorantworten und verifiziere, dass die CLI eine laufende Anwendung von einer Anwendung unterscheiden kann, die neu gestartet werden muss.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, javascript
- Bereich
- cli, mobile-dev
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100