I am using IMA SDK to play VAST ads. The ad video plays perfect but when I click on 'Learn More' button in the video ad, which opens in-app browser. After click on 'Done' in that window, the video ad is not resuming. Should i add something here to resume it ? I believe the SDK would handle this situation.
iOS IMA SDK - Video not resuming after closing the In-app browser (After clicking Learn More)
1.2k Views Asked by Himabindu At
2
There are 2 best solutions below
0
On
Need implement IMAWebOpenerDelegate
...
var adsManager: IMAAdsManager!
...
extension ViewController: IMAWebOpenerDelegate {
func webOpenerDidClose(inAppBrowser webOpener: NSObject!) {
print("closed")
adsManager.resume()
}
func webOpenerDidOpen(inAppBrowser webOpener: NSObject!) {
// Do something
}
func webOpenerWillClose(inAppBrowser webOpener: NSObject!) {
// Do something
}
func webOpenerWillOpen(inAppBrowser webOpener: NSObject!) {
// Do something
}
func webOpenerWillOpenExternalBrowser(_ webOpener: NSObject!) {
// Do something
}
}
The idea is to have the user resume the Ad when your app regains focus. Keep in mind that a user might forget that the app was in the background so a user might be surprised to hear the app blaring an Ad once in focus.
Add a play button overlay on the IMA player.
Add a trigger to the button
3.Add
IMAAdsManagerDelegate