Return back from host app to same chat

Hi!


Is there a way to return back from host app to same chat in messages? The default way is to call openUrl("sms:"), but this starts a new chat.

The desired scenario is

1) From some chat in Messages app open my imessage extension

2) My imessage extension launches my host application

3) Host application generates some media file to be sent in chat from the first step and switches back to Messages application.

4) All that's' left for the user is to press send button.


There is a back button in the status bar with exact functionality I want but as I understand there is no way to call it programmatically.

And it is too small to depend on the user to call it by hand.


Thanks in advance.

Replies

I don't think that is possible. You probably need to generate your media files within the extension.

Tim9909 is correct, there's no way to do this currently. This would make for a good enhancement request bug report, please file one at bugreport.apple.com.


A better soluton, though, would be to factor the code that does this out into a shared framework that both your iMessage app and your parent app link against and just do the generation in the iMessage app.