Skip to content

AdMob NativeAd circular reference causing crash #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LewisSmallwood opened this issue Oct 10, 2022 · 3 comments
Closed

AdMob NativeAd circular reference causing crash #140

LewisSmallwood opened this issue Oct 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@LewisSmallwood
Copy link
Contributor

Somewhere within the logic for the NativeAd, there is a circular reference which causes both iOS and Android to crash when using the NativeAdLoader.

Here are the outputs from both platforms:

iOS

Android

Here is the code used to invoke the NativeAdLoader.

Code

@LewisSmallwood LewisSmallwood changed the title AdMob circular reference causing crash AdMob NativeAd circular reference causing crash Oct 10, 2022
@triniwiz triniwiz added the bug Something isn't working label Oct 10, 2022
@LewisSmallwood
Copy link
Contributor Author

Screenshot 2022-10-11 at 12 13 59

Here's a report of the same issue.

@LewisSmallwood
Copy link
Contributor Author

LewisSmallwood commented Oct 18, 2022

Hi @triniwiz, the latest changes to this didn't fix the issue (on iOS). There is still an issue when invoking the load() method on NativeAdLoader. I get the error Cannot read property 'BOTTOM_LEFT' of undefined which references this line here:

case AdChoicesPlacement.BOTTOM_LEFT:

@LewisSmallwood
Copy link
Contributor Author

Screenshot 2022-10-18 at 12 59 45

On Android, AdEventType is also undefined. So the change to the imports on both platforms just doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants