Commit 4a3ea0d9 authored by Angelo Coiro's avatar Angelo Coiro

Update android.md

parent 0982d14b
......@@ -252,7 +252,13 @@ This is particularly useful in the following cases.
If your app is not under GDPR regulation, then you can call this method with any one `ConsentItem` and the parameter `isGranted` equal to `true` to let the SDK collect data without requesting any consent to the User
If your app is under GDPR regulation, then you should provide the User a way to remove a consent from your app's settings.
If your app is under GDPR regulation but youn want to use your own dialog to request the consent to the User, then you have to explicitely inform GeoUniq SDK about the user choise.
This must be done in two different situations:
1. When the User takes a choise on your consent dialog: the user's choise must be comunicated to the SDK
2. Each time the app starts: you should check the current status of the consent and communicate it to GeoUniq SDK each time. Note that this is important if your app already used to request the consent to collect data to the User before to integrate GeoUniq SDK. In such a case, if the User had already given the consent and you no longer ask it to the User, GeoUniq SDK would never be informed that the User had consented data to be collected.
Finally, you should provide the User a way to remove a consent from your app's settings.
If the User removes a consent, then you should inform the SDK by calling the method above with the releated `ConsentItem` element and parameter `isGranted` equal to `false`.
By doing so, if there isn't at least another consent granted, the SDK will stop sending data to GeoUniq platform immediately.
......@@ -269,7 +275,7 @@ public class MainActivity extends Activity {
showAnalysisConsentsRequestDialog(this, new AnalysisConsentsListener() {
@Override
public void onUserResponse(boolean isGranted) {
//COMMUNICATE THE USER'S RESPONSE TO THE GEOUNIQ SDK
// COMMUNICATE THE USER'S RESPONSE TO THE GEOUNIQ SDK
GeoUniq.getInstance(this).setPrivacyConsent(GeoUniq.ConsentItem.ANALYSIS, isGranted);
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment