Performance issues in PhoneGap iOS after ads + Integration

I am developing a game using PhoneGap iOS. I included Ads in it using Mobclix as well as iAds. I also integrated Flurry into the analytics game.

But after integrating ads into the game, I ran into some in-game performance issues on some devices. They are as follows: -

Ipod touch : - Slow response to touch events, animation too slow, rendering has become slow. Iphone : - Animation is slow, but better than iPod touch.

It works great on iPad .

I used PhoneGap to port our HTML5 code to devices.

I checked Delete Ads and Flurry Code, then the game works Fine. I also searched this problem many times, but could not find a suitable answer. We look forward to help.

+4
source share
1 answer

I noticed (first hand) that the Flurry HTML5 SDK can significantly slow down your application. It communicates with the server by inserting SCRIPT tags into the HEAD DOM section, which has three drawbacks that I see:

  • Some browsers (like mobile Safari on iOS, it seems) will wait for HEAD scripts to be resolved before running any other scripts
  • If you make multiple Flurry calls, you will soon reach the concurrency limit browser for multiple downloads from the same server, as each call creates a new SCRIPT tag.
  • Script tags are never deleted, so the DOM continues to grow.

One solution is to try your own Flurry SDK for the target phone (s), but this is not an option if you support the WebApps browser, and also increases the development time and download size for your own applications.

It seems pretty shocking to me that the Flurry HTML5 SDK is so inefficient. Back to Google Analytics, I think.

0
source

Source: https://habr.com/ru/post/1484205/


All Articles