Closed eternitybro closed 5 years ago
@robgungor Please check if these step help you resolve the problem -
Rebuild the Branch SDK. There is a chance the .h
and .m
files were not installed the first time /plugin/branch-crodova-sdk/src/ios
((https://stackoverflow.com/questions/16839110/error-plugin-not-found-or-is-not-a-cdvplugin-check-your-plugin-mapping-in))
There are two ways to install Branch plugin
<plugin name="branch-cordova-sdk" spec="^3.1.5" />
to your config.xml
and then run $ ionic cordova run iosionic cordova plugin add branch-cordova-sdk' which injects
into your
config.xml` and then installs Branchlet us know if this is resolving your issue
@sequoiaat no - please re-read my first entry, I mentioned that I had tried both methods with no success. I've just tried both methods again with no success. :/
We were not able to reproduce similar situation, could you please specify your XCode version also.
It’s working now using
declare var Branch
Instead of
import {BranchIo}
Ionic should remove that documentation from their site as it’s not working.
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 and
npm install @ionic-native/branch-io@latest
andnpm install @ionic-native/branch-io
Everytime I've removed and added the ios platform.
I still get this runtime error.
I've tried using:
import { BranchIo } from '@ionic-native/branch-io/ngx'
withvs
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!