Flutter Bridge 1.7.0
2 months ago by Matteo Melis
Updated Android and iOS Apps Panel SDKs to 5.7.0
- See https://appspanel.readme.io/changelog/android-sdk-570 and https://appspanel.readme.io/changelog/ios-sdk-570
Push Permission Request
- Deprecated
Future<void> AppsPanel.requestPushPermisssion() - Added
Future<bool> AppsPanel.requestPushPermissionWithResult()which returns whether the permission was granted or not
⚠️ Breaking changes ⚠️
- The
MainActivityof the android app needs to extend aComponentActivity, this is usually done through extendingFlutterFragmentActivity- This is because the new
requestPushPermissionWithResult()requires aComponentActivity - Not doing this will lead to a crash at runtime when calling this function
- This is because the new
Datadog log module
- Added functions in
AppsPanel.logManagerto add and remove tags
Interstitial
- Added
AppsPanel.interstitialManagerwith a.showInterstitial()function to manually show an interstitial
Various updates
flutter3.19.3->3.41.2(This doesn't change the minimum required version to use the package)flutter_lints^2.0.1->^6.0.0Gradle7.4->8.14.4AGP7.3.1->8.13.0Kotlin1.7.20->2.3.10
Push Notifications Clicked Data
- A new
pushClickedDataStreamhas been added inAppsPanel.pushManager, it will emit aMap<String, dynamic>every time a notification without aurl_redirectis clicked while the app is in the foreground - On android the setup is automatic, however on iOS you need to add a few lines in the
AppDelegate- First you need to instantiate and store inside the
AppDelegatean instance ofPushManager
pushManager = PushManager(appDelegate: self)- You need to add this override in the
AppDeleate
override func userNotificationCenter( _ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void ) { if response.notification.request.content.userInfo["url_redirect"] == nil { pushManager?.addPushClickedData(response.notification.request.content.userInfo) } } - First you need to instantiate and store inside the
Remote Configuration
Remote ConfigurationAppsPanel.apRemoteConfigurationStreamandAppsPanel.remoteConfigurationhave been added to retrieve the remote configuration of the SDK (and potential parameters)
Misc
- A
x-ap-bridgeversionheader has been added to all API and SDK requests, with the version of the bridge
