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

Wait until Privacy Policy has been accepted #827

Merged
merged 1 commit into from Jul 11, 2023
Merged

Conversation

felipeerias
Copy link
Contributor

We should not initialize remote services like analytics and push messages until the Privacy Policy has been accepted.

Whit PR waits until the user has accepted Wolvic's Privacy Policy before starting those services.

We should not initialize remote services like analytics and push messages
until the Privacy Policy has been accepted.

Whit PR waits until the user has accepted Wolvic's Privacy Policy before
starting those services.
Copy link
Contributor

@elima elima left a comment

Choose a reason for hiding this comment

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

Looks good!
Left a couple of nits but you can safely ignore them.
Thanks!

@@ -275,6 +261,29 @@ private void initializeAGConnect() {
}
}

private void enablePrivacySensitiveServices() {
Log.d(TAG, "Privacy policy is accepted, initializing services");
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: I would move this log string outside this method, and put it e.g, right above the place when the method is called, inside the if statement where you check isPrivacyPolicyAccepted().

@@ -275,6 +261,29 @@ private void initializeAGConnect() {
}
}

private void enablePrivacySensitiveServices() {
Log.d(TAG, "Privacy policy is accepted, initializing services");
HiAnalyticsInstance instance = HiAnalytics.getInstance(getApplicationContext());
Copy link
Contributor

Choose a reason for hiding this comment

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

Another nit: Maybe add back the Enable analytics comment above this block?

@elima elima merged commit 93dd820 into main Jul 11, 2023
7 checks passed
@elima elima deleted the felipeerias/launchServices branch July 11, 2023 08:59
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.

None yet

2 participants