diff --git a/BranchUnityTestBed/Assets/Branch/Branch.cs b/BranchUnityTestBed/Assets/Branch/Branch.cs index 0cb319d..f4663f8 100644 --- a/BranchUnityTestBed/Assets/Branch/Branch.cs +++ b/BranchUnityTestBed/Assets/Branch/Branch.cs @@ -148,6 +148,14 @@ public static void setIdentity(string userId) { _setIdentity(userId); } + /** + * Specifiy a Facebook ID for the current session. + */ + public static void setFBAppID(string facebookAppID) + { + _setFBAppID(facebookAppID); + } + /** * Specifiy an identity for the current session and receive information about the set. */ @@ -456,6 +464,10 @@ private static void _resetUserSession() { private static void _setIdentity(string userId) { BranchAndroidWrapper.setIdentity(userId); } + + private static void _setFBAppID(string facebookAppID){ + BranchAndroidWrapper.setFBAppID(facebookAppID); + } private static void _setIdentityWithCallback(string userId, string callbackId) { BranchAndroidWrapper.setIdentityWithCallback(userId, callbackId); @@ -527,6 +539,8 @@ private static void _generateBranchQRCode(string universalObject, string linkPro #else + private static void _setFBAppID(string facebookAppID){ } + private static void _setBranchKey(string branchKey, string sdkVersion) { } private static void _initSessionWithCallback(string callbackId) { diff --git a/BranchUnityTestBed/Assets/Branch/BranchAndroidWrapper.cs b/BranchUnityTestBed/Assets/Branch/BranchAndroidWrapper.cs index 0a34f7a..e51c599 100644 --- a/BranchUnityTestBed/Assets/Branch/BranchAndroidWrapper.cs +++ b/BranchUnityTestBed/Assets/Branch/BranchAndroidWrapper.cs @@ -57,6 +57,14 @@ public static void setIdentity(string userId) { _getBranchClass().CallStatic("setIdentity", userId); }); } + + //INTENG-20830 + public static void setFBAppID(string facebookAppID) + { + _runBlockOnThread(() => { + _getBranchClass().CallStatic("setFBAppID", facebookAppID); + }); + } public static void setIdentityWithCallback(string userId, string callbackId) { _runBlockOnThread(() => {