iMessage app open main app?

I am building an iMessage companion app, I would like to have a handoff to the main app to complete purchase/deeplink to see something after performing an action in the iMessage app, I'm trying to use `extensionContext?.openURL(_, completionHandler:)` but it doesn't open my main app. Is this something that's possible or is it just not an intended use of iMessage app to take you to the main app?

Answered by danielphillips in 162138022

I had my URL scheme incorrect. When I fixed that I got the answer to my question: `Extensions of type com.apple.message-payload-provider are not permitted to open URLs`

Accepted Answer

I had my URL scheme incorrect. When I fixed that I got the answer to my question: `Extensions of type com.apple.message-payload-provider are not permitted to open URLs`

So has beta 5 crippled this behaviour? Up until yesterday I could hand off to the containing app with


[self.extensionContext openURL:url completionHandler:nil];

and the containing app's but now the console is just printing:


[Default] openURL: failed: <private>


with no explanation. It still works fine in the Today widget.


Adding the app's scheme to the LSApplicationQueriesSchemes key in the message app's Info.plist file doesn't seem to help.


Without this it's looking like the message apps won't be able to be much more than glorified sticker apps.

I have only began working on this so I wasn't aware this was working. It seems that indeed beta 5 disabled this? Time to go through the release notes...

iMessage app open main app?
 
 
Q