Skip to content

Commit 666bb42

Browse files
committed
Fixed cast compile warning.
1 parent 87c9a13 commit 666bb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignal/OneSignalHelper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ + (void)registerAsUNNotificationCenterDelegate {
486486

487487
UNUserNotificationCenter *curNotifCenter = [UNNofiCenterClass currentNotificationCenter];
488488
if (!curNotifCenter.delegate)
489-
curNotifCenter.delegate = [self sharedInstance];
489+
curNotifCenter.delegate = (id)[self sharedInstance];
490490
}
491491

492492
+ (id)prepareUNNotificationRequest:(NSDictionary *)data :(NSDictionary *)userInfo {

0 commit comments

Comments
 (0)