Installation

Add this code to your iOS project to initialize Hardal and start sending events:

Configuration Options

For iOS integration, you can customize the following:

  • Custom event properties
  • Event batching
  • Retry logic for failed requests

Example Usage

// Track a custom event
sendEvent(
    eventName: "purchase_completed",
    properties: [
        "product_id": "123",
        "price": 99.99,
        "currency": "USD"
    ]
)

Troubleshooting

Validation

To validate your iOS integration:

  1. Use the debug console in Xcode
  2. Monitor network requests in the debug navigator
  3. Check for successful HTTP responses (200 status code)
  4. Verify events appear in your Hardal dashboard

Enable verbose logging in debug builds to get detailed information about event tracking and network requests.