From b5654cb87d94f90bf8b7287ea3616971af116370 Mon Sep 17 00:00:00 2001 From: Ethan Neff Date: Fri, 18 Nov 2016 15:36:35 -0800 Subject: [PATCH] docs: 7c's for disable listener warning --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 698b2d67..9be1ec18 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ - [Link Domain: Custom](#link-domain-custom) - [Link Domain: Bnc.lt](#link-domain-bnclt) - [Link Data: Convert to Ionic/Angular](#link-data-convert-to-ionicangular) - - [Link Data: Depreciated Methods](#link-data-depreciated-methods) + - [Link Data: Global Listener Warning](#link-data-global-listener-warning) - [Compiling: Updating the Branch SDK](#compiling-updating-the-branch-sdk) - [Compiling: Cordova Dependencies](#compiling-cordova-dependencies) - [Compiling: Visual Studio TACO](#compiling-visual-studio-taco) @@ -982,11 +982,11 @@ ``` -- #### Link Data: Depreciated Methods +- #### Link Data: Global Listener Warning - - Before version `2.4.0`, Branch used globally defined listeners to pass events generated by clicking on links outside your cordova app into it. To make this behavior more explicit, we've shifted to event listeners passed to the branch object via the branch.initSession(onBranchLinkHook) and branch.onNonBranchLink(hook). If you don't want to use these new methods and instead prefer the old global hooks without seeing warnings, call branch.disableGlobalListenersWarning(). + - After Branch SDK `2.4.0`, deep link data is handled within `Branch.initSession(DeepLinkDataFunction);` - - `branch.disableGlobalListenersWarnings();` turns off warnings about using global listeners. + - Use `Branch.disableGlobalListenersWarnings();` to turn off the warning errors generated from `DeepLinkHandler` and `NonBranchLinkHandler` - #### Compiling: Updating the Branch SDK