Debug View
Debug view allows you to test and ensure that you have integrated Apptics' SDKs correctly. It helps you to monitor real-time data as and when it is sent from the debug device or a simulator. This is useful during the development phase of an application.
By default, the engagements data (including events, sessions, screens, errors(crashes, non-fatal, ANRs), APIs, in-app updates, rate us prompts, remote configurations, and custom properties) in Apptics is synced on next session or batched together and sent using job schedulers. When you enable Debug view, the engagement data will be synced within few seconds.
How Debug view works:
Debug view captures and displays the data that the debug device or simulator sends to the Apptics server in real-time. This includes events, custom properties, sessions, screens, crashes, and other data points.
For example, you can see the exact events that are triggered within the app from a debug device in the Debug view console. This helps verify that the correct events are being logged as intended. Debug view also shows the parameters associated with each event, allowing you to make sure that all the relevant data is being passed correctly. If there are any issues with event tracking or data logging, Debug view can help identify these problems immediately, allowing you to make the necessary changes.
Benefits of using Debug View:
- Accurate data tracking: By verifying that all data are firing correctly, Debug View helps ensure that the analytics integration is accurate, which is critical for making data-driven decisions.
- Reduced deployment risk: Detecting and fixing issues in the data collection process before deploying the app to production reduces the risk of inaccurate data being logged once the app is live.
- Enhanced troubleshooting: When discrepancies or unexpected behavior in analytics data arise, Debug view can help pinpoint the source of the problem quickly.
For Android:
Debug view for Android is available from SDK version 0.2.12.0.
- To enable the debug mode on a device, set adb property using the below command.
Copiedadb shell setprop debug.apptics.app <package_name>
- To disable the debug mode, change the adb property to none.
Copiedadb shell setprop debug.apptics.app .none.
For iOS:
Debug view for iOS is available from SDK version 2.1.0.
- Set the build configuration to Debug and set the argument passed on launch to --ap-debug-enabled.
For Windows:
- Debug view is available from SDK version 1.0.2.4.
- Make sure to set the build configuration to debug before you start using debug view.
- Make sure to set the debug view Boolean to true before you initialize Apptics.
CopiedAppticsWindowsBase.Analytics.AnalyticsHelper.OnOffDebugView(true,AppticsWindowsBase.Analytics.DebugViewSyncInterval.Twenty);
InitApptics(); //your function where you init apptics