dart-matomo
dart-matomo copied to clipboard
App crash at init on M1 iOS simulator with no error message and no Exception when running from Android Studio
I get an app crash with no error message and no Exception under the following circumstances:
- iOS simulator on M1 Mac
- run from Android Studio
The cause is in the fk_user_agent
plugin:
https://github.com/flutter-fast-kit/fk_user_agent/issues/4
This issue is fixed through this PR: https://github.com/flutter-fast-kit/fk_user_agent/pull/5
But the fk_user_agent
plugin was not published to pub.dev since April 2021.
Also, I get the following note at compilation because of this same fk_user_agent
plugin:
Note: /Users/hindl/FlutterDev/flutter/.pub-cache/hosted/pub.dartlang.org/fk_user_agent-2.0.1/android/src/main/java/io/flutterfastkit/fk_user_agent/FkUserAgentPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
There is a pull request open for fk_user_agent that fixes this issue, but the plugin author seems to be unresponsive. Would it be possible to switch to that fork of fk_user_agent or even better, remove the dependency since what its adding is rather trivial and could just be embedded into this plugin.
https://github.com/flutter-fast-kit/fk_user_agent/issues/4
This issue is the reason I developed my own simpler version of Matomo Dart plugin: matomo_forever
. I am sure it is not as powerful as dart_matomo
but the necessary maintenance is minimal.
Let me look at ways to get rid of this dependency. The goal of dart_matomo
was to have no dependencies or at least as close to no dependencies as possible.
@poitch @lcuis
I mentioned the create of the Package fast-kit and 2 Minutes later the PR got merged, and new Version gets released.
@poitch
The fk_user_agent got updated to fix the Issue. Could you also please update this Package?