Skip to content

Commit 5c5f313

Browse files
committed
SDK-1831 Ignore lifecycle events until plugin runtime starts and sets a callback
1 parent be4d651 commit 5c5f313

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

BranchSDK/Branch.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,6 +2182,13 @@ - (void)initSafetyCheck {
21822182
}
21832183

21842184
- (void)initUserSessionAndCallCallback:(BOOL)callCallback sceneIdentifier:(NSString *)sceneIdentifier {
2185+
// Ignore lifecycle calls while init is deferred to a plugin runtime.
2186+
if (self.deferInitForPluginRuntime) {
2187+
//NSString *debug = [NSString stringWithFormat:@"Init is deferred, ignoring call: %@", NSThread.callStackSymbols];
2188+
//BNCLogDebug(debug);
2189+
return;
2190+
}
2191+
21852192
dispatch_async(self.isolationQueue, ^(){
21862193
NSString *urlstring = nil;
21872194
if (self.preferenceHelper.universalLinkUrl.length) {

0 commit comments

Comments
 (0)