Skip to content

Commit b48f6b5

Browse files
authored
Merge pull request #901 from OneSignal/fix/remove_alert_for_launch_urls
Remove alert for launch URLs
2 parents 8e0e286 + 319d556 commit b48f6b5

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)