File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ static class BranchLinkProperties extends io.branch.referral.util.LinkProperties
44
44
45
45
// Standard Debugging Variables
46
46
private static final String LCAT = "CordovaBranchSDK" ;
47
+ // todo pick up plugin version dynamically
48
+ private static final String BRANCH_PLUGIN_VERSION = "4.0.1" ;
47
49
48
50
// Private Method Properties
49
51
private ArrayList <BranchUniversalObjectWrapper > branchObjectWrappers ;
@@ -73,6 +75,7 @@ protected void pluginInitialize() {
73
75
this .activity = this .cordova .getActivity ();
74
76
Branch .disableInstantDeepLinking (true );
75
77
BranchUtil .setPluginType (BranchUtil .PluginType .CordovaIonic );
78
+ BranchUtil .setPluginVersion (BRANCH_PLUGIN_VERSION );
76
79
if (this .instance == null ) {
77
80
this .instance = Branch .getAutoInstance (this .activity .getApplicationContext ());
78
81
}
Original file line number Diff line number Diff line change 1
1
#import " BranchSDK.h"
2
2
3
+ NSString * const pluginVersion = @" 4.0.1" ;
4
+
3
5
@interface BranchSDK ()
4
6
5
7
@property (strong , nonatomic ) NSString *deepLinkUrl;
@@ -77,6 +79,7 @@ - (void)continueUserActivity:(CDVInvokedUrlCommand*)command
77
79
78
80
- (void )initSession : (CDVInvokedUrlCommand*)command
79
81
{
82
+ [[Branch getInstance ] registerPluginName: " CordovaIonic" versio: pluginVersion];
80
83
[[Branch getInstance ] initSessionWithLaunchOptions: nil andRegisterDeepLinkHandler: ^(NSDictionary *params, NSError *error) {
81
84
82
85
NSString *resultString = nil ;
You can’t perform that action at this time.
0 commit comments