Skip to content
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

Robopods for Admob + iOS 12, freezing #62

Closed
aberkowski opened this issue Oct 9, 2018 · 4 comments
Closed

Robopods for Admob + iOS 12, freezing #62

aberkowski opened this issue Oct 9, 2018 · 4 comments

Comments

@aberkowski
Copy link

aberkowski commented Oct 9, 2018

My game suffer from random freezes when using iOS 12. I know that there was a bug with robovm and iOS 12 but I use the most recent version of robovm (2.3.5) and robopods-google-mobile-ads-ios (2.2.2).
I've created sample app with banner ad (I use admob test banner ad unit id) and some code to run garbage collector. If I disable 'causeGC()' method or do not initialize ads everything works fine. To run a sample project you have to download Google Mobile Ads SDK for iOS (https://developers.google.com/admob/ios/download) and place it in folder 'ios/libs/'. Link to sample app: https://github.com/Berobasket/TestLibgdxGame . It takes from 2 to 70 seconds to freeze on my IPhone SE.

@obigu
Copy link
Collaborator

obigu commented Oct 12, 2018

Just to confirm, the freezes reproducing when using the latest version of Google Mobile Ads which currently is 7.34.0 right?

I use Robopods 2.2.3-SNAPSHOT (they're exactly the same as 2.2.2) and MobiVM 2.3.5 on several live games with Google Mobile Ads SDK 7.30.0 and have only integrated banner ads but haven't experienced freezes.

What I've experienced is lag when banners are requested which is specially noticeable in case the banner is shown permanantly in game (instead of showing/hiding in natural pauses).

Having a quick look at the project (haven't run it) I see you request Landscape banners but your project is Portrait. Doubt is related but who knows.

@aberkowski
Copy link
Author

Yes, Google Mobile Ads 7.34.0. I've changed banner ad to Portrait (thanks for spot) and it freeze only 1 time for 3 runs. But when I change project to Landscape and banner ad to Landscape it freezed 3 times for 3 runs.. Twice after 3 seconds and once after 81 seconds. So, maybe it is something related to landscape banner ad? After freeze I got info: "void SendDelegateMessage(NSInvocation *): delegate (webview:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10.000000 seconds. main run loop mode: kCFRunLoopDefaultMode"

@obigu
Copy link
Collaborator

obigu commented Oct 12, 2018

The question may seem stupid but it would not be the 1st case, are you sure you are compiling with MobiVM 2.3.5? If you compile using an IDE plugin, you have installed the new plugin (changing the build.gradle file has no effect)?

@aberkowski
Copy link
Author

Hmmm... it seems that it was not a stupid question... You were right - I had RoboVM 2.3.3 plugin installed. After install 2.3.5 plugin everything works fine.. Sorry for this stupid mistake and for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants