BranchMetrics / cordova-ionic-phonegap-branch-deep-linking-attribution

The Branch Cordova Ionic Phonegap 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/cordova-phonegap-ionic/
MIT License
234 stars 144 forks source link

Incompatible block pointer types #687

Closed SamuelMichelRiad closed 3 years ago

SamuelMichelRiad commented 3 years ago

Hi all,

I'm getting the following error when compiling for iOS:

Incompatible block pointer types sending 'void (^)(BranchLastAttributedTouchData _Nullable __strong)' to parameter of type 'void (^ _Nonnull)(BranchLastAttributedTouchData _Nullable __strong, NSError * _Nullable __strong)'

The plugin version is 4.2.3. Any ideas?

Screen Shot 2021-05-02 at 1 32 20 AM
echo-branch commented 3 years ago

Thanks for the heads up. Working on a fix.

This is what that line should have been.

[branch lastAttributedTouchDataWithAttributionWindow:30 completion:^(BranchLastAttributedTouchData * _Nullable latd, NSError * _Nullable error) {
echo-branch commented 3 years ago

This should be fixed in the 4.2.4 patch release.