RodrigoSMarques / flutter_branch_sdk

Flutter Plugin for create deep link using Branch Metrics SDK. This plugin provides a cross-platform (iOS, Android, Web).
https://branch.io
MIT License
100 stars 90 forks source link

Allow Call `setRequestMetadata` after `FlutterBranchSdk.init()` method #297

Closed chenbokun97 closed 8 months ago

chenbokun97 commented 8 months ago

Describe the bug When we trying to update a request metadata key after initialing brach sdk, it throws this error. I've checked the code in flutter branch sdk, it asserts that this function are supposed to be called before init While when I saw the implementation in native side, both support to call setRequestMetadata after init

To Reproduce call await FlutterBranchSdk.init() call FlutterBranchSdk.setRequestMetadata()

Expected behavior should set request metadata successfully, or provide another api to update the metadata. Thanks.

Smartphone:

RodrigoSMarques commented 8 months ago

Fixed in version 7.1.0