Skip to content

[url_launcher] Headers are not been sent on APIs 27 and 30. #61332

@haga-

Description

@haga-

Steps to Reproduce

  1. Run flutter create bug.
  2. Update the files as follows: ...
sample code
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';

// url_launcher: ^5.4.11

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('URL Launcher With Headers'),
      ),
      body: Center(
        child: RaisedButton(
          child: Text('Launch'),
          onPressed: () async {
            final url =
                'https://manytools.org/http-html-text/http-request-headers/';
            if (await canLaunch(url)) {
              await launch(
                url,
                headers: {
                  'Authorization': 'Bearer token',
                  'X-Test': 'test',
                },
              );
            }
          },
        ),
      ),
    );
  }
}

Expected results:
When launching a url with headers, I expect headers to be sent on the request.

Actual results:
Headers are not sent on a few API versions, I tested with the latest 4 APIs. Headers are sent correctly on APIs 28 and 29, but
not on APIs 27 and 30.

As seen on screenshots below:

API 27

api_27

API 28

api_28

API 29

api_29

API 30

api_30

I didn't see any errors on logs, other than /url_launcher-.4.11/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Below, the logs when testing with an emulator on API 30

logs
[  +28 ms] executing: [/home/haga/Development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +43 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 8af6b2f038c1172e61d418869363a28dffec3cb4
[        ] executing: [/home/haga/Development/flutter/] git tag --contains HEAD
[ +299 ms] Exit code 0 from: git tag --contains HEAD
[   +3 ms] 1.17.5
[  +12 ms] executing: [/home/haga/Development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/haga/Development/flutter/] git ls-remote --get-url origin
[   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +98 ms] executing: [/home/haga/Development/flutter/] git rev-parse --abbrev-ref HEAD
[   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +32 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +18 ms] executing: /home/haga/Android/Sdk/platform-tools/adb devices -l
[  +65 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:sdk_gphone_x86 device:generic_x86_arm transport_id:6
[  +17 ms] /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +68 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +168 ms] Found plugin url_launcher at /home/haga/Development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.11/
[  +11 ms] Found plugin url_launcher_macos at /home/haga/Development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+7/
[   +8 ms] Found plugin url_launcher_web at /home/haga/Development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+6/
[ +134 ms] Found plugin url_launcher at /home/haga/Development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.11/
[   +2 ms] Found plugin url_launcher_macos at /home/haga/Development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+7/
[   +4 ms] Found plugin url_launcher_web at /home/haga/Development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+6/
[  +78 ms] Generating
/home/haga/Development/learning/url_launcher_headers/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +37 ms] ro.hardware = ranchu
[  +40 ms] Using hardware rendering with device sdk gphone x86. If you get graphics artifacts, consider enabling software rendering with
           "--enable-software-rendering".
[  +28 ms] Launching lib/main.dart on sdk gphone x86 in debug mode...
[  +11 ms] /home/haga/Development/flutter/bin/cache/dart-sdk/bin/dart
/home/haga/Development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/haga/Development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
-Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tool.KKGOLV/app.dill --packages
/home/haga/Development/learning/url_launcher_headers/.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instr
uctions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
[  +36 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +52 ms] Exit code 0 from: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of system
           07-12 17:45:51.510 D/ConnectivityService(  571): [101 WIFI] validation passed
[  +36 ms] <- compile package:url_launcher_headers/main.dart
[  +19 ms] executing: /home/haga/Android/Sdk/platform-tools/adb version
[   +9 ms] Android Debug Bridge version 1.0.41
           Version 30.0.3-6597393
           Installed as /home/haga/Android/Sdk/platform-tools/adb
[   +3 ms] executing: /home/haga/Android/Sdk/platform-tools/adb start-server
[  +10 ms] Building APK
[  +21 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[   +5 ms] Using gradle from /home/haga/Development/learning/url_launcher_headers/android/gradlew.
[   +2 ms] /home/haga/Development/learning/url_launcher_headers/android/gradlew mode: 33277 rwxrwxr-x.
[  +12 ms] executing: /snap/android-studio/90/android-studio/jre/bin/java -version
[  +99 ms] Exit code 0 from: /snap/android-studio/90/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
           OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode)
