I'm trying to override the sleepWithCompletionHandler function on my PacketTunnelProvider, but it seems like the event is never raised.
My implementation is very simple,
- (void) sleepWithCompletionHandler:(void (^)(void))completionHandler {
NSLog(@"Now sleeping...");
completionHandler();
}
However I can never get that NSLog to output in the device log. I'd imagine that this function would be called when the device is locked, but it never seems to.
What am I missing here?