The Mindbox SDK allows developers to integrate mobile push notifications, in-app messages, and client events into your iOS projects.
These instructions will help you integrate the Mindbox SDK into your iOS app.
Follow the installation process detailed here. Overview:
- In Xcode, go to File → Add Package Dependencies...
- Enter the repository URL:
https://github.com/mindbox-cloud/ios-sdk - Add
Mindboxto your main app target. - Add
MindboxNotificationsServiceto your Notification Service Extension target. - Add
MindboxNotificationsContentto your Notification Content Extension target.
CocoaPods is still supported. Add to your Podfile:
pod 'Mindbox'
pod 'MindboxNotifications'If you are currently using CocoaPods and want to switch to SPM:
- Deintegrate CocoaPods:
If your
pod deintegrate rm -rf Pods Podfile Podfile.lock
.xcworkspacewas created by CocoaPods (contains only your project andPods.xcodeproj), remove it as well:rm -rf YourApp.xcworkspace
- Open your
.xcodeproj(not.xcworkspace). - Verify no CocoaPods remnants:
- Each target → Build Phases → no
[CP]phases should remain. - Each target → General → Frameworks, Libraries → no
Pods_*.framework. - Project → Build Settings → search "Pods" → no xcconfig references.
- Each target → Build Phases → no
- Add the SDK via SPM (see Installation above).
- Build and verify all targets compile.
Note: Your app data is not affected by this migration. Core Data stores are saved in the App Group container independently of the dependency manager.
Initialize the Mindbox SDK in your AppDelegate or SceneDelegate. Refer to the documentation here for more details.
Learn how to send events to Mindbox. Create a new Operation class object and set the respective parameters. Check the documentation for more details.
Mindbox SDK aids in handling push notifications. Configuration and usage instructions can be found in the SDK documentation here and here.
An Example of integration is provided in case of any issues.
In need of further assistance? Feel free to contact us.
This library is available as open source under the explicit terms of the License.
For a better understanding of these content, we suggest reading the referenced iOS SDK documentation.