-
Notifications
You must be signed in to change notification settings - Fork 145
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
BranchSDK not found #356
Comments
Hello, Depending on how old your last version of the Cordova Branch SDK, you might need to follow this guide to reinstall Branch (we had an SDK package name rename last year). Thanks, |
Thanks for the reply @ethanneff, I did all these steps. Everything compiles great and it builds, but when I deploy my app to my phone I see the errors above. Before I get those errors I see the following on startup in the console of xcode: in config.xml: Here is a list of my plugins: |
Hello again, Are you getting errors whenever you run Branch methods? For example, are you able to successfully generate a Branch deep link within your app? (https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking#create-deep-link) I ask because it seems like the Branch SDK is successfully loaded into your app: Your logs: (0.038981ms)
My logs: (0.603974ms)
I have a feeling the first error you are getting is a race condition, but the Branch SDK is eventually being loaded into your app. |
@ethanneff I tried with the latest code and am still seeing the issue. I am getting the error multiple time so I don't think the branch SDK is ever loading. The first time I see that error does seem like a race condition where it doesn't load, but then on ready i run Branch.init and it still says the plugin is not found. |
Anyone with insights on the issue, I have not been able to get this to work and the current version of the branch plugin I am using is crashing on the devices of some of our users so I'd like to figure out a path forward for us. |
Hello again, I am still unable to reproduce this on my end. However, I was able to look around the internet and found some possible solutions:
Thanks, |
Hello, I am having the same issue. I do not understand update guide -> https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking#compiling-updating-the-branch-sdk , you posted earlier in this thread. Shoudln't I run "ionic cordova plugin add branch-cordova-sdk" ? If not, how should I install the plugin? Thank you. |
The Branch SDK is installed from You should not have to install the Branch SDK from Thanks, |
@ethanneff Can you provide exact steps for the installation of Branch SDK for an Ionic project? As per your previous comment, we should not run the command But In the another post Adding plugin issue in the same week, you have written steps like
So I am confused with what is the correct and better flow installation of the Branch SDK integration in the Ionic project. If you can provide some more details on installation it will be great. |
Hello @HardikDG, Yes, there are two ways to install Branch:
Both options will work, but I don't recommend the 2nd option because Branch used to be installed via For Ionic projects, generally the best way to integrate Branch is from the Getting Started Guide on the Readme. Thanks, |
Okay, Thanks for the quick reply. I have tried with the first option and it is working properly as expected. For the knowledge, If I use the second method Branch will take the |
Glad you got it working! You are correct, everything is pulled from the config.xml now. |
I'm using ionic v4 I'm also receiving a runtime error from XCode:
Everything compiles fine but none of the branch functions work. I've tried adding the plugin only in config.xml (as specified in the docs). I've also tried using
as specified in the Ionic docs Everytime I've removed and added the ios platform.
I still get this runtime error. I've tried using:
vs
I'm worried about manually copying files over to XCode because if I add/remove the platform in the future I'll have to keep copying over a hack. Here's my config.xml:
Hellllllp! |
Sounds similar for me. The latest cordova, cordova-ios, completely fresh new project craeted from Bitrise pipeline
|
@kleeb Please open a new ticket for your issue. It's likely different from the old closed issue. |
I recently updated to the latest branch sdk and now none of my branch links work. As I was playing with it I got the following error in xcode:
2017-08-16 20:49:23.238643+0200 Zently[3020:1033056] CDVPlugin class BranchSDK (pluginName: BranchSDK) does not exist.
2017-08-16 20:49:23.238727+0200 Zently[3020:1033056] ERROR: Plugin 'BranchSDK' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2017-08-16 20:49:23.238820+0200 Zently[3020:1033056] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = ["BranchSDK1637249983","BranchSDK","initSession",[]]
The text was updated successfully, but these errors were encountered: