Hi
I am having problems with the fuse ad listener getting called at any of the event phases.
I have the following code with some native alerts to debug…
function fuseAdListener( event ) native.showAlert( 'title', "Fuse Listener" ) if ( event.isError ) then native.showAlert( 'title', "Fuse error: " .. event.response ) else if ( event.phase == "init" ) then -- Fuse system initialized; load/cache a zone-specific ad fuse.load() elseif ( event.phase == "shown" ) then -- An ad finished showing native.showAlert( 'title', "Fuse Ad shown" ) elseif ( event.phase == "completed" ) then -- User accepted an offer or completed a task for a reward -- The event.payload table contains details about the reward native.showAlert( 'title', event.payload.itemID ) if event.type == "rewarded" then -- do some stuff end end end end fuse.init( fuseAdListener )
Thanks