سياسة بيانات الموقع الجغرافي الدقيق

اختيار النظام الأساسي: Android iOS Unity Android (الإصدار القديم)

إذا كنت تنقل بيانات الموقع الجغرافي الدقيقة للمستخدمين إلى Google، ستزوّدك سياسات الناشرين في Google بمتطلبات الموافقة وإشعار.

إذا كانت هذه السياسة تنطبق عليك، يوضّح المثال التالي عنوان مربّع إفادة الموافقة والرسالة ونص الزر لإعلام المستخدمين بمشاركة البيانات:

Kotlin

protected fun presentConsentOverlay(context: Context) {
  AlertDialog.Builder(context)
      .setTitle("TITLE")
      .setMessage("MESSAGE_TEXT")
      .setNeutralButton("BUTTON_TEXT") { dialog, which ->
        dialog.cancel()
        Log.d("APP_TAG", "CONSENT_RECEIVED_LOG_MESSAGE")
      }
      .show()
}

// To use the previous function, call:
presentConsentOverlay(this)

جافا

protected void presentConsentOverlay(Context context) {
  new AlertDialog.Builder(context)
      .setTitle("TITLE")
      .setMessage("MESSAGE_TEXT")
  .setNeutralButton("BUTTON_TEXT", new DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
      dialog.cancel();
      Log.d("APP_TAG", "CONSENT_RECEIVED_LOG_MESSAGE");
    }
  })
  .show();
}

// To use the previous method, call:
presentConsentOverlay(this);

غيِّر القيم في السلسلة على الشكل التالي:

  • TITLE: عنوان مربّع إفادة الموافقة، مثلاً Location data.
  • MESSAGE_TEXT: نص مربّع إفادة الموافقة، مثلاً:

    We may use your location and share with third parties for the
    purposes of personalized advertising, analytics, and attributions. To learn
    more, visit our privacy policy at example.com.
    
  • BUTTON_TEXT: نص زر مربّع إفادة الموافقة، مثلاً OK.

  • CONSENT_RECEIVED_LOG_MESSAGE: رسالة السجلّ التي يتم تسجيلها عندما يقدّم المستخدم موافقته، مثلاً Consent received