iOS SDK - Initialization modes
The SDK has three initialize() overloads. Use exactly one.
Info
Contact Aurion11 to receive your host URLs and, if you use static or hybrid initialization, your configuration JSON.
Remote
The standard setup: the SDK fetches its config from your host URLs. See Installation.
Static
Use when your app has no backend config endpoint, or you don't expect config changes from the backend. The SDK uses only the JSON config you pass and never fetches a remote config.
Hybrid
Use when you want ads available immediately, without waiting for a config fetch. The SDK starts from the seed config you pass and switches to the remote config from hostURLs once it's fetched.
A11.shared.initialize(appKey: "YOUR_APP_KEY", hostURLs: ["https://your-host-url.com"], staticConfig: "STATIC_JSON_CONFIG")
Host URLs
The SDK uses only the host of each URL and ignores any path. If you pass several host URLs, the SDK tries them in order and uses the first one that responds.
Caution
Host URLs must use the HTTPS scheme, for example https://your-host-url.com.