BubblDocs

How-To Guide

πŸ“˜ Objective To enable the developer to access data from the Bubbl Plugin to enhance their testing capabilities.
πŸ“˜ Audience iOS App Developer

Bubbl provides tools you may use for both development purposes and as part of your app. The SDK automatically handles notification delivery and tracking through the standard iOS notification system.

Notification Management

The Bubbl SDK integrates with the standard iOS notification system. You can manage notifications using the standard iOS APIs:

// Swift
import UserNotifications

// Get delivered notifications
UNUserNotificationCenter.current().getDeliveredNotifications { notifications in
    // Handle your notifications here
    print("Delivered notifications: (notifications.count)")
}

// Clear delivered notifications
UNUserNotificationCenter.current().removeAllDeliveredNotifications()

// Clear specific notification
UNUserNotificationCenter.current().removeDeliveredNotifications(withIdentifiers: ["notification_id"])

Debugging and Testing

⚠️ Not for RELEASE β€” These features are for debugging/testing only; they must never ship to the App Store.

πŸ““ Note β€” Use Xcode's console and device logs to debug SDK functionality.

// Swift - Enable debug logging
import Bubbl

// The SDK automatically logs to console when running in debug mode
// Check Xcode console for detailed logs about:
// - Device registration
// - Geofence events
// - Notification delivery
// - API calls

// You can also check the device logs in Xcode's Devices window

SDK Logs

⚠️ Not for RELEASE β€” Debug/Test only.

πŸ““ Note β€” SDK logs are automatically written to the console in debug builds.

// Swift - Access SDK logs
import Bubbl

// SDK logs are automatically available in Xcode console
// Look for logs prefixed with [Bubbl] or similar

// For production builds, logs are automatically disabled
// No additional configuration needed