How to recover from "Could not resolve host: account.api.here.com" error with SDK 4.15 series of release

It has been observed that with starting from 4.15 series of HERE SDK release, for low connectivity the SDK fails to get initialized and throws

<br />Could not resolve host: account.api.here.com<br />

, in order to overcome this issue, please ask customer to follow:

They need to see in the release notes where we have SDKOptions.offlineMode and we have SDKNativeEngine.offlineMode to change it dynamically (when internet is available)

Following is the snippet to enable the dynamic switch -

<br />At the start you need to set the OfflineMode to true to start the SDK in offline mode SDKOptions sdkOptions = SDKOptions.withAccessKeySecretAndCachePathCacheSizeAndPersistentMapPath(credentials.accessKeyId,credentials.accessKeySecret,cacheSettings.cachePath,cacheSettings.cacheMaxDiskSizeInBytes,persistentMapStoragePath,)..offlineMode = true; And as soon as you are online you should set it back to false SDKNativeEngine.sharedInstance?.isOfflineMode = false;<br />

The permanent fix will be released in 4.15.3 version.