The Bugfender SDK enables you to monitor your mobile app remotely, providing valuable insights and debugging information. With Bugfender, you can easily track issues and monitor the performance of your app in real-time, making it an essential tool for developers.
Key Features of Bugfender SDK
- Remote logging: Capture logs and track errors from your mobile app, even without internet connection.
- Real-time monitoring: Get real-time reports on app performance, including device details, network status, and more.
- Crash reporting: Automatically record crashes and receive detailed crash reports for quick troubleshooting.
- User feedback: Enable users to provide feedback directly from your app, improving communication and bug reporting.
- Custom logs: Log custom events and track specific actions or behaviors within your app.
Getting Started
To integrate the Bugfender SDK into your mobile app, follow these steps:
- Register for a Bugfender account at https://bugfender.com/.
- Create a new project on the Bugfender dashboard.
- Install the Bugfender framework via Cocoapods or manually by downloading the SDK package.
- Import the Bugfender module into your project.
- Initialize Bugfender SDK with your app’s API key.
- Start logging using the Bugfender API.
Integration Guide
Installing Bugfender SDK
To install the Bugfender SDK, you can choose one of the following methods:
Cocoapods Integration
1. Open your terminal and navigate to your project directory.
2. Run the following command:
pod 'BugfenderSDK', '~> 1.0'
Manual Integration
1. Download the Bugfender SDK from the official website.
2. Add the Bugfender.framework to your Xcode project by dragging and dropping it into the project navigator.
3. Make sure the framework is added to your app’s target.
Importing Bugfender
To import Bugfender into your project, add the following import statement:
import BugfenderSDK
Initializing Bugfender SDK
Initialize Bugfender SDK within your app’s AppDelegate file. Add the following code to the didFinishLaunchingWithOptions method:
Bugfender.activateLogger("YOUR_API_KEY")
Logging with Bugfender
To start logging messages with Bugfender, use the following syntax:
Bugfender.log("Your log message")
Usage Examples
Example 1: Logging Custom Events
To log custom events, use Bugfender’s log methods:
Bugfender.log("Event occurred", tag: "Event")
Example 2: Capturing Device Information
Bugfender automatically captures device information for each log entry. To retrieve the device information, use the following method:
let deviceInfo = Bugfender.deviceIdentifier()
Example 3: Sending User Feedback
You can prompt users to provide feedback directly from your app:
Bugfender.sendUserFeedback("I found a bug!")
By integrating the Bugfender SDK into your mobile app, you gain valuable insights and remote debugging capabilities. Use Bugfender to monitor app performance, track issues, and receive user feedback effortlessly.
For more information and detailed documentation, visit the official Bugfender SDK documentation at https://bugfender.com/.