I just tried to update my app and got this message from google
Seems I need a user consent screen. That can't be navigated away from and must be visible without going through menus. And needs to be displayed before I can reference any user data (I assume Email or Android ID, etc)
Very confused. Anyone have an example of doing this
I guess I am looking for something like this:
BobVal
B4X:
App update rejected
Your recent app submission was rejected for violating the User Data policy. Before submitting your app for another review, read through the Personal and Sensitive Information section of the policy and make sure your app is in compliance. If your update included an APK, please increment your APK version code
Seems I need a user consent screen. That can't be navigated away from and must be visible without going through menus. And needs to be displayed before I can reference any user data (I assume Email or Android ID, etc)
Very confused. Anyone have an example of doing this
I guess I am looking for something like this:
B4X:
https://www.iubenda.com/blog/about-googles-eu-user-consent-policy/
Android script to output a “cookie notice”
// This code works on Android API level 1 (Android 1.0) and up.
// Tested on the latest (at the moment) API level 19 (Android 4.4 KitKat).
// In the main activity of your app:
public class MainActivity extends Activity {
(...)
@Override
public void onStart() {
super.onStart();
final SharedPreferences settings =
getSharedPreferences("localPreferences", MODE_PRIVATE);
if (settings.getBoolean("isFirstRun", true)) {
new AlertDialog.Builder(this)
.setTitle("Cookies")
.setMessage("Your message for visitors here")
.setNeutralButton("Close message", new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
settings.edit().putBoolean("isFirstRun", false).commit();
}
}).show();
}
}
}
BobVal