BranchMetrics / unity-branch-deep-linking-attribution

The Branch Unity SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/apps/unity/
MIT License
118 stars 24 forks source link

Help needed: "Branch Error: Not implemented on this platform" after importing branch.io into our project. #199

Closed FrankdenUijl closed 2 years ago

FrankdenUijl commented 2 years ago

After importing this package into our project and playing (in the editor) the demo scene "BranchSDK_Demo" I got the following error:

ThisIsDuringPlayMode

Where should I look to fix this issue? Any ideas?

Unity version: 2020.3.31f

KarolVG commented 2 years ago

Hey, same problem here, did you figured it out?

FrankdenUijl commented 2 years ago

No, but I'm having contact with support@branch.io but they can't reproduce this issue. Maybe you can help by providing some additional information? What Unity version and how did you import branch.io into your project?

FrankdenUijl commented 2 years ago

Branchio.zip

I have reproduced it with an empty 2020.3.31f project, see the attached .zip file

echo-branch commented 2 years ago

@FrankdenUijl Thanks for the sample project, but I did not see the same error when run on my machine. I'm using Unity 2021.3.4f1 on macOS (m1).

Could you share your development and target platforms? Thank you.

FrankdenUijl commented 2 years ago

I'm on windows 11 with Unity version 2020.3.31f, same Unity version our development team works with. The error pop-up during play mode inside of the editor.

Edition Windows 11 Home Version 21H2 Installed on ‎10-‎3-‎2022 OS build 22000.739 Experience Windows Feature Experience Pack 1000.22000.739.0

The platform is Android.

image

KarolVG commented 2 years ago

I am on windows 10 and my platform is android, still have that problem, also you've asked about how did i import branch, so I just simply import package normally, the latest version of course. :( I can't figure that error out, I have same error on iOS platform, it just doesnt work

rob-gioia-branch commented 2 years ago

Hi, this is Rob from Branch. If you play in the editor, this is expected. Since the Branch SDK relies on Native Components, this error will be displayed when you play in the editor. If you switch platforms to Android/iOS, create a build, and run it on device, you will not see that error in the Android logcat / XCode logs.

TLDR: You can disregard getting this error in the editor. It is coming up because the Branch SDK relies on Native components, and will not occur when actually running a build on device.