Closed fix89 closed 10 years ago
The tracking might take some time (up to 180secs with the default value) to be sent to google servers, during which time the app must stay open. if it doesn't, it will be dispatched on the next lunch, but that might not happen during development because of the uninstall/reinstall process.
set the dispatchInterval interval to something low, like 3 and set the debug flag to true then keep an eye on the device logs: google's libraries should log their operation and you should notice if there's any communication problem.
Nothing... really strange. This is not my first app where I use your native extension (really thanks). Maybe some settings are wrong on google analytics consolle?
Or maybe I need to add something in the app xml descriptor?
just this:
<extensions>
<extensionID>eu.alebianco.air.extensions.analytics.NativeGATracker</extensionID>
</extensions>
which is going to be there if you're using any IDE.
is the extension reporting that is supported? are you getting anything on the device logs?
How can i get device log?
PS extension report that is supported
From the xCode organizer, select Device Logs for your device. Also, can you try on the simulator and see if you have the same issues?
Nothing. No log :(
no logs at all or nothing about analytics? it should log something immediately when it's initialised
no logs at all...
Not sure I can help much with that, looks like a problem with your system. The only thing that comes to mind is: the device is connected to your machine, right? (i know, pretty stupid question). Also, can you try the simulator? you might able to avoid this issue there ...
Now i've found this log:
Incident Identifier: 4082F993-8075-4007-AE2B-EE25E569D0FA CrashReporter Key: 61871a3b45c887f9ab9e93946df0d472a297abae Hardware Model: iPhone7,2 OS Version: iPhone OS 8.1 (12B411) Kernel Version: Darwin Kernel Version 14.0.0: Tue Oct 7 00:04:33 PDT 2014; root:xnu-2783.3.13~4/RELEASE_ARM64_T7000 Date: 2014-10-30 15:44:20 +0100 Time since snapshot: 23 ms
Free pages: 2713 Active pages: 74735 Inactive pages: 36680 Speculative pages: 907 Throttled pages: 0 Purgeable pages: 0 Wired pages: 53730 File-backed pages: 36115 Anonymous pages: 76207 Compressions: 15727086 Decompressions: 9344708 Compressor Size: 84842 Uncompressed Pages in Compressor: 201768 Page Size: 16384 Largest process: Clash of Clans
Processes
Name |
com.apple.WebKit
backboardd <11829fb1a5ff39bb9fef92e5783c1c9f> 19478.509 15349 0 - 6078 50 (daemon)
fseventsd <391c1f7a879b369196a28e62271f1c78> 78.745 988 0 - 1233 50 (daemon)
UserEventAgent
End
that's a crash log but i can't really say what was the cause. maybe logging has to be enabled on the device? not sure... (and please use something like http://pastebin.com/ for this things or the issue will be unreadable)
Solved. The problem was another native extension... one about notification (by distriqt). Removed, and now everything works. Sorry :)
Right, I had a similar issue but it should warn you when compiling if I remember correctly. In the next release I'll make some adjustments so the extension will play nicely with others.
Hi, I'm trying to use your ane, but doesn't works. No errors runtime. Simply nothing tracked on realtime section on the google analytics web site. I'm using v2.0.7 RC2; AIR 15.0.302 ; iOS 8 on my iPhone 6
simple code:
import eu.alebianco.air.extensions.analytics.Analytics; import eu.alebianco.air.extensions.analytics.api.ITracker;
var analytics:Analytics = Analytics.getInstance(); var tracker:ITracker; var AnalyticsOk:Boolean=Analytics.isSupported();
if (AnalyticsOk) { trace("Analytics OK"); tracker = analytics.getTracker("my_traker_id"); }
tracker.startNewSession(); tracker.buildView("Vista predefinita").track(); Object(root).tracker.buildEvent("Global", "Open App").track();