-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: log custom event for notification permission status #71
Conversation
fixes: LEARNER-10338
@@ -69,4 +75,18 @@ class MainViewModel( | |||
} | |||
) | |||
} | |||
|
|||
private fun logSettingPermissionStatusEvent() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, logNotificationPermissionStatusEvent
is more appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed.
enum class PermissionStatus(val status: String) { | ||
DENIED("denied"), | ||
AUTHORIZED("authorized"), | ||
NOT_DETERMINED("not_determined"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No usage found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the Android not_determined
not applicable, cuz NotificationManagerCompat.from(context).areNotificationsEnabled()
returns boolean. so removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Jira: LEARNER-10338
We need to implement a new custom event to capture the notification permission status set by the user on the Learn tab. This event will send the current permission status once per app session.