I am using ADMS (omniture) library library in android, I want to enable the logs of request and response of omniture library, so that i can track what is exchanged with server, my custom app state is not visible in server reporting, I need to find where is the problem.
In ios omniture logs are printed on console, but how to enable logs in android. Any help is greatly welcomed... please help me.
I using the following code
ADMS_Measurement measurement = ADMS_Measurement.sharedInstance();
measurement.trackAppState(appState, contextData);
I found the solution
ADMS_Measurement measurement = ADMS_Measurement.sharedInstance(activity);
measurement.setDebugLogging(true);
measurement.configureMeasurement(TRACKING_RSID, TRACKING_SERVER);
Related
I want to see analytics in my android application, but am struggling to set Adobe Launch and Analytics up.
I have Mobile Core and Analytics set up in the app itself. And it isn't producing any errors on run.
MobileCore.setApplication(this)
MobileCore.setLogLevel(LoggingMode.DEBUG)
try {
MobileServices.registerExtension()
Analytics.registerExtension()
Lifecycle.registerExtension()
MobileCore.start { MobileCore.configureWithAppID("app-id-here") }
} catch (e: Exception) {
// Log
}
And have created the property in Adobe Launch adding the relevant extensions needed, setting up environments and publishing a library. I now have a library published. But have no idea how to view the data gathered from the app? Am I miss understanding what Launch is? Any help on this would be appreciated.
Once registeration is done you can able to see the logs in App logs "AdobeExperienceSDK" but to see the actual event you need to login on AEP dashboard portal.
For setup and instruction please visit below official url from Adobe Launch
https://experienceleague.adobe.com/docs/launch-learn/implementing-in-mobile-android-apps-with-launch/configure-launch/launch-install-the-mobile-sdk.html?lang=en#prerequisites
I may be misunderstanding your question, but if you're asking how to see an aggregation of the data you sent to Adobe, your request contains the address of the repo where you're sending your info. You need to log into Adobe Analytics to see what you sent.
You need to set the events to track the screen views. Example:
Analytics.trackState("Screen Name", null);
The oficial documentation:
https://docs.adobe.com/content/help/en/mobile-services/android/analytics-android/states.html
You can also use https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-experience-platform-assurance , which can let you see Adobe Launch console/debugging notes in the Adobe Griffon interface. A bit overkill for a one-time thing, but if you're going to be spending a lot of time withLaunch in your app, it might be worth setting up.
How to get complete logcat from remote users phone?
I came across BUGFENDER and www.REMOTELOGCAT.com ... (didnt use yet.)
I need advice what professionals use for remote logging?
What is the industry standard?
How can I get complete logcat from my client's phone living in another country?
In iOS it gets saved in the phone itself so client can email that log file but whats the solution in android ?
P.S by 'complete logcat' i mean COMPLETE logcat rather than specified logs in code like log.e("some exception occured") as in crashlytics...
I'm not sure how to get the full logcat in Android.
What I can answer is that I'm professional and I use Bugfender for remote logging in iOS and React Native and I know many colleagues using Bufender for Android as well.
I just setup app insights on my android app but I am not seeing any telemetry make it to the azure dashboard. Does anybody know if you have to do anything special in the setup to make it work when debugging? The documentation doesn't specify anything that would make me think it won't send when in debug mode but I put in the right instrumentation key and I am getting nothing.
As one of the answers mentioned, I checked the logcat after enabling developer mode. and here is what I found:
W/com.microsoft.applicationinsights.logging Sender: Couldn't send data
with IOException: java.net.UnknownHostException: Unable to resolve
host "dc.services.visualstudio.com": No address associated with
hostname
and this...
I/com.microsoft.applicationinsights.logging Sender: Persisting because
of IOException: :We're probably offline =)
and this...
I/com.microsoft.applicationinsights.logging Channel: enqueued
telemetry:Microsoft.ApplicationInsights.PageView
There is nothing more needed to enable events while debugging. Can you please enable developer mode using
ApplicationInsights.setDeveloperMode(true);
and look for log statements in logcat that say you are successfully sending data?
If your problem persists, please shoot me an email via AppInsights-Android#microsoft.com.
By the way, there was a 1.0-beta.9 release the other day, are you already using it?
I've been trying to set up chartboost ads in my apps/games.But it is not working for me. I followed the instructions from the sdk download page, but it didn't work. Then I downloaded their example from the github through this link https://github.com/ChartBoost/client-examples The example doesn't work either.
The logcat view displays messages shown below.
08-12 14:58:08.803: I/ChartBoost(9641): Request response received: Request received
08-12 14:58:08.807: I/JSON(9641): {"message":"Request received","status":200}
08-12 14:58:08.827: E/ChartBoost(9641): error generating request!
If someone has encountered similar problems or know any solutions to the problem, any help in appreciated.
Thanks.
Did you sign up for Chartboost, receive the signing key and make sure to correctly put that into your app? Just making sure since those are the most common problems.
The Chartboost support team will be the best source for helping you with this. Did you contact them also? They'll be back in the office on Monday.
Is there anyone using Flurry to generate reports for uncaught exceptions that could post some sample code on how to do this?
I don't see any example via Flurry themselves, and though I've seen code samples of custom exception reporters, I haven't seen a simple example of how to implement the basic error reporting just using Flurry.
Thanks.
This is all good feedback. We're looking into adding full stack traces for error reporting which we'll hopefully see in our next major SDK release. We'll also look at filtering by device model.
In the meantime we've added a new REST API for exporting your error reports if you want to do your own analysis. If you need help using it you can just contact our support or message me.
Sean / CTO / Flurry, Inc.
Flurry does it automatically (if you have it running). However, the error reporting is lame. They only catch the message w/o giving you the stack trace, so you may end up seeing (for example) that people are getting lots of NullPointerExceptions, but you won't have any idea where, or how, they're happening. If you try to do it yourself with the FlurryAgent.onEvent() method you'll quickly discover that they limit you to 255 characters.
If you need detailed error reporting it really is better to roll your own right now.
I wasn't going to post this initially, but since it sounds like Flurry's error reporting sucks, you should check android-remote-stacktrace. It sends the stack trace to a url, which you can use to redirect it to an e-mail or just gather it on the server.
I'm not using it for uncaught exceptions , but you can catch it and then send it to flurry.
I am using bugsense for error reports. It catches full stack trace when an uncaught exception happens and also gives some useful information about the device - OS version, you app's version, is WiFi available on the device, etc. You can add custom messages and tags for specific events.
I've already fixed a couple crashes in my app thanks to it.
Since people are posting alternatives for getting stack traces, I'll recommend ACRA. ACRA can send the stack trace to a spreadsheet on google drive/docs. Or you can also have it send to your server if you wish too. By default it also includes phone model, android version, memory of device, and other data too.