Skip to content

Releases: BranchMetrics/react-native-branch-deep-linking-attribution

Release 5.2.1

30 Oct 00:09
Compare
Choose a tag to compare

2021-10-27 Version 5.2.1

Update iOS SDK to 1.40.2

Release 5.2.0

28 Oct 23:14
652eecc
Compare
Choose a tag to compare

2021-10-27 Version 5.2.0

Update iOS SDK to 1.40.1
Update Android SDK to 5.0.14

Release 5.1.0

06 Oct 03:22
ec089aa
Compare
Choose a tag to compare

2021-10-01 Version 5.1.0

Update Androd SDK to 5.0.13
Removes credit related APIs. Feature has been deprecated and the supporting services will be shutdown.

Release 5.0.4

19 Aug 02:22
Compare
Choose a tag to compare

2021-08-16 Version 5.0.4

Update iOS SDK to 1.39.4

Adds support to check the pasteboard for deferred deeplink data. Add checkPasteboardOnInstall to branch.json. The feature is optional and disabled by default.

To enable this feature within the AppDelegate.m, add the following line before the init:
[RNBranch.branch checkPasteboardOnInstall];

Update Android SDK to 5.0.9

Fix initSessionTtl type. Thanks blurrypixeldust!

Fix BranchUniversalObject.generateShortUrl type. Thanks nasmuris!

Release 5.0.3

30 Apr 04:26
Compare
Choose a tag to compare

Update Android SDK to 5.0.8

This update addresses a bug with handling server errors.

Release 5.0.2

22 Apr 23:22
c3e54e2
Compare
Choose a tag to compare

2021-04-16 Version 5.0.2

Requires react-native >= 0.60

Update iOS SDK to 1.39.2

Update Android SDK to 5.0.7

Adds addFacebookPartnerParameter method. See FB documentation on partner parameters for details.

branch.addFacebookPartnerParameter('em', '11234e56af071e9c79927651156bd7a10bca8ac34672aba121056e2698ee7088')

Adds clearPartnerParameter method

branch.clearPartnerParameters()

Adds typescript. Thanks runtrizapps!

Adds enableLogging to the RNBranch class. Thanks jkadamczyk!

Fix issue with Android LATD. Thanks mauryakk15!

Release 5.0.1

04 Feb 16:03
Compare
Choose a tag to compare

Release 5.0.0

27 Aug 16:16
Compare
Choose a tag to compare
  • Requires react-native >= 0.60
  • This release includes Branch native SDKs Android 5.0.3 and iOS 0.35.0.
  • Added RNBranchModule.onNewIntent for Android. This replaces calling setIntent and RNBranchModule.reInitSession.
     @Override
     public void onNewIntent(Intent intent) {
             super.onNewIntent(intent);
             RNBranchModule.onNewIntent(intent);
     }
  • Added cachedInitialEvent Boolean parameter to onOpenStart callback.
  • Improved support of in-app linking via branch.openURL(). The newActivity option for Android was removed.
  • There is a known issue with in-app linking on Android. When opening a link within an app via branch.openURL(), there is no onOpenStart callback and no uri parameter in the onOpenComplete callback. This will be addressed in the next release.
  • Rebuilt testbed_simple, webview_example and browser_example with RN 0.62.2.

Release 5.0.0-rc.1

24 Jul 00:49
Compare
Choose a tag to compare
Release 5.0.0-rc.1 Pre-release
Pre-release
  • Requires react-native >= 0.60
  • This release includes Branch native SDKs Android 5.0.1 and iOS 0.34.0.
  • The onOpenStart function is now called for Universal Links on iOS when
    launched from a link, and the uri parameter is populated in the
    onOpenComplete callback in this case.
  • The return value of branch.subscribe() did not work as an unsubscribe
    function. This has been fixed.
  • Add support for all standard v2 events.
  • Add support for an alias property in Branch v2 events (also known as
    Customer Event Alias).

Release 5.0.0-beta.1

10 Apr 22:28
Compare
Choose a tag to compare
Release 5.0.0-beta.1 Pre-release
Pre-release

For use with react-native >= 0.60

  • This release includes Branch native SDKs Android 5.0.0 and iOS 0.32.0.
  • The branch.subscribe callback now passes a third named parameter, uri,
    which is the URI/URL that originally launched the app. In some cases this
    may be null (e.g. deferred deep links). Consult the ~referring_link,
    +url or +non_branch_link parameter in those cases.
  • You can now be notified when Branch is about to open a link using two
    separate callbacks, onOpenStart and onOpenComplete. The
    onOpenComplete callback is identical with the single callback passed to
    branch.subscribe.
    import branch from 'react-native-branch'

    branch.subscribe({
      onOpenStart: ({uri}) => {
        console.log('Branch will open ' + uri)
      },
      onOpenComplete: ({error, params, uri}) => {
        if (error) {
          console.log('Error from Branch opening ' + uri + ': ' + error)
          return
        }

        console.log('Branch opened ' + uri)
        // handle params
      },
    })

Updating from an earlier version:

iOS

In the AppDelegate, use the following methods:

Obj-C
    - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(nonnull NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
      return [RNBranch application:application openURL:url options:options];
    }

    - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> *restorableObjects))restorationHandler {
      return [RNBranch continueUserActivity:userActivity];
    }
Swift
    func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
      return RNBranch.application(app, open: url, options: options)
    }

    func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
      return RNBranch.continue(userActivity)
    }