iOS SDK 5.6.0
6 months ago by Théo Cauffour
Notification Service
- Added the handle of a notification service extension to retrieve push notification statistics even when the app is killed or in the background.
import UserNotifications
import AppsPanelSDK
class NotificationService: AppsPanelNotificationServiceExtension {
override func getAppsPanelConfiguration() -> (appName: String, appKey: String, privateKey: String)? {
return ("appName", "appKey", "privateKey")
}
}Multi-Configuration Support
- Introduced support for multiple SDK configurations within the same application.
- Enables use of different API setups simultaneously.
Text Manager
- Added
textManagerDidUpdateTextsdelegate.
class AppDelegate: UIResponder, UIApplicationDelegate, TextManagerDelegate {
func textManagerDidUpdateTexts() {
print("Texts updated!")
}
}- Notifies the app when texts have been updated dynamically from the SDK.
Optional JWT
- JWT token is now optional to send in a request. Still sent by default.
RequestManager.default
.request("users", method: .get, parameters: ["id": 1234])
.disableJWTAuthorization()
.responseData { result in
switch result {
case .success(let response):
print(response.data)
case .failure(let error):
print(error)
}
}KPIs
sessionIDfield is now non-nullable for KPI tracking.
Dependencies upgrades
DatadogCore2.14.1→2.26.0DatadogLogs2.14.1→2.26.0BlueRSA1.0.200→1.0.203Sourcery2.2.5→2.2.6