iOS
Configuration
Set the HyperOTA Endpoint
Edit
HyperOTA.plistto point to your environment-specific endpoint.In your release
config.json, ensure the HyperOTA endpoint is correctly defined.- Check the
OTAServices.swiftfile 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