mobile bluesky app made with flutter lazurite.stormlightlabs.org/
mobile bluesky flutter
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use in app webview for android

+9 -3
+4 -1
lib/features/auth/data/auth_repository.dart
··· 815 815 } 816 816 817 817 return switch (platform) { 818 - TargetPlatform.android || TargetPlatform.iOS => LaunchMode.inAppBrowserView, 818 + // Keep Android OAuth in-process so the temporary loopback callback listener 819 + // is not vulnerable to background process reclamation during auth redirects. 820 + TargetPlatform.android => LaunchMode.inAppWebView, 821 + TargetPlatform.iOS => LaunchMode.inAppBrowserView, 819 822 _ => LaunchMode.externalApplication, 820 823 }; 821 824 }
+5 -2
test/features/auth/data/auth_repository_test.dart
··· 367 367 }); 368 368 369 369 group('oauth browser launch mode', () { 370 - test('uses in-app browser view on mobile', () { 370 + test('uses in-app browser view on iOS', () { 371 371 expect( 372 372 AuthRepository.oauthLaunchModeForTest(isWeb: false, platform: TargetPlatform.iOS), 373 373 equals(LaunchMode.inAppBrowserView), 374 374 ); 375 + }); 376 + 377 + test('uses in-app web view on Android', () { 375 378 expect( 376 379 AuthRepository.oauthLaunchModeForTest(isWeb: false, platform: TargetPlatform.android), 377 - equals(LaunchMode.inAppBrowserView), 380 + equals(LaunchMode.inAppWebView), 378 381 ); 379 382 }); 380 383