Skip to content

Commit 1418afd

Browse files
committed
fixing the logic for suppress_launch_url
1 parent 159bf07 commit 1418afd

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
@@ -1978,7 +1978,7 @@ + (void)handleNotificationOpened:(NSDictionary*)messageDict
19781978
onesignal_Log(ONE_S_LL_VERBOSE, [NSString stringWithFormat:@"handleNotificationOpened called! isActive: %@ notificationId: %@",
19791979
isActive ? @"YES" : @"NO", messageId]);
19801980

1981-
if ([OneSignal shouldSuppressURL]) {
1981+
if (![OneSignal shouldSuppressURL]) {
19821982
// Try to fetch the open url to launch
19831983
[OneSignal launchWebURL:notification.launchURL];
19841984
}

iOS_SDK/OneSignalSDK/UnitTestApp/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<key>UILaunchStoryboardName</key>
3030
<string>LaunchScreen</string>
3131
<key>OneSignal_suppress_launch_urls</key>
32-
<false/>
32+
<true/>
3333
<key>UIRequiredDeviceCapabilities</key>
3434
<array>
3535
<string>armv7</string>

0 commit comments

Comments
 (0)