ancs
A node.js lib to access the Apple Notification Center Service (ANCS)
Install
npm install ancs
Prerequisites
- iOS 7 device with an app in peripheral mode which exposes ANCS
- your iOS device will ask to be paired with your Mac
Usage
var ANCS = ;
Discover
ANCS;
Connect
ancs;
Disconnect
ancs;
Notification Event
ancs;
- notification has the following properties
- event (one of):
- added
- modified
- removed
- flags (array):
- silent
- important
- category (one of):
- other
- incomingCall
- missedCall
- voicemail
- schedule
- other
- news
- healthAndFitness
- businessAndFinance
- location
- entertianment
- categoryCount
- uid
- event (one of):
Operations for 'added' or 'modified' notifications (event property)
Read App Identifier
notification;
Read Title
notification;
Read Subtitle
notification;
Read Message
notification;
Read Date
notification;
Read All Attributes
notification;
- attributes has the following properties
- appIdentifier
- title
- subtitle
- message
- date