Introduction

Technology area
iSync
Companion guide

The JavaScript classes, properties, and methods described in this document are used by iSync application and iSync Plug-in Maker developer tool to communicate with devices. iSync allows you to sync your devices with your data on the computer, and iSync Plug-in Maker allows you to build, test, and release iSync device plug-ins. When developing an iSync plug-in, you might need to write some device-specific JavaScript functions to open and close connections to your device. You use the JavaScript API described in this document to write these functions.

For example, below is a typical JavaScript function used by plug-ins to send custom AT commands to a device before iSync establishes the SyncML connection.

Note: The Open Mobile Alliance (OMA) Data Synchronization Working Group is developing specifications for data synchronization that includes SyncML technology. This book refers to the data synchronization technology as SyncML.

function prepareChannelForProtocol()
{
    channel.startAT();
    application.log("Sending AT+CPROT=0");
    // we need to send AT+CPROT=0 to the phone to activate SyncML
    channel.sendATCommand("AT+CPROT=0")
    channel.stopAT();
}

Read Editing Plug-ins in iSync Plug-in Maker User Guide to learn more about where JavaScript functions might be needed.

The iSync JavaScript API is available in iSync 2.3 and later.



© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-01-09)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.