Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

cannot recieve "playbackEnded" only in iOS device.
Started by chodongwon82 Nov 04 2018 12:51 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

chodongwon82

[GLOBAL: userInfoPane.html]
chodongwon82
  • Enthusiast

  • 44 posts
  • Corona SDK

I updated rewarded video recenty.
but my iOS users notified that they did not receive reward compensation.
 
So I tested it.
In adListener, "playbackBegan" event is displayed well in the log.
but I have not received a "playbackEnded" event.
only iOS device problem. (it works well good on android.)

 

To sum up.
1. "playbackBegan" event (iOS O / Android O)
2. "playbackEnded" event (iOS X / Android O)
3. event.data["finished"] == true (iOS X / Android O)
 
There are no iOS exceptions in "adListener". just same code.
Where can I find the problem?
I'm using 'Corona 2018.3426 build' and appodeal.beta pulgin.


[TOPIC: post.html]
#2

chodongwon82

[GLOBAL: userInfoPane.html]
chodongwon82
  • Enthusiast

  • 44 posts
  • Corona SDK

I found it.
I just commented out this line.
and now I can get "playbackEnded" event in iOS device.
 
I wonder why I coded it like that.
And it is strange that it was the cause.
    elseif ( event.phase == "displayed" or event.phase == "playbackBegan" ) then
        if event.type == "rewardedVideo" then
            -- if ( appodeal.isLoaded( "rewardedVideo" ) ) then
            -- else
            --     appodeal.load( "rewardedVideo" )
            -- end
        end

    elseif event.phase == "playbackEnded" and event.type == "rewardedVideo" then
        get_reward()
        if ( appodeal.isLoaded( "rewardedVideo" ) ) then
        else
            appodeal.load( "rewardedVideo" )
        end
    end




[topic_controls]
[/topic_controls]