Skip to content

Commit cf58034

Browse files
committed
Fixing OneSignalDialogInstanceManager getting the wrong OneSignalDialogController
1 parent b44161d commit cf58034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignal.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ + (void)load {
828828
[[OSMigrationController new] migrate];
829829
sessionLaunchTime = [NSDate date];
830830

831-
[OSDialogInstanceManager setSharedInstance:[OneSignalDialogController new]];
831+
[OSDialogInstanceManager setSharedInstance:[OneSignalDialogController sharedInstance]];
832832
}
833833

834834
/*

iOS_SDK/OneSignalSDK/Source/OneSignalDialogController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
NS_ASSUME_NONNULL_BEGIN
3333

3434
@interface OneSignalDialogController : NSObject <UIAlertViewDelegate, OSDialogPresenter>
35-
35+
+ (instancetype _Nonnull)sharedInstance;
3636
@end
3737

3838
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)