Hi guys,
This is relates to my other questions but for life of me I cannot seems to react to different scenarios with PlayHaven. Say when the Playhaven comes back without error but no ad (because i paused on the placement in the dashboard)
I looked at the list of callbacks in the doc but it is not clear (at least to me) See below about the listener from the doc. When I look at the console (IOS) I cannot see any of these strings returned?
I see for instance:
contentDidDisplay: after the ad is shown on the screen
contentDidDismissWithType: Not sure about this one but it seems to show when nothing is displayed
didFailWithError: seems to show when the ad failed to display
As you can see none of these callbacks are listed in the doc. Am I using the wrong event name. Currently I am using event.status but it seems that there is also event.data which is a JSON object. If I need to use event.data, how do i use it to extract the stuff i need such as ad failed or ad is paused (so not showing but not failing either)?
Anybody here struggled with Playhaven plugin?
Thank you!
Mo
The listener must accept a table as argument. The format of the event table is:
string. An event status or name. Possible events: > requestSucceeded > > requestFailed > > > Includes message. See message below. > > didFail > > > Includes message. See message below. > > contentDidFail > > > Includes message. See message below. > > shouldMakePurchase > > > Includes data. See data below. Possible fields: > > > > productIdentifier > > > > quantity > > unlockedReward > > > Includes data. See data below. Possible fields: > > > > name > > > > quantity > > willGetContent > > willDisplayContent > > didDisplayContent > > didMissContent