Skip to content

Commit 5175ed7

Browse files
committed
Fix check forwarding on instance not self
1 parent 05caed9 commit 5175ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignalSDK/Source/UNUserNotificationCenter+OneSignal.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ + (BOOL)forwardNotificationWithCenter:(UNUserNotificationCenter *)center
210210
OneSignalCenter:(id)instance
211211
completionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler {
212212
SwizzlingForwarder *forwarder = [[SwizzlingForwarder alloc]
213-
initWithTarget:self
213+
initWithTarget:instance
214214
withYourSelector:@selector(
215215
onesignalUserNotificationCenter:willPresentNotification:withCompletionHandler:
216216
)

0 commit comments

Comments
 (0)