Chính sách về dữ liệu vị trí chính xác

Chọn nền tảng: Android iOS Unity Android (Cũ)

Nếu bạn chuyển dữ liệu vị trí chính xác của người dùng đến Google, thì Các chính sách dành cho nhà xuất bản của Google sẽ cung cấp cho bạn các yêu cầu về sự đồng ý và thông báo.

Nếu chính sách này áp dụng cho bạn, thì ví dụ sau đây sẽ đặt tiêu đề, thông báo và văn bản nút để thông báo cho người dùng về việc chia sẻ dữ liệu:

[SerializeField, Tooltip("Canvas panel for the location consent overlay.")]
private GameObject _consentOverlay;

[SerializeField, Tooltip("Title text for the location consent overlay.")]
private Text _titleText;

[SerializeField, Tooltip("Message text for the location consent overlay.")]
private Text _messageText;

[SerializeField, Tooltip("OK button for the location consent overlay.")]
private Button _okButton;

[SerializeField, Tooltip("OK button text for the location consent overlay.")]
private Text _okButtonText;

/// <summary>
/// Presents the location consent overlay to the user.
/// </summary>
public void PresentConsentOverlay()
{
    if (_consentOverlay == null)
    {
        return;
    }

    _titleText.text = "TITLE";
    _messageText.text = "MESSAGE_TEXT";
    _okButtonText.text = "BUTTON_TEXT";

    _okButton.onClick.RemoveAllListeners();
    _okButton.onClick.AddListener(() =>
    {
        _consentOverlay.SetActive(false);
        // TODO: Add any consent gathering logic.
        Debug.Log("CONSENT_RECEIVED_LOG_MESSAGE");
    });

    _consentOverlay.SetActive(true);
}

Thay thế nội dung sau:

  • TITLE: tiêu đề của hộp thoại đồng ý, ví dụ: Location data.
  • MESSAGE_TEXT: văn bản của hộp thoại đồng ý, ví dụ:

    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: văn bản của nút hộp thoại đồng ý, ví dụ: OK.

  • CONSENT_RECEIVED_LOG_MESSAGE: thông điệp nhật ký cần ghi lại khi người dùng đồng ý, ví dụ: Consent received.