Skip to content
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

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

farhan-arshad-dev
Copy link
Member

@farhan-arshad-dev farhan-arshad-dev commented Dec 6, 2024

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.

@@ -69,4 +75,18 @@ class MainViewModel(
}
)
}

private fun logSettingPermissionStatusEvent() {

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.

Copy link
Member Author

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"),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No usage found.

Copy link
Member Author

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.

Copy link
Collaborator

@k1rill k1rill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@farhan-arshad-dev farhan-arshad-dev merged commit 265905e into 2U/develop Dec 10, 2024
3 checks passed
@farhan-arshad-dev farhan-arshad-dev deleted the 2U/farhan_ar/LEARNER-10338 branch December 10, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants