You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 extension code inside App_Resources/iOS and the tooling to integrate them build time inside the iOS app.
Describe alternatives you've considered
No alternatives.
Add a name to your watch app, for example MyFirstWatchApp
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.
Inside the Info.plist of the Watch App replace the value of WKCompanionAppBundleIdentifier with $(WK_APP_BUNDLE_IDENTIFIER).
6 Inside the Info.plist of the Watch Extension replace the value of WKAppBundleIdentifier with $(WK_APP_BUNDLE_IDENTIFIER).
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:
{
"assetcatalogCompilerAppiconName": "AppIcon"
}
You can modify the WATCHOS_DEPLOYMENT_TARGET of the Watch App by adding the value inside the watchapp.json like this:
KristianDD
changed the title
Research and implement embedding Apple Watch App inside NativeScript App.
[Beta] Research and implement embedding Apple Watch App inside NativeScript App.
May 15, 2019
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 extension code inside
App_Resources/iOS
and the tooling to integrate them build time inside the iOS app.Describe alternatives you've considered
No alternatives.
Additional context
None.
Workflow:
MyFirstWatchApp
MyFirstWatchApp Extension
to.../apps/MyApp/app/App_Resources/iOS/watchapp/MyFirstWatchApp
and.../apps/MyApp/app/App_Resources/iOS/watchextension/MyFirstWatchApp Extension
respectively.Info.plist
of the Watch App replace the value ofWKCompanionAppBundleIdentifier
with$(WK_APP_BUNDLE_IDENTIFIER)
.6 Inside the
Info.plist
of the Watch Extension replace the value ofWKAppBundleIdentifier
with$(WK_APP_BUNDLE_IDENTIFIER)
.Assets.xcassets
of the Watch App and the Watch Extension and add the name of theappiconset
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:WATCHOS_DEPLOYMENT_TARGET
of the Watch App by adding the value inside thewatchapp.json
like this:The text was updated successfully, but these errors were encountered: