moewe 0.2.8 moewe: ^0.2.8 copied to clipboard
a client library for mœwe
mœwe | dart client #
moewe (german for seagull 🐣) is a open source, privacy preserving crash logging service that can be self-hosted.
motivation #
During foss development, I always wished there was a simple platform for crash reporting and knowing roughly how many people are using the software. mœwe aims to be exactly this without the privacy concerns of the large analytics solutions. I hope this is useful to you.
yours, Robin
find more information at moewe.app
features #
- crash logging
- event logging
- user feedback collection
- live config via feature flags
- includes simple UI components for simple integration
- let users know about new app versions
usage #
initialize the client within your Flutter applications main.dart
void main() async {
// setup Moewe for crash logging
await Moewe(
host: "open.moewe.app",
project: "yourProjectId",
app: "yourAppId"
).init();
runApp(const MyApp());
}
That's it 🎉
you can now use the moewe
client within your app:
moewe.events.appOpen();
moewe.log.debug("this is a debug message");
moewe.crash("an error occurred", null);
// report user feedback
MoeweFeedbackPage.show(...) // use package UI
moewe.feedback(...); // manually
// get flag value from server
moewe.config.flagString("fav_food");
// other UI components:
MoeweUpdateView
moeweUpdateWrapper(...)
crash logging #
global crash logging is automatically enabled.
You can manually log crashes using:
- the
moewe.crash(...)
function. - wrapping (possibly async) content with
moewe.crashLogged(() async {...})
.