Title: [Beta] Research and implement embedding Apple Watch App inside NativeScript App. · Issue #4541 · NativeScript/nativescript-cli · GitHub
Open Graph Title: [Beta] Research and implement embedding Apple Watch App inside NativeScript App. · Issue #4541 · NativeScript/nativescript-cli
X Title: [Beta] Research and implement embedding Apple Watch App inside NativeScript App. · Issue #4541 · NativeScript/nativescript-cli
Description: Is your feature request related to a problem? Please describe. Currently there is no way to include an Apple Watch App in your NativeScript application. Describe the solution you'd like I'd like to add the watch app and watch app extensi...
Open Graph Description: Is your feature request related to a problem? Please describe. Currently there is no way to include an Apple Watch App in your NativeScript application. Describe the solution you'd like I'd like to...
X Description: Is your feature request related to a problem? Please describe. Currently there is no way to include an Apple Watch App in your NativeScript application. Describe the solution you'd like I'd...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/4541
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Beta] Research and implement embedding Apple Watch App inside NativeScript App.","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nCurrently there is no way to include an Apple Watch App in your NativeScript application.\r\n\r\n**Describe the solution you'd like**\r\nI'd like to add the watch app and watch app extension code inside `App_Resources/iOS` and the tooling to integrate them build time inside the iOS app.\r\n\r\n**Describe alternatives you've considered**\r\nNo alternatives.\r\n\r\n**Additional context**\r\nNone.\r\n\r\nWorkflow:\r\n1. Create Single Page App from Xcode.\r\n2. Add watch app target - File>New>Target>WatchKit App\r\n3. Add a name to your watch app, for example `MyFirstWatchApp`\r\n4. Copy the generated \"MyFirstWatchApp\" and `MyFirstWatchApp Extension` to `.../apps/MyApp/app/App_Resources/iOS/watchapp/MyFirstWatchApp` and `.../apps/MyApp/app/App_Resources/iOS/watchextension/MyFirstWatchApp Extension` respectively.\r\n5. Inside the `Info.plist` of the Watch App replace the value of `WKCompanionAppBundleIdentifier` with `$(WK_APP_BUNDLE_IDENTIFIER)`.\r\n6 Inside the `Info.plist` of the Watch Extension replace the value of `WKAppBundleIdentifier` with `$(WK_APP_BUNDLE_IDENTIFIER)`.\r\n7. You can populate the `Assets.xcassets` of the Watch App and the Watch Extension and add the name of the `appiconset` to the `.../apps/MyApp/app/App_Resources/iOS/watchapp/MyFirstWatchApp/watchapp.json` and `.../apps/MyApp/app/App_Resources/iOS/watchextension/MyFirstWatchApp Extension/extension.json` respectively:\r\n```json\r\n{\r\n \"assetcatalogCompilerAppiconName\": \"AppIcon\"\r\n}\r\n```\r\n8. You can modify the `WATCHOS_DEPLOYMENT_TARGET` of the Watch App by adding the value inside the `watchapp.json` like this:\r\n```json\r\n{\r\n \"assetcatalogCompilerAppiconName\": \"AppIcon\",\r\n \"targetBuildConfigurationProperties\": {\r\n \"WATCHOS_DEPLOYMENT_TARGET\": 4.1\r\n }\r\n}\r\n```\r\n9. Run the NativeScript application","author":{"url":"https://github.com/KristianDD","@type":"Person","name":"KristianDD"},"datePublished":"2019-04-16T09:52:15Z","url":"https://github.com/NativeScript/nativescript-cli/issues/4541"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e481523f-043a-8d90-4a18-94fceae07808 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96CA:38C5CF:234BF05:2CCC90D:6B016450 |
| html-safe-nonce | de1f6dd358ccd6cc53033ac78903c4a58ecaf1b342f7adb0aa10527921812f22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkNBOjM4QzVDRjoyMzRCRjA1OjJDQ0M5MEQ6NkIwMTY0NTAiLCJ2aXNpdG9yX2lkIjoiMjEyMjAzMDg4NzYyMDE0MjE2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf8189f4692976e55f1d7af235e77b90bb6978bce7255334eb606d974ccc71bd |
| hovercard-subject-tag | issue:433686622 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/4541/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1791742fd51ce0378546915069152886df67155b9d48ffbe186e40480d1f32e1/NativeScript/nativescript-cli/issues/4541 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1791742fd51ce0378546915069152886df67155b9d48ffbe186e40480d1f32e1/NativeScript/nativescript-cli/issues/4541 |
| og:image:alt | Is your feature request related to a problem? Please describe. Currently there is no way to include an Apple Watch App in your NativeScript application. Describe the solution you'd like I'd like to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KristianDD |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width