iOS

Configure iOS Over-the-Air (OTA) updates for the Hyperswitch SDK using HyperOTA endpoints and release configurations.

Configuration

  1. Set the HyperOTA Endpoint for Juspay Hyperswitch

    Edit HyperOTA.plist to point to your environment-specific endpoint.

    In your release config.json, ensure the HyperOTA endpoint is correctly defined.

  2. Check the OTAServices.swift file to verify that the release configuration URL is being built correctly.

let payload = [
                "clientId": getHyperOTAPlist("clientId"),
                "namespace": getHyperOTAPlist("namespace"),
                "forceUpdate": true,
                "localAssets": false,
                "fileName": getHyperOTAPlist("fileName"),
                "releaseConfigURL": getHyperOTAPlist(configKey) + 
                 "/mobile-ota/ios/" + SDKVersion.current + "/config.json",
] as [String: Any]

HyperOTAServices(payload: payload, 
                loggerDelegate: logger, 
                baseBundle: Bundle(for: OTAServices.self))

Make sure releaseConfigURL points to the config.json for the correct SDK version and environment.

Example: $baseURL/mobile-ota/ios/${BuildConfig.VERSION_NAME}/config.json

For more information, Airborne

Last updated

Was this helpful?