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
233 stars 146 forks source link

Not working after Phonegap build #607

Open Zyostes opened 4 years ago

Zyostes commented 4 years ago

When I try to click on a generated link with an APK generated with Phonegap, I am not redirected to the app.

Whereas I try same test with an APK generated with this command :

cordova run android --release -- --keystore=../xxx.keystore --storePassword=xxx --alias=xxx --password=xxx

I am well redirected to the app, the used keystore is the same as Phonegap.

I am using version 3.2.0 of the Plugin and more informations :

PhoneGap (iOS / Android / Windows)
cli-9.0.0 (5.0.1 / 8.0.0 / 7.0.0)
UniBrowse commented 4 years ago

I am experiencing the same issue. Does this plugin support PhoneGap Build? I think the config...

<branch-config>
    <branch-key value="..." />
    <uri-scheme value="..." />
    <link-domain value="..." />
    <ios-team-release value="..." />
</branch-config>

...may require hooks which are not supported by PhoneGap Build.

Any other ideas?

wwannous commented 4 years ago

@UniBrowse did you succeed in building in phonegap build? or did you get an answer on whether this could somehow be used on phonegap build?

UniBrowse commented 4 years ago

@wwannous I haven't been able to get it working yet. I'm hoping either PhoneGap Build will come up with an internal plugin for deep linking support or that the Branch team will implement a version that doesn't rely on hooks. In the meantime I am using cordova-plugin-customurlscheme and then prompting the user to "open in app". You can remember a users decision in localStorage and automatically open in app next time (i.e. auto redirect to the custom urc scheme). It isn't ideal because ios forces an "Open In [AppName]?" prompt every time and there isn't a easy way of knowing if the app is installed but I haven't found a better way yet. Let me know if you have more success.

adrianyg7 commented 3 years ago

Hey @Zyostes please note that PhoneGap Build is marked as incompatible https://help.branch.io/developers-hub/docs/cordova-phonegap-ionic#compiling-incompatibilities