iMessage Extension openURL doesn't work

Hello,


I have an app with an iMessage Extension.

I am using MSMessageLiveLayout available in iOS11 and trying to open a scheme to the main app when the user touch the card in the flow.


It doesn't work on simulator and device.


Here is my code :


NSString *urlString = [NSString stringWithFormat:@"myApp://open/element?identifier=%@", template.entityCode];
NSURL *url = [NSURL URLWithString:urlString];
           
[self.extensionContext openURL:url completionHandler:^(BOOL success) {
// CompletionHandler is never called
}];


My url is a valid url for my App.

The code is triggered and 'self.extensionContext' is not nil.


I am using xCode 9 GM.


Any idea ?


Thanks for help.

Replies

Does it work on iOS 10?

Hi Joe,

MSMessageLiveLayout is only available on iOS11.