title: How to get device tokens as Apple Push Notification Service provider?
body: <p>I would like to add support for sending Apple Push Notifications to a iOS app. This is a news app, so every time some important news event has occurred,  then I would like to broadcast a push notification to all users and devices where the app is installed.</p>
  
  <p>According to the <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html" rel="nofollow">Apple Push Notification Service documentation</a>, in Figure 3-3 the Client App must send the device token to the Provider. </p>
  
  <p>In order to be able to send Push Notifications to all devices where my app is installed, do I have to create a webservice which receives and stores device tokens from the client apps when they register for notifications? In order to send a push notification, I need a token and the payload. I want to send a push notification to all users, typically many thousand users. So how can I best get access to the device tokens so that I can send the push notification to all users?</p>