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

Deferred deep linking isn't working with Facebook app install ads #542

Open sean-browze opened 5 years ago

sean-browze commented 5 years ago

Having an issue with my Ionic 3 app and getting deferred deep link data from a Facebook App Install Ad. When I click on an App Install Ad and my app isn't installed, I get sent to the app store and download the app. When I open the app for the first time, I get no Branch deep link data.

To reproduce:

  1. Clone your Ionic 3 example here
  2. Build for Android and iOS
  3. Create an App Install Add and click it when the app isn't installed on your phone, you'll see no data from Branch when the app opens for the first time. It works fine if the app is already installed. (You can use Facebooks app ads helper to send a deferred deep link to your device if you'd like)

I believe this post is describing the same issue except they're using the Android SDK. It seems that the iOS and Android SDKs have methods available to fix this issue but the Cordova SDK doesn't.

Android has enableFacebookAppLinkCheck. iOS has registerFacebookDeepLinkingClass(FBSDKAppLinkUtility.self).

I think we need these methods available within the Cordova SDK?

sequoiaat commented 5 years ago

@sean-browze Currently we think it not there in Cordova, but we will reproduce this exactly and revert back

sean-browze commented 5 years ago

@sequoiaat do we have a time frame on this?

In the mean time, I need to use the Facebook SDK method facebookConnectPlugin.getDeferredApplink() which returns myapp://open?link_click_id=link-xxxxxxxxxxxxxxxxxx. How do I get deep link data from that url in my app? There's no API call to be able to look up a link by ID.

sequoiaat commented 5 years ago

@sean-browze We created a Facebook ad account to test the fix. We will update you and release it as soon as we test it.

DaniShalash commented 5 years ago

Any updates about this? This issue practically renders Branch links in Facebook Ads invaluable. We need either a way to fetch link data(as @sean-browze stated), or to add enableFacebookAppLinkCheck functionality in the cordova sdk.

DaniShalash commented 5 years ago

Turned out there's an API