Skip to content

Commit 319d556

Browse files
committed
removing alert for launchURLs
This alert was not desired by customers and was causing issues where the alert could be dismissed automatically on app open by customer code.
1 parent 25ad794 commit 319d556

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignalHelper.m

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -868,19 +868,7 @@ + (void)displayWebView:(NSURL*)url {
868868
});
869869
}];
870870
};
871-
872-
if (url) {
873-
let message = NSLocalizedString(([NSString stringWithFormat:@"Would you like to open %@://%@", url.scheme, url.host]), @"Asks whether the user wants to open the URL");
874-
let title = NSLocalizedString(@"Open Website?", @"A title asking if the user wants to open a URL/website");
875-
let openAction = NSLocalizedString(@"Open", @"Allows the user to open the URL/website");
876-
let cancelAction = NSLocalizedString(@"Cancel", @"The user won't open the URL/website");
877-
878-
[[OneSignalDialogController sharedInstance] presentDialogWithTitle:title withMessage:message withActions:@[openAction] cancelTitle:cancelAction withActionCompletion:^(int tappedActionIndex) {
879-
openUrlBlock(tappedActionIndex > -1);
880-
}];
881-
} else {
882-
openUrlBlock(true);
883-
}
871+
openUrlBlock(true);
884872
}
885873

886874
+ (void)runOnMainThread:(void(^)())block {

0 commit comments

Comments
 (0)