Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
fixed offerwall ios
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbodman committed Oct 20, 2017
1 parent 8e64f54 commit b86b47b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/ios/IronSourceAdsPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,14 @@ - (void)didFailToReceiveOfferwallCreditsWithError:(NSError *)error
- (BOOL)didReceiveOfferwallCredits:(NSDictionary *)creditInfo
{
NSLog(@"%s", __PRETTY_FUNCTION__);
[self emitWindowEvent:EVENT_OFFERWALL_CREDITED withData:creditInfo];

NSDictionary *data = @{
@"credits":@(creditInfo.credits),
@"totalCredits":@(creditInfo.totalCredits),
@"totalCreditsFlag":@(creditInfo.totalCreditsFlag)
};

[self emitWindowEvent:EVENT_OFFERWALL_CREDITED withData:data];
return YES;
}

Expand Down Expand Up @@ -430,7 +437,7 @@ - (void)interstitialDidFailToLoadWithError:(NSError *)error
}
};

[self emitWindowEvent:EVENT_INTERSTITIAL_FAILED_TO_LOAD, data];
[self emitWindowEvent:EVENT_INTERSTITIAL_FAILED_TO_LOAD withData:data];
}

- (void)interstitialDidFailToShowWithError:(NSError *)error
Expand Down

0 comments on commit b86b47b

Please sign in to comment.