cordova-ionic-phonegap-branch-deep-linking-attribution icon indicating copy to clipboard operation
cordova-ionic-phonegap-branch-deep-linking-attribution copied to clipboard

Not working after Phonegap build

Open Zyostes opened this issue 5 years ago • 4 comments

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)

Zyostes avatar Nov 29 '19 22:11 Zyostes

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?

UniBrowse avatar Dec 03 '19 14:12 UniBrowse

@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?

wwannous avatar Mar 08 '20 21:03 wwannous

@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.

UniBrowse avatar Mar 09 '20 07:03 UniBrowse

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

adrianyg7 avatar May 15 '21 00:05 adrianyg7