capacitor-watch-sync
v8.0.0
Published
Sync data from Capacitor app to Apple Watch app
Readme
capacitor-watch-sync
Sync data from Capacitor app to Apple Watch app
Install
npm install capacitor-watch-sync
npx cap syncAPI
pushDataToWatch(...)
pushDataToWatch(data: object) => Promise<void>| Param | Type |
| ---------- | ------------------- |
| data | object |
checkWatchStatus()
checkWatchStatus() => Promise<WatchStatus>Returns: Promise<WatchStatus>
openWatchApp()
openWatchApp() => Promise<void>Open the Apple Watch app on iOS, so user can install our watch app.
Interfaces
WatchStatus
| Prop | Type | Description |
| ------------------------- | -------------------- | -------------------------------------------- |
| isSupported | boolean | if iPhone supports Apple Watch |
| isPaired | boolean | if iPhone is paired with Apple Watch |
| isWatchAppInstalled | boolean | if our watch app is installed on Apple Watch |
