extensionContext openURL doesn't work since beta5

In beta4 we could do [extensionContext openURL] to open external links in safari. In beta5 is doesn't work anymore.


Anyone is having that issue?

Accepted Reply

The expected behavior is that the iMessage extension can only open URLs in their parent apps. If that's not something that works for you, please file bug reports with details of what you need.

Replies

One more bit. When the store view controller is dismissed you need to clean it up in the delegate method:


#pragma mark - SKStoreProductViewControllerDelegate
- (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController {
   
    [viewController dismissViewControllerAnimated:YES completion:nil];
    [viewController.view removeFromSuperview];
    [viewController removeFromParentViewController];
    [self requestPresentationStyle:MSMessagesAppPresentationStyleCompact];

}

This is getting ridiculous. At least three of the top apps are able to open URLs. Some even run full fledged ads you can click. What's going on, how are they able to do this?


Word Swipe (Ads for other games in main menu): https://itunes.apple.com/fr/app/word-swipe-for-imessage/id1152091057?l=en&mt=8

Battle Bash, running full fledged third party ads and sell no-ads unlock. https://itunes.apple.com/gb/app/battle-bash/id1143245453?mt=8

Words with Friends (privacy policy link when sending message) https://itunes.apple.com/fr/app/words-friends-free-word-game/id804379658?l=en&mt=8

You should read back some, we posted how to use the StoreKit framework to link to other apps.

Battle Bash is not using the same StoreKit framework described above.


It is launching Safari from inside a standalone iMessage app which then launches the App Store. This is needed for ad attribution. It looks like it's using AppLovin as their ad provider.


I also am very curious on how they do this and clearly Apple has approved a standalone iMessage app/extension to have Ads.