jeremy-wischusen / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

GATracker error on iOS7 with Air 4.0 and -useLegacyAOT no flag #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm trying to compile my mobile app with the new -useLegacyAOT no flag.

Compilation goes well and when installing and launching the app (release build) 
on iPhone 5 with iOS 7 I get the following messages on Scout:

"
Adobe iOS
External interface not available
0 - Init
Error: ga.js not found, be sure to check if
<script src="http://www.google-analytics.com/ga.js"></script>
is included in the HTML.
"
And then an error is thrown and obviously the app crashes.

When I compile without the new flag I get the following expected output and the 
app starts flawlesly:

"
Adobe iOS
External interface not available
0 - Init
Init Database
...
(And the rest of the trace statements from the init)
"

So the ga class fails only when I use -useLegacyAOT no.
I use "AS3" mode to initialize the tracker so I wonder why it's trying to find 
the ga.js file when the new compiler is used...

Someone can share some light about this issue?

Original issue reported on code.google.com by kike...@gmail.com on 24 Jan 2014 at 11:21

GoogleCodeExporter commented 9 years ago
This has been fixed as of AIR 16.0.0.245, which also removes support for the 
legacy compiler.

Original comment by scott.ha...@gmail.com on 17 Dec 2014 at 8:56

GoogleCodeExporter commented 9 years ago
the problem was even if you use AS3 mode, the code for the JS bridge is still 
compiled and that was caused the error.

Again, all issues (this one among others) will be crushed with the release of 
universal analytics.

Original comment by zwetan on 17 Dec 2014 at 9:03