Closed korzonkiee closed 4 months ago
Please do not remove the additional information that is requested when opening the issue, otherwise your issue will be closed due to lack of detailed information.
Which package version? Which operating system version? Which Flutter version?
I ran the test with the sample application and I can't reproduce the problem. Clipboard authorization is only requested during installation.
The print below is the code instruction that requests authorization only during installation
Please do not remove the additional information that is requested when opening the issue, otherwise your issue will be closed due to lack of detailed information.
Which package version? Which operating system version? Which Flutter version?
Hey @RodrigoSMarques, thank you so much for your reply. Sorry for not providing all the details right away.
Smartphone (Please complete the following information. remove session if not platform):
I ran the test with the sample application and I can't reproduce the problem. Clipboard authorization is only requested during installation.
The print below is the code instruction that requests authorization only during installation
Thanks for spending time to investigate this.
I skimmed through the code that you highlighted and it looks to me that this checkPasteboardOnInstall
function gets called every time the app is opened because the application(_:didFinishLaunchingWithOptions:) callback fires upon each app launch. I also verified that by setting a breakpoint in Xcode and launching the app a bunch of times.
Moreover, I checked what does the checkPasteboardOnInstall
function do and it just sets the checkOnInstall
flag to YES
.
So if I understand correctly, every time the app is opened, the Flutter SDK tells the iOS Branch SDK to check the pasteboard.
Regarding your tests — are you sure you copy the link again before opening the app as described in my steps to reproduce section?
When I do the following steps (I do not copy link before opening the app):
Then I am not getting the paste permission popup upon opening the app. See video below:
However, when I do the following steps (I do copy link before opening the app):
Then I am getting the paste permission popup upon opening the app. See video below:
This plugin follows the implementation guidelines of the Branch SDK for checkPasteboardOnInstall, which can be found here
This package calls Branch Native SDK functions on each platform.
The problem reported is not in the Flutter plugin, but in the Native SDK.
I suggest you open issue in the platform repository:
Or open a support ticket for Branch at the link
I just created an issue in the Branch iOS SDK repository: https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/issues/1412.
I will close this one.
Thanks @RodrigoSMarques!
Describe the bug Branch SDK asks for paste permission everytime the app is opened.
To Reproduce Steps to reproduce the behavior:
Expected behavior Branch SDK should only ask for paste permission after app was installed.
Current behavior Branch SDK asks for paste permission everytime the app is opened.
Screenshots