revmob freezing app on startup with low-internet connection

Just started to experiment with revmob. It was very simple and straightforward. I was able to get it working on the simulator and the ipad3 that I am testing it on.

However, during testing I noticed that the app would stutter (I would also describe it as the screen froze) when it would load a revmob ad. So, I wanted to test it with a low-internet connection and so I walked around the house until I was in this gray area of 1-bar to no bars on the wifi indicator on the ipad.

When the app starts up for the first time the screen stays on the splash screen for a while and then just quits. I am assuming it is quitting because the OS has determined that the app is taking too long to load.

If I am in airplane mode, the app has no problems loading (with no revmob ads, of course).

So I am guessing that it detects an internet connection, sends some sort of internet request and waits for a response. Here the whole app freezes, while it waits for the response from that internet request.

I know that lua operates in chunks and won’t update the screen until it has completed the code chunk, but I thought html requests were asynchronous? Or are only some requests asynchronous?

Also I would have tried looking through the revmob.lua code to attempt some troubleshooting, but I dare-say that the code is practically unreadable (no real formatting at all) :frowning:

I was using revmob 3.0.2.

Is this fixable?
Is this a limitation of Corona/Lua?
Does someone have a better detailed explanation as to what is actually going on?

Thanks.
[import]uid: 94868 topic_id: 30019 reply_id: 330019[/import]

Revmob needs an internet connection to work. If you dont have a good connection it will try to load the ad then stop. I was having problems using revmob 3.0.2 as well (long loading time) so I switched back to Revmob 2.0 and it works very smoothly. [import]uid: 75779 topic_id: 30019 reply_id: 120226[/import]

FYI only: I`ve done exactly the same as @rmckee due to the almost same issue (mine was worse as the game would just crash at splashscreen time already).
[import]uid: 89165 topic_id: 30019 reply_id: 120230[/import]

alright had a chance to test out the older revmob 2.0. and it does not crash the app at startup. Which is good.

But there is still a noticeable delay when it switches banner ads. With a really low wifi connection, the app freezes for 10 seconds while it waits to receive the ad.

So I think revmob 2.0 and the new 3.0 suffer from the same problem. The only difference is that revmob 2.0 does not do any real internet requests when it is first initialized in the code.

So I am not exactly sure how to proceed with revmob. (but I’ll add a post to the big revmob thread) [import]uid: 94868 topic_id: 30019 reply_id: 120492[/import]

Revmob needs an internet connection to work. If you dont have a good connection it will try to load the ad then stop. I was having problems using revmob 3.0.2 as well (long loading time) so I switched back to Revmob 2.0 and it works very smoothly. [import]uid: 75779 topic_id: 30019 reply_id: 120226[/import]

FYI only: I`ve done exactly the same as @rmckee due to the almost same issue (mine was worse as the game would just crash at splashscreen time already).
[import]uid: 89165 topic_id: 30019 reply_id: 120230[/import]

alright had a chance to test out the older revmob 2.0. and it does not crash the app at startup. Which is good.

But there is still a noticeable delay when it switches banner ads. With a really low wifi connection, the app freezes for 10 seconds while it waits to receive the ad.

So I think revmob 2.0 and the new 3.0 suffer from the same problem. The only difference is that revmob 2.0 does not do any real internet requests when it is first initialized in the code.

So I am not exactly sure how to proceed with revmob. (but I’ll add a post to the big revmob thread) [import]uid: 94868 topic_id: 30019 reply_id: 120492[/import]