title: App Store rejection due to Firebase phone auth
body: <p>Our app uses Firebase phone auth. The App Store review has rejected the app due to pushes being required:</p>
  <blockquote>
  <p>Guideline 4.5.4 - Design - Apple Sites and Services</p>
  <p>We noticed that your app requires push notifications in order to function.</p>
  <p>Specifically, we noticed if the Push Notifications setting was not enabled on our device, we encountered an error message after entering our phone number within the app.</p>
  <p>Next Steps</p>
  <p>Push notifications must be optional and must obtain the user's consent to be used within the app.</p>
  </blockquote>
  <p>And they've also attached the screenshot that depicts Firebase error &quot;Remote notifications and background fetching need to be set up for the app [...]&quot;</p>
  <p>Firebase documentation states that APNs notifications are absolutely required for phone auth to function:<br />
  <a href="https://firebase.google.com/docs/auth/ios/phone-auth" rel="noreferrer">https://firebase.google.com/docs/auth/ios/phone-auth</a></p>
  <blockquote>
  <p>To use phone number authentication, your app must be able to receive APNs notifications from Firebase. When you sign in a user with their phone number for the first time on a device, Firebase Authentication sends a silent push notification to the device to verify that the phone number sign-in request comes from your app. (For this reason, phone number sign-in cannot be used on a simulator.)</p>
  </blockquote>
  <p>However App Store review guidelines state that Push Notifications must not be required in order for the app to function: <a href="https://developer.apple.com/app-store/review/guidelines/" rel="noreferrer">https://developer.apple.com/app-store/review/guidelines/</a></p>
  <blockquote>
  <p>4.5.4 Push Notifications must not be required for the app to function, and should not be used for advertising, promotions, or direct marketing purposes or to send sensitive personal or confidential information.</p>
  </blockquote>
  <p>Users need to sign in before they can use the app (the app is about sending digital GIF invitations to your guests and sharing photos), which is why Push Notifications are basically required for the app to function, if the sign in method is Firebase phone auth.</p>
  <p>We have tested the app a lot, and the authentication works without a problem when push notifications are enabled (on real devices, both in distribution Ad Hoc builds with production environment and development builds with sandbox environment).</p>
  <p>Come to think of it, how did App Review team even disable Push Notifications? The notification center setting does not stop actual pushes, it just doesn't display them.
  <a href="https://i.stack.imgur.com/ea7g1.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ea7g1.jpg" alt="Setting is turned off" /></a>
  We have tested with this setting off, and firebase phone auth works fine, pushes are still coming through as expected.</p>
  <p>I am very surprised with this issue, as Firebase is a huge service provider. Did anyone else encounter this issue?
  Are there plans to remove APNs requirement for phone auth? Is there maybe some other way to use Firebase phone auth without pushes?</p>