Mobile SDKs
iOS SDK
Integrate Instalog into your iOS applications
Installation
CocoaPods
InstalogIOS is available through CocoaPods. To install it, add the following line to your Podfile:
Swift Package Manager
InstalogIOS is also available through Swift Package Manager. To install it, add the following to your Package.swift
file:
Or in Xcode:
- File > Add Packages…
- Enter package URL:
https://github.com/instalog-dev/instalog-ios.git
- Select “Exact Version” and enter “1.0.1”
- Click “Add Package”
Getting Started
Initialize the SDK
Feature Configuration
InstalogIOS allows you to configure which features are enabled or disabled:
Option | Default | Description |
---|---|---|
isCrashEnabled | true | Controls crash reporting functionality |
isFeedbackEnabled | true | Controls in-app feedback functionality |
isLogEnabled | true | Controls event logging functionality |
isLoggerEnabled | false | Controls internal debug logging |
You can configure these options when initializing the SDK, or use the default configuration.
Basic Usage
Features
Crash Reporting
- Automatic crash detection
- Manual crash reporting
- Crash simulation for testing
- Can be enabled/disabled through configuration
Event Logging
- Multiple log levels (debug, info, warning, error)
- Custom metadata support
- Automatic device information collection
- Can be enabled/disabled through configuration
User Feedback
- In-app feedback modal
- Screenshot attachment (up to 4 images)
- Programmatic feedback submission
- Can be enabled/disabled through configuration
Configurable Components
- Selectively enable or disable features based on your needs
- Control internal logging verbosity
- All configurations can be set at initialization
Example
To run the example project:
- Clone the repo
- Run
pod install
from the Example directory - Open the workspace in Xcode
The example project demonstrates:
- SDK initialization with feature configuration
- Event logging with different log levels
- Crash reporting and simulation
- User feedback collection
Initialization Example
Logging Example
Troubleshooting
Common Issues
-
SDK initialization failures
- Verify API key is correct
- Check network connectivity
- Ensure proper permissions in Info.plist
-
Missing crash reports
- Verify symbolication is properly configured
- Check that crash reporting is enabled in configuration
-
Feedback modal not appearing
- Ensure the SDK is properly initialized
- Verify the view controller hierarchy
For additional support, contact us at [email protected]