How to use Appdome Framework Logs
Overview
Appdome Framework Logs provides you with the flexibility to receive encrypted logs for threat-event triggers in your mobile apps without the need for a rebuild. By activating this feature, you can dynamically start or stop the generation of encrypted logs as needed.
Key Features
- Dynamic Activation: Easily turn the feature on or off as required.
- Encrypted Logs: Ensures security for log data.
- Customizable Log Size: Define the maximum log size, ranging from 5 MB to 50 MB (default is 5 MB).
Prerequisites
- Appdome account (create a free Appdome account here)
- A license for for Appdome Framework Logs.
- Mobile App (.ipa For iOS device or .apk or .aab for Android)
- Signing Credentials (see Signing Secure Android apps and Signing Secure iOS apps)
- Ensure that the following intent actions are implemented in your app code:
START_LOGS_RECORD
STOP_LOGS_RECORD
How to Activate Appdome Framework Logs
- Log into Appdome and navigate to the Dev Options section.
- Locate the toggle for Appdome Framework Logs and switch it on.
- Set the maximum log size in the Maximum Log Size field. The value can range between 5 MB and 50 MB, with a default of 5 MB.
- A confirmation message will display to indicate successful activation.
Code Snippets for Triggering Logs
Below are examples of how to start, and stop log recordings in different programming languages:
Java
Intent newIntent = new Intent("StartLogsRecord"); context.sendBroadcast(newIntent); Intent newIntent = new Intent("StopLogsRecord"); context.sendBroadcast(newIntent);
Kotlin
val newIntent = Intent("StartLogsRecord") context.sendBroadcast(newIntent) val newIntent = Intent("StopLogsRecord") context.sendBroadcast(newIntent)
MAUI Android (C#)
Intent newIntent = new Intent("StartLogsRecord"); ApplicationContext.SendBroadcast(newIntent); Intent newIntent = new Intent("StopLogsRecord"); ApplicationContext.SendBroadcast(newIntent);
Objective-C
[[NSNotificationCenter defaultCenter] postNotificationName:@"StartLogsRecord" object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:@"StopLogsRecord" object:nil];
Swift
NotificationCenter.default.post(name: NSNotification.Name("StartLogsRecord"), object: nil) NotificationCenter.default.post(name: NSNotification.Name("StopLogsRecord"), object: nil)
MAUI iOS (C#)
NotificationCenter.default.post(name: NSNotification.Name("StartLogsRecord"), object: nil) NotificationCenter.default.post(name: NSNotification.Name("StopLogsRecord"), object: nil)
With Appdome Framework Logs, you can efficiently monitor and troubleshoot threat-event triggers while maintaining robust security for your mobile app logs.
Related Articles
- Extracting the device logs from your Android device
- Extracting the device logs from your iOS device
- App Compromise Notification
How Do I Learn More?
If you have any questions, please send them our way at support.appdome.com or via the chat window on the Appdome platform.
Thank you!
Thanks for visiting Appdome! Our mission is to secure every app on the planet by making mobile app security easy. We hope we’re living up to the mission with your project. If you don’t already have an account, you can sign up for free.