I use this code to install the link handler. When clicking on a link the app is opened so the configuration must be right. The method _processDynamicLink is called once when opening the app but the link parameter is always null no matter wheater I open the app via clicking on a deep link or not.
FirebaseDynamicLinks.instance
.getInitialLink()
.then((link) => instance._processDynamicLink(link));
FirebaseDynamicLinks.instance.onLink(
onSuccess: (linkData) => instance.handleLink(linkData?.link),
onError: (error) => instance.handleLinkError(PlatformException(
code: error.code,
message: error.message,
details: error.details,
)),
);
Future<void> _processDynamicLink(deepLink) async {
Log.d("method called");
Log.d(deepLink); // always null
}
I'm working with flutter version 1.18 but the same happens with 1.17.
[√] Flutter (Channel unknown, 1.18.0-11.1.pre, on Microsoft Windows [Version 10.0.18363.900], locale de-DE)
• Flutter version 1.18.0-11.1.pre at C:\Users\Marc\flutter
• Framework revision 2738a1148b (6 weeks ago), 2020-05-13 15:24:36 -0700
• Engine revision ef9215ceb2
• Dart version 2.9.0 (build 2.9.0-8.2.beta)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\Marc\AppData\Local\Android\Sdk
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = C:\Users\Marc\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.41.1)
• VS Code at C:\Users\Marc\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.8.1
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• No issues found!
Hi @mscherer82
Can you please provide your flutter run --verbose and a complete reproducible minimal code sample including
Your code snippets has error/missing code
Thank you
Hi @TahaTesser
thank you for your answer. I've create a repo to test. You can find it here: https://github.com/mscherer82/fb_dynamic_link_test
AndroidManifest.xml:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="sykori.page.link" android:scheme="https"/>
<data android:host="sykori.page.link" android:scheme="http"/>
</intent-filter>
main.dart:
void initDynamicLinks() async {
final PendingDynamicLinkData data = await FirebaseDynamicLinks.instance.getInitialLink();
print("data: ${data.toString()}");
final Uri deepLink = data?.link;
if (deepLink != null) {
print(deepLink.toString());
}
FirebaseDynamicLinks.instance.onLink(
onSuccess: (PendingDynamicLinkData dynamicLink) async {
print("on link");
print("${dynamicLink.toString()}");
final Uri deepLink = dynamicLink?.link;
if (deepLink != null) {
print(deepLink.path);
print(deepLink.toString());
}
},
onError: (OnLinkErrorException e) async {
print('onLinkError');
print(e.message);
}
);
}
When klicking on link https://sykori.page.link/Tbeh?test=12345 the app opens (so the link works) but getInitialLink returns null:
[ +403 ms] I/flutter ( 9123): data: null
logs
C:\Projects\link_test\framr>flutter run --verbose
[ +22 ms] executing: [C:\Users\Marc\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +97 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 8af6b2f038c1172e61d418869363a28dffec3cb4
[ ] executing: [C:\Users\Marc\flutter/] git tag --contains HEAD
[ +252 ms] Exit code 0 from: git tag --contains HEAD
[ +10 ms] 1.17.5
[ +8 ms] executing: [C:\Users\Marc\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +54 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [C:\Users\Marc\flutter/] git ls-remote --get-url origin
[ +55 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +123 ms] executing: [C:\Users\Marc\flutter/] git rev-parse --abbrev-ref HEAD
[ +59 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] stable
[ +55 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +30 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[ +58 ms] List of devices attached
emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
[ +14 ms] C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[ +54 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] 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.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +96 ms] Found plugin firebase_core at C:\Users\Marc\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.5\
[ +11 ms] Found plugin firebase_core_web at C:\Users\Marc\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.1.1+2\
[ +4 ms] Found plugin firebase_dynamic_links at C:\Users\Marc\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_dynamic_links-0.5.1\
[ +109 ms] Found plugin firebase_core at C:\Users\Marc\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.5\
[ +5 ms] Found plugin firebase_core_web at C:\Users\Marc\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.1.1+2\
[ +3 ms] Found plugin firebase_dynamic_links at C:\Users\Marc\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_dynamic_links-0.5.1\
[ +86 ms] Generating C:\Projects\link_test\framr\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +32 ms] ro.hardware = ranchu
[ +32 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +28 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
[ +10 ms] C:\Users\Marc\flutter\bin\cache\dart-sdk\bin\dart.exe C:\Users\Marc\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Marc\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\Marc\AppData\Local\Temp\flutter_tool.2398c682-bf7a-11ea-9a26-f4963468b004\app.dill --packages C:\Projects\link_test\framr\.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-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
[ +21 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Projects\link_test\framr\build\app\outputs\apk\app.apk AndroidManifest.xml
[ +28 ms] Exit code 0 from: C:\Users\Marc\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Projects\link_test\framr\build\app\outputs\apk\app.apk AndroidManifest.xml
[ ] 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.sykori.framr" (Raw: "com.sykori.framr")
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=16)
A: android:label(0x01010001)="framr" (Raw: "framr")
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=22)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.sykori.framr.MainActivity" (Raw: "com.sykori.framr.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=36)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=46)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040015
E: intent-filter (line=50)
E: action (line=51)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=53)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: intent-filter (line=55)
E: action (line=56)
A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
E: category (line=58)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: category (line=59)
A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
E: data (line=61)
A: android:scheme(0x01010027)="https" (Raw: "https")
A: android:host(0x01010028)="sykori.page.link" (Raw: "sykori.page.link")
E: data (line=64)
A: android:scheme(0x01010027)="http" (Raw: "http")
A: android:host(0x01010028)="sykori.page.link" (Raw: "sykori.page.link")
E: meta-data (line=73)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: service (line=77)
A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
E: meta-data (line=78)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebasedynamiclinks.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebasedynamiclinks.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=81)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=84)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: provider (line=89)
A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.sykori.framr.firebaseinitprovider" (Raw: "com.sykori.framr.firebaseinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: activity (line=95)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=100)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f060001
[ +15 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +63 ms] Exit code 0 from: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +1 ms] --------- beginning of main
07-06 11:16:29.305 E/GnssHAL_GnssInterface( 1793): gnssSvStatusCb: b: input svInfo.flags is 8
[ +19 ms] <- compile package:framr/main.dart
[ +14 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[ +55 ms] Android Debug Bridge version 1.0.41
Version 30.0.3-6597393
Installed as C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe
[ +4 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[ +69 ms] Building APK
[ +19 ms] Running Gradle task 'assembleDebug'...
[ +3 ms] gradle.properties already sets `android.enableR8`
[ +5 ms] Using gradle from C:\Projects\link_test\framr\android\gradlew.bat.
[ +1 ms] C:\Projects\link_test\framr\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +16 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +131 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +1 ms] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[ +6 ms] executing: [C:\Projects\link_test\framr\android/] C:\Projects\link_test\framr\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-x86 -Ptarget=C:\Projects\link_test\framr\lib\main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+2801 ms] > Configure project :app
[ +1 ms] WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
[ ] It will be removed at the end of 2019.
[ ] For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
[ +1 ms] To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
[ +1 ms] > Configure project :
[ +1 ms] Warning: Please apply google-services plugin at the bottom of the build file.
[ +2 ms] Plugin project :firebase_core_web not found. Please update settings.gradle.
[+2276 ms] > Task :app:compileFlutterBuildDebug
[ +1 ms] [ +17 ms] executing: [C:\Users\Marc\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ +92 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ ] 8af6b2f038c1172e61d418869363a28dffec3cb4
[ +1 ms] [ ] executing: [C:\Users\Marc\flutter/] git tag --contains HEAD
[ +1 ms] [ +243 ms] Exit code 0 from: git tag --contains HEAD
[ +1 ms] [ ] 1.17.5
[ +1 ms] [ +9 ms] executing: [C:\Users\Marc\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] [ +47 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] [ ] origin/stable
[ ] [ ] executing: [C:\Users\Marc\flutter/] git ls-remote --get-url origin
[ ] [ +46 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +114 ms] executing: [C:\Users\Marc\flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +49 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] stable
[ ] [ +15 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.
[ ] [ +13 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ +1 ms] [ +6 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 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.
[ ] [ ] 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.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +1 ms] [ ] 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.
[ ] [ +98 ms] Initializing file store
[ ] [ +17 ms] kernel_snapshot: Starting due to {}
[ ] [ +13 ms] C:\Users\Marc\flutter\bin\cache\dart-sdk\bin\dart.exe C:\Users\Marc\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Marc\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-instructions --enable-asserts --track-widget-creation --no-link-platform --packages
C:\Projects\link_test\framr\.packages --output-dill C:\Projects\link_test\framr\.dart_tool\flutter_build\6210eaa5f57097aa268b84de9efc05d8\app.dill --depfile
C:\Projects\link_test\framr\.dart_tool\flutter_build\6210eaa5f57097aa268b84de9efc05d8\kernel_snapshot.d package:framr/main.dart
[+5351 ms] [+5965 ms] kernel_snapshot: Complete
[+1401 ms] [+1351 ms] debug_android_application: Starting due to {}
[ +98 ms] [ +158 ms] debug_android_application: Complete
[ +399 ms] [ +442 ms] Persisting file store
[ +100 ms] [ +14 ms] Done persisting file store
[ +1 ms] [ +2 ms] build succeeded.
[ +1 ms] [ +20 ms] "flutter assemble" took 8.180ms.
[ +198 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[ +1 ms] > Task :app:preBuild UP-TO-DATE
[ ] > Task :app:preDebugBuild UP-TO-DATE
[ +1 ms] > Task :firebase_core:preBuild UP-TO-DATE
[ +1 ms] > Task :firebase_core:preDebugBuild UP-TO-DATE
[ +1 ms] > Task :firebase_core:compileDebugAidl NO-SOURCE
[ ] > Task :firebase_dynamic_links:preBuild UP-TO-DATE
[ ] > Task :firebase_dynamic_links:preDebugBuild UP-TO-DATE
[ ] > Task :firebase_dynamic_links:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugAidl NO-SOURCE
[ ] > Task :firebase_core:packageDebugRenderscript NO-SOURCE
[ +1 ms] > Task :firebase_dynamic_links:packageDebugRenderscript NO-SOURCE
[ ] > Task :app:compileDebugRenderscript NO-SOURCE
[ ] > Task :app:checkDebugManifest UP-TO-DATE
[ ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :app:cleanMergeDebugAssets
[ ] > Task :app:mergeDebugShaders UP-TO-DATE
[ ] > Task :app:compileDebugShaders UP-TO-DATE
[ ] > Task :app:generateDebugAssets UP-TO-DATE
[ ] > Task :firebase_core:mergeDebugShaders UP-TO-DATE
[ ] > Task :firebase_core:compileDebugShaders UP-TO-DATE
[ ] > Task :firebase_core:generateDebugAssets UP-TO-DATE
[ ] > Task :firebase_core:packageDebugAssets UP-TO-DATE
[ ] > Task :firebase_dynamic_links:mergeDebugShaders UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:compileDebugShaders UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:generateDebugAssets UP-TO-DATE
[ ] > Task :firebase_dynamic_links:packageDebugAssets UP-TO-DATE
[ ] > Task :app:mergeDebugAssets
[ +275 ms] > Task :app:copyFlutterAssetsDebug
[ +2 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[ +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[ +1 ms] > Task :app:generateDebugResources UP-TO-DATE
[ +1 ms] > Task :app:processDebugGoogleServices UP-TO-DATE
[ +1 ms] > Task :firebase_core:generateDebugResValues UP-TO-DATE
[ +1 ms] > Task :firebase_core:compileDebugRenderscript NO-SOURCE
[ +1 ms] > Task :firebase_core:generateDebugResources UP-TO-DATE
[ +1 ms] > Task :firebase_core:packageDebugResources UP-TO-DATE
[ ] > Task :firebase_dynamic_links:generateDebugResValues UP-TO-DATE
[ ] > Task :firebase_dynamic_links:compileDebugRenderscript NO-SOURCE
[ ] > Task :firebase_dynamic_links:generateDebugResources UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:packageDebugResources UP-TO-DATE
[ +1 ms] > Task :app:mergeDebugResources UP-TO-DATE
[ +1 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ +1 ms] > Task :firebase_core:checkDebugManifest UP-TO-DATE
[ +1 ms] > Task :firebase_core:processDebugManifest UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:checkDebugManifest UP-TO-DATE
[ ] > Task :firebase_dynamic_links:processDebugManifest UP-TO-DATE
[ +1 ms] > Task :app:processDebugManifest UP-TO-DATE
[ +1 ms] > Task :firebase_core:parseDebugLibraryResources UP-TO-DATE
[ +74 ms] > Task :firebase_core:generateDebugRFile UP-TO-DATE
[ +2 ms] > Task :firebase_dynamic_links:parseDebugLibraryResources UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:generateDebugRFile UP-TO-DATE
[ +2 ms] > Task :app:processDebugResources UP-TO-DATE
[ +2 ms] > Task :firebase_core:generateDebugBuildConfig UP-TO-DATE
[ +1 ms] > Task :firebase_core:javaPreCompileDebug UP-TO-DATE
[ +1 ms] > Task :firebase_core:compileDebugJavaWithJavac UP-TO-DATE
[ +1 ms] > Task :firebase_core:bundleLibCompileDebug UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:generateDebugBuildConfig UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:javaPreCompileDebug UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :firebase_dynamic_links:bundleLibCompileDebug UP-TO-DATE
[ ] > Task :app:compileDebugKotlin UP-TO-DATE
[ +2 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[ +1 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[ +1 ms] > Task :app:compileDebugSources UP-TO-DATE
[ +2 ms] > Task :app:processDebugJavaRes NO-SOURCE
[ +1 ms] > Task :firebase_core:processDebugJavaRes NO-SOURCE
[ +2 ms] > Task :firebase_core:bundleLibResDebug UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:processDebugJavaRes NO-SOURCE
[ +1 ms] > Task :firebase_dynamic_links:bundleLibResDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :firebase_core:bundleLibRuntimeDebug UP-TO-DATE
[ ] > Task :firebase_core:createFullJarDebug UP-TO-DATE
[ ] > Task :firebase_dynamic_links:bundleLibRuntimeDebug UP-TO-DATE
[ ] > Task :firebase_dynamic_links:createFullJarDebug UP-TO-DATE
[ +65 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[ +1 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[ ] > Task :app:mergeExtDexDebug UP-TO-DATE
[ ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[ ] > Task :app:mergeDexDebug UP-TO-DATE
[ ] > Task :app:validateSigningDebug UP-TO-DATE
[ ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :firebase_core:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :firebase_core:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :firebase_core:stripDebugDebugSymbols UP-TO-DATE
[ ] > Task :firebase_core:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[ ] > Task :firebase_dynamic_links:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :firebase_dynamic_links:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :firebase_dynamic_links:stripDebugDebugSymbols UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[ ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[ ] Compatible side by side NDK version was not found.
[ ] > Task :app:packageDebug UP-TO-DATE
[ +147 ms] > Task :app:assembleDebug
[ +2 ms] > Task :firebase_core:extractDebugAnnotations UP-TO-DATE
[ +1 ms] > Task :firebase_core:mergeDebugGeneratedProguardFiles UP-TO-DATE
[ +1 ms] > Task :firebase_core:mergeDebugConsumerProguardFiles UP-TO-DATE
[ +1 ms] > Task :firebase_core:prepareLintJarForPublish UP-TO-DATE
[ +1 ms] > Task :firebase_core:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :firebase_core:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[ ] > Task :firebase_core:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[ ] > Task :firebase_core:bundleDebugAar UP-TO-DATE
[ ] > Task :firebase_core:compileDebugSources UP-TO-DATE
[ +1 ms] > Task :firebase_core:assembleDebug UP-TO-DATE
[ ] > Task :firebase_dynamic_links:extractDebugAnnotations UP-TO-DATE
[ ] > Task :firebase_dynamic_links:mergeDebugGeneratedProguardFiles UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:mergeDebugConsumerProguardFiles UP-TO-DATE
[ ] > Task :firebase_dynamic_links:prepareLintJarForPublish UP-TO-DATE
[ ] > Task :firebase_dynamic_links:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :firebase_dynamic_links:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[ ] > Task :firebase_dynamic_links:bundleDebugAar UP-TO-DATE
[ +2 ms] > Task :firebase_dynamic_links:compileDebugSources UP-TO-DATE
[ +1 ms] > Task :firebase_dynamic_links:assembleDebug UP-TO-DATE
[ +1 ms] BUILD SUCCESSFUL in 13s
[ ] 88 actionable tasks: 5 executed, 83 up-to-date
[ +347 ms] Running Gradle task 'assembleDebug'... (completed in 13,9s)
[ +27 ms] calculateSha: LocalDirectory: 'C:\Projects\link_test\framr\build\app\outputs\apk'/app.apk
[ +55 ms] calculateSha: reading file took 53us
[ +449 ms] calculateSha: computing sha took 448us
[ +7 ms] √ Built build\app\outputs\apk\debug\app-debug.apk.
[ +12 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Projects\link_test\framr\build\app\outputs\apk\app.apk AndroidManifest.xml
[ +26 ms] Exit code 0 from: C:\Users\Marc\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Projects\link_test\framr\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.sykori.framr" (Raw: "com.sykori.framr")
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=16)
A: android:label(0x01010001)="framr" (Raw: "framr")
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=22)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.sykori.framr.MainActivity" (Raw: "com.sykori.framr.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=36)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=46)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040015
E: intent-filter (line=50)
E: action (line=51)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=53)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: intent-filter (line=55)
E: action (line=56)
A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
E: category (line=58)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: category (line=59)
A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
E: data (line=61)
A: android:scheme(0x01010027)="https" (Raw: "https")
A: android:host(0x01010028)="sykori.page.link" (Raw: "sykori.page.link")
E: data (line=64)
A: android:scheme(0x01010027)="http" (Raw: "http")
A: android:host(0x01010028)="sykori.page.link" (Raw: "sykori.page.link")
E: meta-data (line=73)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: service (line=77)
A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
E: meta-data (line=78)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebasedynamiclinks.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebasedynamiclinks.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=81)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=84)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: provider (line=89)
A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.sykori.framr.firebaseinitprovider" (Raw: "com.sykori.framr.firebaseinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: activity (line=95)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=100)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f060001
[ +5 ms] Stopping app 'app.apk' on Android SDK built for x86.
[ +1 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell am force-stop com.sykori.framr
[ +77 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages com.sykori.framr
[ +58 ms] package:com.sykori.framr
[ +3 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell cat /data/local/tmp/sky.com.sykori.framr.sha1
[ +51 ms] 92dbf6a4e05374af89dc223b1979ef64adee6562
[ +1 ms] Latest build already installed.
[ ] Android SDK built for x86 startApp
[ +2 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -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.sykori.framr/com.sykori.framr.MainActivity
[ +361 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.sykori.framr/.MainActivity (has extras) }
[ +1 ms] Waiting for observatory port to be available...
[ +637 ms] Observatory URL on device: http://127.0.0.1:33879/n0rP1eJEw0g=/
[ +4 ms] executing: C:\Users\Marc\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:0 tcp:33879
[ +39 ms] 50525
[ +1 ms] Forwarded host port 50525 to device port 33879 for Observatory
[ +19 ms] Connecting to service protocol: http://127.0.0.1:50525/n0rP1eJEw0g=/
[ +406 ms] Successfully connected to service protocol: http://127.0.0.1:50525/n0rP1eJEw0g=/
[ +5 ms] Sending to VM service: getVM({})
[ +8 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Virtual CPU, 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: 9123, startTi...
[ +7 ms] Sending to VM service: getIsolate({isolateId: isolates/2591219206597083})
[ +4 ms] Sending to VM service: _flutter.listViews({})
[ +16 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xf7932210, isolate: {type: @Isolate, fixedId: true, id: isolates/2591219206597083, name: main.dart$main-2591219206597083, number:
2591219206597083}}]}
[ +8 ms] DevFS: Creating new filesystem on the device (null)
[ +1 ms] Sending to VM service: _createDevFS({fsName: framr})
[ +88 ms] Result: {type: FileSystem, name: framr, uri: file:///data/user/0/com.sykori.framr/code_cache/framrJLYSNA/framr/}
[ +1 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.sykori.framr/code_cache/framrJLYSNA/framr/)
[ +2 ms] Updating assets
[ +112 ms] Syncing files to device Android SDK built for x86...
[ +2 ms] Scanning asset files
[ +3 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +2 ms] <- recompile package:framr/main.dart 6b288c93-dc37-42d1-87d9-049ec3ed0c40
[ ] <- 6b288c93-dc37-42d1-87d9-049ec3ed0c40
[ +14 ms] Result: {type: Isolate, id: isolates/2591219206597083, name: main, number: 2591219206597083, _originNumber: 2591219206597083, startTime: 1594034205122, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger,
collections: 3, avgCollectionPeriodMillis...
[ +22 ms] D/EGL_emulation( 9123): eglMakeCurrent: 0xf797e740: ver 3 0 (tinfo 0xec89ac90)
[ +1 ms] D/eglCodecCommon( 9123): setVertexArrayObject: set vao to 0 (0) 1 0
[ +121 ms] Updating files
[ +205 ms] DevFS: Sync finished
[ +2 ms] Syncing files to device Android SDK built for x86... (completed in 374ms)
[ +1 ms] Synced 0.9MB.
[ +1 ms] Sending to VM service: _flutter.listViews({})
[ +4 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xf7932210, isolate: {type: @Isolate, fixedId: true, id: isolates/2591219206597083, name: main.dart$main-2591219206597083, number:
2591219206597083}}]}
[ +2 ms] <- accept
[ +1 ms] Connected to _flutterView/0xf7932210.
[ +2 ms] Flutter run key commands.
[ +2 ms] r Hot reload.
[ +1 ms] R Hot restart.
[ +1 ms] h Repeat this help message.
[ +1 ms] d Detach (terminate "flutter run" but leave application running).
[ +1 ms] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:50525/n0rP1eJEw0g=/
[ +404 ms] W/FDL ( 9123): FDL logging failed. Add a dependency for Firebase Analytics to your app to enable logging of Dynamic Link events.
[ +403 ms] I/flutter ( 9123): data: null
[+5249 ms] D/EGL_emulation( 9123): eglMakeCurrent: 0xe471a300: ver 3 0 (tinfo 0xe470f590)
[+16167 ms] D/eglCodecCommon( 9123): setVertexArrayObject: set vao to 0 (0) 0 0
[ +1 ms] D/EGL_emulation( 9123): eglCreateContext: 0xf797e980: maj 3 min 0 rcv 3
[ +25 ms] D/EGL_emulation( 9123): eglMakeCurrent: 0xf797e980: ver 3 0 (tinfo 0xec89ac90)
[ +18 ms] D/EGL_emulation( 9123): eglMakeCurrent: 0xe471a300: ver 3 0 (tinfo 0xe470f590)
[ +75 ms] D/EGL_emulation( 9123): eglMakeCurrent: 0xf797e980: ver 3 0 (tinfo 0xec89ac90)
[ +36 ms] D/eglCodecCommon( 9123): setVertexArrayObject: set vao to 0 (0) 10 0
flutter doctor -v
[✓] Flutter (Channel dev, 1.20.0-3.0.pre, on Mac OS X 10.15.5 19F101, locale en-GB)
• Flutter version 1.20.0-3.0.pre at /Users/taha/Code/flutter_dev
• Framework revision 0af027f805 (2 days ago), 2020-07-04 12:19:20 -0700
• Engine revision a751393804
• Dart version 2.9.0 (build 2.9.0-20.0.dev 22da8934ac)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/taha/Code/sdk
• Platform android-30, build-tools 30.0.0
• ANDROID_HOME = /Users/taha/Code/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 47.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.46.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.1
[✓] Connected device (3 available)
• SM M305F (mobile) • 32003c30dc19668f • android-arm64 • Android 10 (API 29)
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web) • chrome • web-javascript • Google Chrome
83.0.4103.116
• No issues found!
Any updates on this?
In my case I had wrongly configured the FirebaseDynamicLinksCustomDomains property in Info.plist
In my case I had wrongly configured the
FirebaseDynamicLinksCustomDomainsproperty inInfo.plist
could you tell me what exactly was your mistake? maybe I'm facing the same error.
@Saifallak
So the link I was trying to open was https://app.mydomain.com/random123, which was an URL that was shortened using Firebase API (that's why the random string at the end).
I also had configured myself a specific link in Firebase console (https://app.mydomain.com/welcome).
This was my config before:
<key>FirebaseDynamicLinksCustomDomains</key>
<array>
<string>https://app.mydomain.com/welcome</string>
</array>
When debugging the library, I noticed that it tries to match the opened link to the links defined here, and of course https://app.mydomain.com/random123 does not match with https://app.mydomain.com/welcome. Once I deleted the welcome part it worked. So my new config is this:
<key>FirebaseDynamicLinksCustomDomains</key>
<array>
<string>https://app.mydomain.com/</string>
</array>
Thanks, really helped me alot. @tudor07
@TahaTesser
I think <key>FirebaseDynamicLinksCustomDomains</key> should be in docs, really confusing
@TahaTesser @Saifallak for you it works fine on android, right?
@mscherer82 yea it does
The above solution with FirebaseDynamicLinksCustomDomains in Info.plist doesn't work for me in iOS. When the app is open and suspended (in background) the onLink handler works every time, with or without FirebaseDynamicLinksCustomDomains config. However, when the app is closed clicking on the link makes the app start, but getInitialLink always returns null. I can see the app gets the link in didFinishLaunchingWithOptions as part of NSUserActivityTypeBrowsingWeb user activity on app start, but the plugin never sees it.
Also inside of didFinishLaunchingWithOptions the link is still a short firebase link rather than my custom expanded URL with all the query params.
latest update to plugin (0.5.3) resolves the issue. getInitialLink still returns null though, but the actual initial link is relayed to the onLink handler which works well.
@minusminuszero which flutter version do you use? I've updated the plugin but onLink isn't called.
@mscherer82
flutter --version
Flutter 1.17.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8af6b2f038 (5 weeks ago) • 2020-06-30 12:53:55 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4
Same issue with @minusminuszero here. Recently updated flutter into 1.20.1 and this issue has been suddenly popped up.
So I tried to regress to 1.17.5 using flutter downgrade, but the magic didn't happen(now it is 1.20.1 again)
These are my environmental information:
[✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.15.6 19G73, locale en-KR)
• Flutter version 1.20.1 at /Users/<my-home-dir>/Tools/flutter
• Framework revision 2ae34518b8 (8 days ago), 2020-08-05 19:53:19 -0700
• Engine revision c8e3b94853
• Dart version 2.9.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/<my-home-dir>/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.1
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 47.1.4
• Dart plugin version 202.6397.47
[✓] VS Code (version 1.47.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2
name: <my-app-name>
flutter:
uses-material-design: true
description: <my-app-description>
version: 0.1.14+64
module:
androidX: true
environment:
sdk: ^2.9.0
flutter: ^1.20.1
dependencies:
carousel_slider: ^2.2.1
flutter_inappwebview: ^2.1.0+1
flutter_web_auth: ^0.1.3
matrix_gesture_detector: ^0.1.0
firebase_crashlytics: ^0.1.4+1
flutter_markdown: ^0.3.3
url_launcher: ^5.4.1
package_info: ^0.4.0+13
flutter_auth_buttons: ^0.8.0
version: ^1.0.0
flutter:
sdk: flutter
http: ^0.12.0+2
share: ^0.6.3+5
json_serializable: ^3.2.2
firebase_core: ^0.4.5
device_info: ^0.4.2+1
firebase_analytics: ^5.0.16
apple_sign_in: ^0.1.0
firebase_auth: ^0.16.1
graphql_flutter: ^3.0.1
cupertino_icons: ^0.1.2
iamport_flutter: ^0.9.11
flutter_kakao_login: "^0.8.1"
flutter_secure_storage: ^3.3.1+1
firebase_dynamic_links: ^0.5.3
firebase_remote_config: ^0.3.1+1
flutter_webview_plugin: ^0.3.11
autocomplete_textfield: ^1.6.4
native_widgets: ^1.3.5
flutter_typeahead: ^1.7.0
webview_flutter: ^0.3.19+9
badges: ^1.1.0
tuple: ^1.0.3
firebase_messaging: ^6.0.16
shared_preferences: ^0.5.7+3
flutter_datetime_picker: ^1.2.8
loadmore: ^1.0.4
validators: ^2.0.0+1
image_picker: ^0.6.7+4
dev_dependencies:
flutter_launcher_icons: "^0.7.3"
pedantic: ^1.8.0
icapps_license: ^0.0.6
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "graphics/icon.png"
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def parse_KV_file(file, separator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
return [];
end
generated_key_values = {}
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) do |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
path = plugin[1].strip()
podpath = File.expand_path("#{path}", file_abs_path)
generated_key_values[podname] = podpath
else
puts "Invalid plugin specification: #{line}"
end
end
generated_key_values
end
target 'Runner' do
use_frameworks!
use_modular_headers!
# Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter')
copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
# Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
# That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
# CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
unless File.exist?(generated_xcode_build_settings_path)
raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
unless File.exist?(copied_framework_path)
FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
end
unless File.exist?(copied_podspec_path)
FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
end
end
# Keep pod path relative so it can be checked into Podfile.lock.
pod 'Flutter', :path => 'Flutter'
# Plugin Pods
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf .symlinks')
system('mkdir -p .symlinks/plugins')
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.each do |name, path|
symlink = File.join('.symlinks', 'plugins', name)
File.symlink(path, symlink)
pod name, :path => File.join(symlink, 'ios')
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
class Home extends StatefulWidget{
void initState() {
super.initState();
this.processExternalInbound();
}
Future<void> processExternalInbound() async {
FirebaseDynamicLinks.instance.onLink(
onSuccess: (PendingDynamicLinkData dynamicLink) async {
final Uri deepLink = dynamicLink?.link;
//...
},
onError: (OnLinkErrorException e) async {
}
);
new Timer(const Duration(milliseconds: 3000), () async {
this.linkData = await FirebaseDynamicLinks.instance.getInitialLink();
this.deepLink = linkData?.link;
final List<String> pathSegments = deepLink?.fragment?.split("/")?.sublist(1);
//...
});
}
}
If I have to give you another information, just ask for it 🤗
Flutter package uni_links gives me similar result. It always returns null on getInitialLink
@minusminuszero I've solved my issue. Just deleted and re-installed flutter, and delete all cocoapod cache and flutter xcode project build caches. And #2817 could be helpful to you😇
@leejh10003 #2817 (v0.5.3) is exactly what resolved it for me as i mentioned above. If I understand correctly the fix makes the initial link available through the onLink handler, but getInitialLink still returns null. Imo this is still a bug, but at this point it doesn't matter as i get the link anyways.
@minusminuszero Oh, happy to hear that! And sorry for not being helpful to you😢
Any updates on this?
Most helpful comment
@mscherer82
flutter --version
Flutter 1.17.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8af6b2f038 (5 weeks ago) • 2020-06-30 12:53:55 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4