Hello,
I have some problems with Chartboost plugin.
1. I am not able to force (pre)caching.
I am testing now game over location, but also for default location can’t force caching.
Some snippet from my code:
id: chartboost
appId: Qt.platform.os === "ios" ? Configuration.chartboostAppleAppId : Configuration.chartboostGoogleAppId
appSignature: Qt.platform.os === "ios" ? Configuration.chartboostAppleAppSignature : Configuration.chartboostGoogleAppSignature
// Do not use reward videos in this example
shouldDisplayRewardedVideo: false
shouldRequestInterstitialsInFirstSession: true
onInterstitialCached: {
logger.logDebug("Interstitial cached at location:%1".arg(location))
}
onInterstitialDisplayed: {
logger.logDebug("Interstitial displayed location:%1".arg(location))
}
onInterstitialDismissed: {
logger.logDebug("Interstitial dismissed location:%1".arg(location))
}
onInterstitialFailedToLoad: {
logger.logDebug("InterstitialFailedToLoad at location:%1, error: %2".arg(location).arg(error))
}
onRewardedVideoCached: {
logger.logDebug("RewaredVideoCached at location:%1".arg(location))
}
Component.onCompleted: {
logger.logDebug('%1 is cached(has) %2'.arg(Chartboost.GameOverLocation).arg(hasInterstitial(Chartboost.GameOverLocation)))
if (!hasInterstitial(Chartboost.GameOverLocation)) {
cacheInterstitial(Chartboost.GameOverLocation)
}
// foce the cache, still does not work
cacheInterstitial(Chartboost.GameOverLocation)
cacheInterstitial()
}
I am still not able to cache it.
Only after I display video/image form Chartboost I get:
V CBRequestManager: "ad-portrait": {
V CBRequestManager: "url": "https:\/\/a.chartboost.com\/creatives\/5715cc9cf6cd4541a67ed60d\/068690068fe2657a
D CBWebImageCache: downloading image to cache... https://a.chartboost.com/creatives/.../...jpeg
I System.out: (HTTPLog)-Static: isSBSettingEnabled false
I System.out: (HTTPLog)-Static: isSBSettingEnabled false
I qtaguid : Tagging socket 51 with tag 4c7f4fc500000000{1283411909,0} uid -1, pid: 8572, getuid(): 10278
I qtaguid : Untagging socket 51
D ad : ##### Adding aimpression-> interstitial-native at locationGame Over
D ad : ##### Impression should cache:true
D assets:/qml/common/Logger.qml:48 (logDebug): qml: ==========[Debug]Interstitial cached at location:
Do I miss anything?
2. Interstitial video
There are ways to detect display/dismiss/closing ad, mostly for image ads.
Is there a way to detect when video stops playing?
I see in logs entries form media player, but nothing extra from Chartboost plugin.
Currently, using the plugin, I am not able to detect when video finishes.
Maybe I miss something?
3. Is the example app at github, still supported an should work?
https://github.com/vplayplugins/ChartboostSample