iOS SDK 5.2.0 is out!

Changelog

Misc.

  • Changed: SwiftJWT has been updated to the latest version.
  • Changed: The default urls of the configuration changed with new domain names.
  • Fixed: Device info are now sent when the values changed. Beforehand, after the first sending, all the following ones where skipped. This could lead to a malfunction of server-side features.

Push notifications

  • Added: Auto configuration has been implemented.
  • Changed: The device token is now refreshed when the app enters foreground. The token is send to the server if the token or the authorization status changed. The token is now always sent when the authorization status is .denied.
  • Fixed: In some cases, the sent authorization status was wrong.

Text Manager

  • Changed: The text manager no longer relies on device's locale (Locale.current). It now uses Bundle.main.preferredLocalizations.
  • Added: You can force the use of a language. It will be maintained for the next launches and until you decide to reset it to the default language (the system language).
  • Deprecated: setLocale(_:, default:) has been deprecated. If you want to force the language of the text manger, use forceLanguage(_:).

Requests

  • Added: You can now send requests with form data.
  • Added: X-AP-SessionID has been added to the headers' requests.
  • Added: X-AP-AppID has been added to the headers' requests.
  • Changed: The value of the Accept-Language header changed to the text manager's language. Previously, it used Locale.current.

Stats

  • Fixed: Session's id could be null in KPIs.