Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeLink not working: Never saw 'Content Copied' or 'pasted from Safari' #394

Open
feifei-duan opened this issue Nov 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@feifei-duan
Copy link

feifei-duan commented Nov 29, 2024

Describe the bug
I enabled the NativeLink on Branch dashboard for my Flutter project but NativeLink didn't work. And I never saw 'Content Copied' or 'pasted from Safari'. (Note that my IOS deeplink works fine in all other cases.)

I checked the box to enable NativeLink on Branch dashboard configuration page with audience set to 'All IOS traffic'. Then I tried to generate and click on a deeplink, but it doesn't show the NativeLink template view automatically. It was still showing the passive default deepview briefly and then automatically opened testflight because I set the Android redirect URL on Branch dashboard to be my testflight link (my app is only available on testflight).
Screenshot 2024-11-29 at 3 37 25 PM

Then I tried to manually enable the NativeLink template deepview using branch dashboard deepview manager (by clicking on 'enabled' button on the bottom right corner of the screenshot above). Now after clicking on the deeplink, I can see the NativeLink template view getting displayed. But after I click on the 'Get the app' button, it didn't show 'Content Copied' as what was described on Branch documentation. It did redirect me to Testflight. After I install the app, I also didn't get any prompt like 'pasted from Safari' as suggested in Branch documentation. After opening the app, FlutterBranchSdk.listSession().listen receives is_first_session: true, clicked_branch_link: false. Also tried using getFirstReferredparams but got an empty result.

See the screenrecordings here. (Privately shared with rodrigosmarques@gmail.com).

To Reproduce
Steps to reproduce the behavior:

  1. Make sure to use an IOS device (15+) with Safari brower as the default brower, and with icloud + and private relay enabled.
  2. Make sure the app is not installed.
  3. Make sure no deepview is manually enabled on branch dashboard deepview manager.
  4. Check the box to enable NativeLink on Branch dashboard. Set the audience to All IOS traffic.
  5. On branch dashboard, set the Android redirects when app is not installed to be a custom URL. In my case, I used the testflight link of my app (https://testflight.apple.com/join/...) on the branch dashboard as my app is only available on testflight.
  6. Generate a short link using FlutterBranchSdk.getShortUrl(...) from a different device. Copy and send the deeplink on iMessage.
  7. Click on the deeplink on iMessage with Safari as the default brower and with private relay enabled.

Expected behavior
I expect that I would be able to receive the deeplink params on the first app install (If the private relay is off or if I were using Chrome, I was able to receive the deeplink params on the first app install).
I also expect I would see 'Content Copied' or 'pasted from Safari' as described in branch documentation.

Screenshots
In the Google doc here.
(Privately shared with rodrigosmarques@gmail.com).

Mobile (Please complete the following information. remove session if not Mobile):

  • Flutter: version: [3.24.3]
  • flutter_branch_sdk version: [8.2.0]
  • OS: I had the same behavior on IOS 16.7.10 and IOS 18.0
  • Device: I had the same behavior on IPhone 8 (IOS 16.7.10) and iPhone 11 (IOS 18.0).
@feifei-duan feifei-duan added the bug Something isn't working label Nov 29, 2024
@RodrigoSMarques
Copy link
Owner

@feifei-duan

This package calls Branch Native SDK functions on each platform.

According to what was reported (If the private relay is off or if I were using Chrome, I was able to receive the deeplink params on the first app install)., the problem is not in the Flutter Plugin, but in the Native SDK or some Dashboard configuration.

Open a support ticket for Branch at the link or open an issue in the platform repository:

@feifei-duan
Copy link
Author

Thank you for the response! Just curious, are you able to reproduce this issue when the private relay is on and NativeLink is enabled? I am wondering if the issue only exists for my setup / Flutter projects only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants