Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 673d3eb

Browse files
committed
Remove browser exception
1 parent 9989ab0 commit 673d3eb

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,6 @@ - (BOOL)application:(UIApplication*)application
221221
restorationHandler:restorationHandler]) {
222222
return YES;
223223
}
224-
if (userActivity.activityType == NSUserActivityTypeBrowsingWeb) {
225-
return NO;
226-
}
227224
return [self openURL:userActivity.webpageURL];
228225
}
229226

shell/platform/darwin/ios/framework/Source/FlutterAppDelegateTest.mm

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,6 @@ - (void)testLaunchUrlWithFragmentNoQueryParameter {
123123

124124
#pragma mark - Deep linking
125125

126-
- (void)testUniversalLinkWebBrowserUrl {
127-
OCMStub([self.mockMainBundle objectForInfoDictionaryKey:@"FlutterDeepLinkingEnabled"])
128-
.andReturn(@YES);
129-
130-
NSUserActivity* userActivity =
131-
[[NSUserActivity alloc] initWithActivityType:NSUserActivityTypeBrowsingWeb];
132-
userActivity.webpageURL = [NSURL URLWithString:@"http://myApp/custom/route?query=test"];
133-
BOOL result = [self.appDelegate
134-
application:[UIApplication sharedApplication]
135-
continueUserActivity:userActivity
136-
restorationHandler:^(NSArray<id<UIUserActivityRestoring>>* __nullable restorableObjects){
137-
}];
138-
XCTAssertFalse(result);
139-
OCMReject([self.mockNavigationChannel invokeMethod:OCMOCK_ANY arguments:OCMOCK_ANY]);
140-
}
141-
142126
- (void)testUniversalLinkPushRoute {
143127
OCMStub([self.mockMainBundle objectForInfoDictionaryKey:@"FlutterDeepLinkingEnabled"])
144128
.andReturn(@YES);

0 commit comments

Comments
 (0)