dart-matomo icon indicating copy to clipboard operation
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

Open lcuis opened this issue 3 years ago • 6 comments

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.

lcuis avatar Nov 23 '21 05:11 lcuis

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.

lcuis avatar Nov 23 '21 08:11 lcuis

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

brian-kayfitz avatar Jan 13 '22 20:01 brian-kayfitz

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.

lcuis avatar Jan 13 '22 21:01 lcuis

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 avatar Jan 13 '22 21:01 poitch

@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 avatar Jan 19 '22 15:01 TheGlorySaint

@poitch

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

TheGlorySaint avatar Feb 07 '22 12:02 TheGlorySaint