সুনির্দিষ্ট লোকেশন ডেটা সংক্রান্ত নীতি

প্ল্যাটফর্ম বেছে নিন: Android iOS Unity Android (Legacy)

আপনি যদি ব্যবহারকারীর সুনির্দিষ্ট লোকেশন ডেটা Google-এর সাথে শেয়ার করেন, তাহলে Google প্রকাশকের ক্ষেত্রে প্রযোজ্য নীতি আপনাকে সম্মতি সংক্রান্ত প্রয়োজনীয়তা ও একটি বিজ্ঞপ্তি প্রদান করে।

এই নীতি আপনার ক্ষেত্রে প্রযোজ্য হলে, নিম্নলিখিত উদাহরণে ডেটা শেয়ারিং সম্পর্কে আপনার ব্যবহারকারীদের জানানোর জন্য শীর্ষক, মেসেজ এবং বোতামের টেক্সট সেট করা হয়েছে:

Swift

func presentConsentOverlayFromViewController(_ rootViewController: UIViewController) {
  if (rootViewController == nil) {
    return;
  }

  DispatchQueue.main.async {
    let alert = UIAlertController(title: "TITLE",
        message: "MESSAGE_TEXT",
        preferredStyle: .alert)
    let alertAction = UIAlertAction(title: "BUTTON_TEXT",
        style: .default,
        handler: { _ in
          print("CONSENT_RECEIVED_LOG_MESSAGE")
        }
    )
    alert.addAction(alertAction)
    rootViewController.present(alert, animated: true, completion: nil)
  }
}

// To use the previous function, and if you are in a view controller, call:
presentConsentOverlayFromViewController(self)

Objective-C

- (void)presentConsentOverlayFromViewController:(UIViewController *)rootViewController {
  if (rootViewController == nil) {
    return;
  }

  dispatch_async(dispatch_get_main_queue(), ^{
      UIAlertController *alert = [UIAlertController
          alertControllerWithTitle:@"TITLE"
          message: @"MESSAGE_TEXT"
          preferredStyle:UIAlertControllerStyleAlert];
      UIAlertAction *ok = [UIAlertAction
          actionWithTitle:@"BUTTON_TEXT"
          style:UIAlertActionStyleDefault
          handler:^(UIAlertAction *action) {
            [alert dismissViewControllerAnimated:YES completion:^{
            NSLog(@"CONSENT_RECEIVED_LOG_MESSAGE");
            }];
          }];

      [alert addAction:ok];
      [rootViewController presentViewController:alert animated:YES completion:nil];
  });
}

// To use the previous function, and if you are in a view controller, call:
[self presentConsentOverlayFromViewController:self];

নিম্নলিখিতগুলি পরিবর্তন করুন:

  • 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।