Thanks to visit codestin.com
Credit goes to github.com

Skip to content

timothyjasonwilliams/cordova-plugin-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Watch Plugin

##Description Currently a WIP both in code and documentation

##Usage

Sends a dictionary of values that a paired device can use to synchronize its state.

Use this method to communicate recent state information to the counterpart. When the counterpart wakes, it can use this information to update its own state. Sending a new dictionary with this method overwrites the previous dictionary.

Example:

context =
  info: "Something"
  date: new Date
window.watch.updateApplicationContext context, success, error

Sends a message immediately to the paired device and optionally handles a response.

Use this method to transfer data to a reachable counterpart. These methods are intended for immediate communication between your iOS app and WatchKit extension.

Example:

message =
  info: "Something"
  date: new Date
window.watch.sendMessage message, success, error

About

A plugin to communicate between the cordova and apple watch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published