poitch / dart-matomo

A Dart Matomo Client
MIT License
20 stars 39 forks source link

App crash at init on M1 iOS simulator with no error message and no Exception when running from Android Studio #33

Open lcuis opened 2 years ago

lcuis commented 2 years ago

I get an app crash with no error message and no Exception under the following circumstances:

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.

lcuis commented 2 years ago

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.
brian-kayfitz commented 2 years ago

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

lcuis commented 2 years ago

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.

poitch commented 2 years ago

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.

TheGlorySaint commented 2 years ago

@poitch @lcuis

I mentioned the create of the Package fast-kit and 2 Minutes later the PR got merged, and new Version gets released.

TheGlorySaint commented 2 years ago

@poitch

The fk_user_agent got updated to fix the Issue. Could you also please update this Package?