title: Delphi and Firebase Push Notifications
body: <p>I'm using Rad Studio Berlin Update 2 and got Google Firebase with push notifications working with Android, but iOS seems to be blocking my ability to come up with a DeviceToken request.  I'm wondering how others have solved the problem.</p>
  
  <p>I'm using the following in the FormCreate event</p>
  
  <pre><code>{$IFDEF ANDROID}
  PushService := TPushServiceManager.Instance.GetServiceByName(TPushService.TServiceNames.GCM);
  PushService.AppProps[TPushService.TAppPropNames.GCMAppID] := '579735395957';
  {$ELSE}
  PushService := TPushServiceManager.Instance.GetServiceByName(TPushService.TServiceNames.APS);
  {$ENDIF}
  
  ServiceConnection := TPushServiceConnection.Create(PushService);
  ServiceConnection.Active := True;
  ServiceConnection.OnChange := OnServiceConnectionChange;
  ServiceConnection.OnReceiveNotification := OnReceiveNotificationEvent;
  </code></pre>
  
  <p>I get a dialog popup on ios that prevent me from getting the DeviceToken as shown below</p>
  
  <pre><code>DeviceId := PushService.DeviceIDValue[TPushService.TDeviceIDNames.DeviceId];
  DeviceToken := PushService.DeviceTokenValue[TPushService.TDeviceTokenNames.DeviceToken];
  </code></pre>
  
  <p>but all this works fine on Android.  Thoughts anyone?</p>