@capgo/capacitor-watch 8.1.8 → 8.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# @capgo/capacitor-watch
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Talk to a companion watch app from your Capacitor app: send messages, sync state and receive replies, with Apple Watch on iOS and Wear OS on Android.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_watch"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-watch" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_watch">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_watch">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-watch/main/assets/github-social-preview.png" alt="@capgo/capacitor-watch for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Messages**: `sendMessage()` for interactive messages and `replyToMessage()` to answer the watch.
|
|
21
|
+
- **Shared state**: `updateApplicationContext()` syncs the latest state to the watch.
|
|
22
|
+
- **Background transfer**: `transferUserInfo()` queues data for delivery.
|
|
23
|
+
- **Events**: message, application context and user info listeners, plus reachability and activation listeners on iOS.
|
|
24
|
+
- **Status**: `getInfo()` reports pairing, reachability and support.
|
|
25
|
+
- **Platforms**: iOS and Android. iOS uses WatchConnectivity with the CapgoWatchSDK watch app. Android uses the Wear OS Data Layer. Not available on web.
|
|
10
26
|
|
|
11
27
|
## Why Capacitor Watch?
|
|
12
28
|
|
|
@@ -6,7 +6,7 @@ import WatchConnectivity
|
|
|
6
6
|
/// here: https://capacitorjs.com/docs/plugins/ios
|
|
7
7
|
@objc(CapgoWatchPlugin)
|
|
8
8
|
public class CapgoWatchPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
9
|
-
private let pluginVersion: String = "8.1.
|
|
9
|
+
private let pluginVersion: String = "8.1.10"
|
|
10
10
|
public let identifier = "CapgoWatchPlugin"
|
|
11
11
|
public let jsName = "CapgoWatch"
|
|
12
12
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED