Created
December 20, 2021 08:33
-
-
Save MFlisar/76072cfc36ce5767f2c906092e1e39e4 to your computer and use it in GitHub Desktop.
Lumberjack Notification Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// show a crash notifcation - on notification click the user can send a feedback mail including the log file | |
L.showCrashNotification(context, logFile /* may be null */, "[email protected]", R.mipmap.ic_launcher, "NotificationChannelID", 1234 /* notification id */) | |
// show a notification to allow the user the report some interesting internal proplems | |
L.showCrashNotification(context, fileLoggingSetup, "[email protected]", R.mipmap.ic_launcher, "NotificationChannelID", 1234 /* notification id */) | |
// show an information notification to the user (or for dev purposes) | |
L.showInfoNotification(context, "NotificationChannelID", 1234 /* notification id */, "Notification Title", "Notification Text", R.mipmap.ic_launcher) | |
// as above, but on notification click it will open the log viewer showing the provided log file | |
L.showInfoNotification(context, logFile, "NotificationChannelID", 1234 /* notification id */, "Notification Title", "Notification Text", R.mipmap.ic_launcher) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment