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

[MOB-10627] removes disable device call #864

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

evantk91
Copy link
Contributor

@evantk91 evantk91 commented Jan 16, 2025

🔹 Jira Ticket(s) if any

✏️ Description

This pull request removes the disable device call from the enhanced notification tracking logic.

} else {
sharedInstance.registerForPush();
}
sharedInstance.registerForPush();
Copy link
Contributor

@sumeruchat sumeruchat Jan 17, 2025

Choose a reason for hiding this comment

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

same as iOS when notifications are disabled will android give us a token? If not maybe we have to use the previously registered token and set notificationsEnabled to false with it

Copy link
Contributor

Choose a reason for hiding this comment

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

You shouldn't need to OS permissions turned on to get the push token, you just request it from the device. It is given regardless of that setting, the OS setting simply just gates whether or not the device will display the notifications.

Copy link
Contributor

Choose a reason for hiding this comment

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

@davidtruong Okay sounds good then. lets test it thoroughly

@sumeruchat sumeruchat self-requested a review January 17, 2025 11:46
Copy link
Contributor

@sumeruchat sumeruchat left a comment

Choose a reason for hiding this comment

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

lets test the disable and enable case together before merging

@evantk91 evantk91 merged commit aa08d6e into master Jan 17, 2025
3 of 4 checks passed
@evantk91 evantk91 deleted the evan/MOB-10627-notification-state-tracking-fix branch January 17, 2025 16:09
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