Last week we released beta 10 of the IMA SDK for iOS. This release comes with a few new features including the following:
Ad rendering via the new WKWebView in iOS 8
Addition of calling classes in delegate methods
New TAPPED event for tracking user taps on the ad container
The most important thing to know about this release is that you will now need to include the WebKit framework as an optional framework in your implementation and build for 64-bit support . If you are a Cocoapods user, this will be done for you in the generated xcworkspace when you upgrade to beta 10 via pod install
.
Ad rendering via the new WKWebView in iOS 8
We’ve moved ad rendering from UIWebView to the new WKWebView in iOS 8 implementations. This should fix a number of issues we saw with the old web view in iOS 8, including skip button unresponsiveness and delayed tracking event firings. As a side effect of this change, you’ll need to include the WebView framework as an optional framework in your project and build for 64-bit support. If you’re a Cocoapods user, this will be done for you when you run pod install to get the latest version of the SDK.
Addition of calling classes in delegate methods
After the beta 9 release, we noticed that a few of our delegate methods were missing a reference to their calling class, which put them out of line with iOS standards. We’ve resolved this issue in beta 10 and marked the old methods (without a reference to the calling class) as deprecated. You can see a list of the new methods in our release notes .
New TAPPED event for tracking user taps on the ad container
Since launch, one of our most requested features has been to add the ability to respond to user taps on the ad container while an ad is playing. We’re happy to announce that Beta 10 fulfills this request by adding kIMAAdEvent_TAPPED
to the list of AdsManager events. You can start listening to this event by setting up your AdsManager delegate as follows:
- (void)adsManager:(IMAAdsManager *)adsManager
didReceiveAdEvent:(IMAAdEvent *)event {
if (event.type == kIMAAdEvent_TAPPED) {
// Handle TAPPED event
}
}
This event will be fired any time a user taps on a non-clickable part of an ad (taps on the "Learn more" or "Skip" buttons will not result in a TAPPED event).
As always, if you have any questions feel free to contact us via the support forum .
- Shawn Busolits , IMA SDK Team