WCSession

If your watch app already has a WCSessionDelegate, then call the APLSessionDidReceiveMessage() method as follows to allow Appfigurate library to receive configuration data from the Appfigurate app on the paired iPhone.

Example

- (void) session: (WCSession*) session didReceiveMessage: (NSDictionary<NSString*,id>*) message
    replyHandler: (void (^)(NSDictionary<NSString*,id>*)) replyHandler {
    NSDictionary* reply = APLSessionDidReceiveMessage(message);
    if (reply != nil) {
        replyHandler(reply);
    } else {
        ...

If your watch app does not use WCSessionDelegate then a default implementation is provided.

Last updated