iOS SDK 5.6.0
about 2 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
textManagerDidUpdateTexts
delegate.
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
sessionID
field is now non-nullable for KPI tracking.
Dependencies upgrades
DatadogCore
2.14.1
→2.26.0
DatadogLogs
2.14.1
→2.26.0
BlueRSA
1.0.200
→1.0.203
Sourcery
2.2.5
→2.2.6