[   +6 ms] executing: [/home/haga/Development/learning/url_launcher_headers/android/]
/home/haga/Development/learning/url_launcher_headers/android/gradlew -Pverbose=true -Ptarget-platform=android-x86
-Ptarget=/home/haga/Development/learning/url_launcher_headers/lib/main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1247 ms] > Configure project :app
[   +2 ms] Plugin project :url_launcher_web not found. Please update settings.gradle.
[+2169 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +27 ms] executing: [/home/haga/Development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +46 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 8af6b2f038c1172e61d418869363a28dffec3cb4
[        ] [   +1 ms] executing: [/home/haga/Development/flutter/] git tag --contains HEAD
[        ] [ +334 ms] Exit code 0 from: git tag --contains HEAD
[        ] [   +1 ms] 1.17.5
[        ] [  +13 ms] executing: [/home/haga/Development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/haga/Development/flutter/] git ls-remote --get-url origin
[        ] [   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [ +101 ms] executing: [/home/haga/Development/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +23 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +13 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [ +131 ms] Initializing file store
[        ] [  +23 ms] kernel_snapshot: Starting due to {}
[        ] [  +20 ms] /home/haga/Development/flutter/bin/cache/dart-sdk/bin/dart
/home/haga/Development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/haga/Development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter
-Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instr
uctions --enable-asserts --track-widget-creation --no-link-platform --packages
/home/haga/Development/learning/url_launcher_headers/.packages --output-dill
/home/haga/Development/learning/url_launcher_headers/.dart_tool/flutter_build/7208d9b1339562cd87e10c7da6d942f1/app.dill --depfile
/home/haga/Development/learning/url_launcher_headers/.dart_tool/flutter_build/7208d9b1339562cd87e10c7da6d942f1/kernel_snapshot.d
package:url_launcher_headers/main.dart
[+9382 ms] [+9963 ms] kernel_snapshot: Complete
[+2600 ms] [+2626 ms] debug_android_application: Starting due to {}
[ +199 ms] [ +223 ms] debug_android_application: Complete
[ +900 ms] [ +832 ms] Persisting file store
[        ] [  +13 ms] Done persisting file store
[        ] [   +7 ms] build succeeded.
[        ] [  +14 ms] "flutter assemble" took 13,912ms.
[ +298 ms] > Task :app:packLibsflutterBuildDebug
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :url_launcher:preBuild UP-TO-DATE
[        ] > Task :url_launcher:preDebugBuild UP-TO-DATE
[        ] > Task :url_launcher:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :url_launcher:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:checkDebugManifest
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig
[        ] > Task :app:cleanMergeDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugShaders
[        ] > Task :app:compileDebugShaders
[        ] > Task :app:generateDebugAssets
[  +95 ms] > Task :url_launcher:mergeDebugShaders
[        ] > Task :url_launcher:compileDebugShaders
[        ] > Task :url_launcher:generateDebugAssets
[        ] > Task :url_launcher:packageDebugAssets
[        ] > Task :app:mergeDebugAssets
[ +299 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug
[        ] > Task :app:generateDebugResValues
[        ] > Task :app:generateDebugResources
[        ] > Task :url_launcher:generateDebugResValues
[        ] > Task :url_launcher:compileDebugRenderscript NO-SOURCE
[        ] > Task :url_launcher:generateDebugResources
[  +95 ms] > Task :url_launcher:packageDebugResources
[ +500 ms] > Task :app:createDebugCompatibleScreenManifests
[  +99 ms] > Task :url_launcher:checkDebugManifest
[        ] > Task :app:mergeDebugResources
[        ] > Task :url_launcher:generateDebugBuildConfig
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :url_launcher:processDebugJavaRes NO-SOURCE
[ +198 ms] > Task :app:checkDebugDuplicateClasses
[        ] > Task :url_launcher:processDebugManifest
[  +99 ms] > Task :app:processDebugManifest
[        ] > Task :url_launcher:parseDebugLibraryResources
[        ] > Task :url_launcher:javaPreCompileDebug
[  +98 ms] > Task :app:validateSigningDebug
[        ] > Task :app:signingConfigWriterDebug
[        ] > Task :app:mergeDebugJniLibFolders
[        ] > Task :url_launcher:mergeDebugJniLibFolders
[        ] > Task :url_launcher:prepareLintJarForPublish UP-TO-DATE
[ +498 ms] > Task :url_launcher:mergeDebugResources
[        ] > Task :url_launcher:mergeDebugNativeLibs
[        ] > Task :url_launcher:stripDebugDebugSymbols
[        ] > Task :url_launcher:transformNativeLibsWithIntermediateJniLibsForDebug
[        ] > Task :url_launcher:transformNativeLibsWithSyncJniLibsForDebug
[        ] > Task :url_launcher:generateDebugRFile
[ +698 ms] > Task :app:processDebugResources
[+1300 ms] > Task :url_launcher:compileDebugJavaWithJavac
[        ] > Task :url_launcher:extractDebugAnnotations
[        ] Note:
/home/haga/Development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.11/android/src/main/java/io/flutter/plugins/urllauncher/W
ebViewActivity.java uses or overrides a deprecated API.
[   +1 ms] Note: Recompile with -Xlint:deprecation for details.
[  +97 ms] > Task :url_launcher:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies
[        ] > Task :url_launcher:bundleLibCompileDebug
[+7298 ms] > Task :app:compileDebugKotlin
[        ] > Task :app:mergeExtDexDebug
[        ] > Task :url_launcher:compileDebugSources
[        ] > Task :app:javaPreCompileDebug
[ +398 ms] > Task :app:compileDebugJavaWithJavac
[        ] > Task :app:compileDebugSources
[        ] > Task :url_launcher:mergeDebugJavaResource
[  +98 ms] > Task :url_launcher:transformClassesAndResourcesWithSyncLibJarsForDebug
[        ] > Task :url_launcher:bundleDebugAar
[        ] > Task :url_launcher:bundleLibRuntimeDebug
[ +498 ms] > Task :app:transformClassesWithDexBuilderForDebug
[        ] > Task :url_launcher:assembleDebug
[        ] > Task :url_launcher:bundleLibResDebug
[  +99 ms] > Task :url_launcher:createFullJarDebug
[ +999 ms] > Task :app:mergeDebugJavaResource
[+1000 ms] > Task :app:mergeDebugNativeLibs
[        ] Unable to strip library
'/home/haga/Development/learning/url_launcher_headers/build/app/intermediates/merged_native_libs/debug/out/lib/x86/libflutter.so' due to
missing strip tool for ABI 'X86'. Packaging it as is.
[   +1 ms] Unable to strip library
'/home/haga/Development/learning/url_launcher_headers/build/app/intermediates/merged_native_libs/debug/out/lib/x86_64/libflutter.so' due to
missing strip tool for ABI 'X86_64'. Packaging it as is.
[ +397 ms] > Task :app:stripDebugDebugSymbols
[        ] Compatible side by side NDK version was not found.
[        ] > Task :app:mergeDexDebug
[+5099 ms] > Task :app:packageDebug
[ +100 ms] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 36s
[        ] 60 actionable tasks: 56 executed, 4 up-to-date
[ +377 ms] Running Gradle task 'assembleDebug'... (completed in 37.4s)
[  +38 ms] calculateSha: LocalDirectory: '/home/haga/Development/learning/url_launcher_headers/build/app/outputs/apk'/app.apk
[  +70 ms] calculateSha: reading file took 68us
[ +847 ms] calculateSha: computing sha took 846us
[   +5 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[   +5 ms] executing: /home/haga/Android/Sdk/build-tools/30.0.0/aapt dump xmltree
/home/haga/Development/learning/url_launcher_headers/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +151 ms] Exit code 0 from: /home/haga/Android/Sdk/build-tools/30.0.0/aapt dump xmltree
/home/haga/Development/learning/url_launcher_headers/build/app/outputs/apk/app.apk AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.url_launcher_headers" (Raw: "com.example.url_launcher_headers")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="url_launcher_headers" (Raw: "url_launcher_headers")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.url_launcher_headers.MainActivity" (Raw:
                   "com.example.url_launcher_headers.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: activity (line=70)
                   A: android:theme(0x01010000)=@0x01030007
                   A: android:name(0x01010003)="io.flutter.plugins.urllauncher.WebViewActivity" (Raw:
                   "io.flutter.plugins.urllauncher.WebViewActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
[  +18 ms] Stopping app 'app.apk' on sdk gphone x86.
[   +1 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.url_launcher_headers
[ +230 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.url_launcher_headers
[ +129 ms] package:com.example.url_launcher_headers
[   +3 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell cat
/data/local/tmp/sky.com.example.url_launcher_headers.sha1
[  +70 ms] 87f83f3725a61ed41d64931ccd635d92507c095f
[   +1 ms] Installing APK.
[   +3 ms] executing: /home/haga/Android/Sdk/platform-tools/adb version
[  +10 ms] Android Debug Bridge version 1.0.41
           Version 30.0.3-6597393
           Installed as /home/haga/Android/Sdk/platform-tools/adb
[   +1 ms] executing: /home/haga/Android/Sdk/platform-tools/adb start-server
[   +8 ms] Installing build/app/outputs/apk/app.apk...
[        ] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 install -t -r
/home/haga/Development/learning/url_launcher_headers/build/app/outputs/apk/app.apk
[+6197 ms] Performing Streamed Install
                    Success
[        ] Installing build/app/outputs/apk/app.apk... (completed in 6.2s)
[   +3 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell echo -n e283bbde703adbaea83ba96ca9399aeb0519dfe1 >
/data/local/tmp/sky.com.example.url_launcher_headers.sha1
[ +100 ms] sdk gphone x86 startApp
[   +7 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000
--ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.url_launcher_headers/com.example.url_launcher_headers.MainActivity
[ +466 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.url_launcher_headers/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+4716 ms] Observatory URL on device: http://127.0.0.1:35929/5b9vUZ2LUXU=/
[   +2 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:35929
[  +12 ms] 42227
[        ] Forwarded host port 42227 to device port 35929 for Observatory
[  +15 ms] Connecting to service protocol: http://127.0.0.1:42227/5b9vUZ2LUXU=/
[ +826 ms] Successfully connected to service protocol: http://127.0.0.1:42227/5b9vUZ2LUXU=/
[   +4 ms] Sending to VM service: getVM({})
[   +9 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32,
version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid:...
[  +10 ms] Sending to VM service: getIsolate({isolateId: isolates/3165447141790007})
[   +6 ms] Sending to VM service: _flutter.listViews({})
[  +27 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xef7825f0, isolate: {type: @Isolate, fixedId: true,
id: isolates/3165447141790007, name: main.dart$main-3165447141790007, number: 3165447141790007}}]}
[   +9 ms] DevFS: Creating new filesystem on the device (null)
[   +1 ms] Sending to VM service: _createDevFS({fsName: url_launcher_headers})
[  +32 ms] Result: {type: Isolate, id: isolates/3165447141790007, name: main, number: 3165447141790007, _originNumber: 3165447141790007,
startTime: 1594586801850, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 3, avgCollectionPeriodMillis...
[ +175 ms] I/Choreographer( 7113): Skipped 68 frames!  The application may be doing too much work on its main thread.
[  +27 ms] Result: {type: FileSystem, name: url_launcher_headers, uri:
file:///data/user/0/com.example.url_launcher_headers/code_cache/url_launcher_headersUUMDJU/url_launcher_headers/}
[   +1 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.example.url_launcher_headers/code_cache/url_launcher_headersUUMDJU/url_launcher_headers/)
[   +4 ms] Updating assets
[ +205 ms] Syncing files to device sdk gphone x86...
[   +3 ms] Scanning asset files
[   +3 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:url_launcher_headers/main.dart d6c41233-1bbf-460b-9ca4-2ce680cbb932
[        ] <- d6c41233-1bbf-460b-9ca4-2ce680cbb932
[ +233 ms] Updating files
[ +303 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device sdk gphone x86... (completed in 547ms)
[        ] Synced 0.9MB.
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +6 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xef7825f0, isolate: {type: @Isolate, fixedId: true,
id: isolates/3165447141790007, name: main.dart$main-3165447141790007, number: 3165447141790007}}]}
[   +1 ms] <- accept
[        ] Connected to _flutterView/0xef7825f0.
[   +2 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on sdk gphone x86 is available at: http://127.0.0.1:42227/5b9vUZ2LUXU=/
[+21733 ms] D/EGL_emulation( 7113): eglCreateContext: 0xef920f40: maj 2 min 0 rcv 2
[+3527 ms] DevFS: Deleting filesystem on the device
(file:///data/user/0/com.example.url_launcher_headers/code_cache/url_launcher_headersUUMDJU/url_launcher_headers/)
[   +2 ms] Sending to VM service: _deleteDevFS({fsName: url_launcher_headers})
[ +107 ms] Result: {type: Success}
[        ] DevFS: Deleted filesystem on the device
(file:///data/user/0/com.example.url_launcher_headers/code_cache/url_launcher_headersUUMDJU/url_launcher_headers/)
[   +9 ms] Sending to VM service: ext.flutter.exit({isolateId: isolates/3165447141790007})
[  +99 ms] Service protocol connection closed.
[+1903 ms] Application finished.
[   +4 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 forward --list
[   +9 ms] Exit code 0 from: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 forward --list
[        ] emulator-5554 tcp:42227 tcp:35929
[   +2 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 forward --remove tcp:42227
[  +10 ms] executing: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 forward --list
[   +8 ms] Exit code 0 from: /home/haga/Android/Sdk/platform-tools/adb -s emulator-5554 forward --list
[   +2 ms] "flutter run" took 80,837ms.
flutter doctor -v
[✓] Flutter (Channel stable, v1.17.5, on Linux, locale en_US.UTF-8)
    • Flutter version 1.17.5 at /home/haga/Development/flutter
    • Framework revision 8af6b2f038 (12 days ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /home/haga/Android/Sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /snap/android-studio/90/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at /snap/android-studio/90/android-studio
    • Flutter plugin version 47.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • sdk gphone x86 • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: OS-version specificAffects only some versions of the relevant operating systemfound in release: 1.17Found to occur in 1.17found in release: 1.20Found to occur in 1.20has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: url_launcherPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions