Skip to content

Commit 635594a

Browse files
committed
remove set launch urls in app
1 parent ab336cd commit 635594a

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

MIGRATION_GUIDE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ The SDK is still accessible via a `OneSignal` static class. It provides access t
171171

172172
| `OneSignal.consentGiven(true);` | *Sets whether a user has consented to privacy prior to their user data being sent up to OneSignal. * |
173173

174-
| `OneSignal.setLaunchURLsInApp(true);` | *(iOS only) This method can be used to set if launch URLs should be opened in safari or within the application. Set to `true` to launch all notifications with a URL in the app instead of the default web browser. Make sure to call `setLaunchURLsInApp` before the `initialize` call.* |
175-
176174

177175
## Live Activities
178176

example/lib/main.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ class _MyAppState extends State<MyApp> {
102102
print("ON DID DISMISS IN APP MESSAGE ${event.message.messageId}");
103103
});
104104

105-
// iOS-only method to open launch URLs in Safari when set to false
106-
OneSignal.setLaunchURLsInApp(false);
107-
108105
this.setState(() {
109106
_enableConsentButton = _requireConsent;
110107
});

ios/Classes/OneSignalPlugin.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
8383
[self setConsentRequired:call withResult:result];
8484
else if ([@"OneSignal#consentGiven" isEqualToString:call.method])
8585
[self setConsentGiven:call withResult:result];
86-
else if ([@"OneSignal#setLaunchURLsInApp" isEqualToString:call.method])
87-
[self setLaunchURLsInApp:call withResult:result];
8886
else
8987
result(FlutterMethodNotImplemented);
9088
}
@@ -122,12 +120,4 @@ - (void)setConsentRequired:(FlutterMethodCall *)call withResult:(FlutterResult)r
122120
result(nil);
123121
}
124122

125-
#pragma mark Launch Urls In App
126-
127-
- (void)setLaunchURLsInApp:(FlutterMethodCall *)call withResult:(FlutterResult)result{
128-
BOOL launchUrlsInApp = [call.arguments[@"launchUrlsInApp"] boolValue];
129-
[OneSignal setLaunchURLsInApp:launchUrlsInApp];
130-
result(nil);
131-
}
132-
133123
@end

lib/onesignal_flutter.dart

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,4 @@ class OneSignal {
9090
return await _channel
9191
.invokeMethod("OneSignal#consentRequired", {'required': require});
9292
}
93-
94-
/// This method can be used to set if launch URLs should be opened in safari or
95-
/// within the application. Set to true to launch all notifications with a URL
96-
/// in the app instead of the default web browser. Make sure to call setLaunchURLsInApp
97-
/// before the initialize call.
98-
static Future<void> setLaunchURLsInApp(bool launchUrlsInApp) async {
99-
if (Platform.isIOS) {
100-
return await _channel.invokeMethod(
101-
'OneSignal#setLaunchURLsInApp', {'launchUrlsInApp': launchUrlsInApp});
102-
}
103-
}
10493
}

0 commit comments

Comments
 (0)