title: How to fix "Violation of Usage of Android Advertising ID policy and section 4.8 of the Developer Distribution Agreement"
body: <p>Today I received this email from google:</p>
  
  <blockquote>
    <p>Hi developers at ...,</p>
    
    <p>After review, appName, com.app.package, has been removed from Google Play due to a policy violation. This app won’t be available to users until you submit a compliant update.</p>
    
    <p>Issue: Violation of Usage of Android Advertising ID policy and section 4.8 of the Developer Distribution Agreement</p>
    
    <p>Google Play requires developers to provide a valid privacy policy when the app requests or handles sensitive user or device information. We’ve identified that your app collects and transmits the Android advertising identifier, which is subject to a privacy policy requirement. If your app collects the Android advertising ID, you must provide a valid privacy policy in both the designated field in the Play Console, and from within the app.</p>
    
    <p>Next steps: Submit your app for another review</p>
    
    <p>Read through the Usage of Android Advertising ID and User Data policies, as well as the Developer Distribution Agreement, and make appropriate changes to your app. If you decide to collect sensitive user information, be sure to abide by the above policies, and include a link to a valid privacy policy on your app's store listing page and within your app. 
    Make sure that your app is compliant with all other Developer Program Policies. Additional enforcement could occur if there are further policy violations.
    Sign in to your Play Console and submit the update to your app.
    Alternatively, you may opt-out of this requirement by removing any requests for sensitive permissions or user data.</p>
    
    <p>If approved, your app will again be available with all installs, ratings, and reviews intact.  </p>
    
    <p>If you’ve reviewed the policy and feel this removal may have been in error, please reach out to our policy support team. One of my colleagues will get back to you within 2 business days.</p>
    
    <p>Thanks for helping us provide a clear and transparent experience for Google Play users. </p>
    
    <p>Regards,</p>
    
    <p>Justin</p>
  </blockquote>
  
  <p>I don't collect or transmit Android advertising at all even I don't show advertising in my app.<br>
  I've added these dependencies to the app level gradle: </p>
  
  <pre><code>// Firebase Core
  implementation 'com.google.firebase:firebase-core:16.0.7'
  
  // Crashlytics
  implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'
  
  // Firebase Cloud Messaging
  implementation 'com.google.firebase:firebase-messaging:17.3.4'
  
  // Google Play services
  implementation 'com.google.android.gms:play-services-auth:16.0.1'
  </code></pre>
  
  <p>If I have to add a privacy policy to my App, How can I create privacy policy?</p>
  
  <p><strong>Edit:</strong>
  I added a privacy policy and after a few hours, my app published again. For creating a privacy policy I used this <a href="https://gist.github.com/alphamu/c42f6c3fce530ca5e804e672fed70d78" rel="noreferrer">template</a></p>