Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a well explained documentation in the <a href="http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html" rel="nofollow noreferrer">Apple Online Library</a>.</p> <p>With Apple Push Notification Service (APNS) you can get ANY combination of:</p> <ul> <li>An alert message to display to the user </li> <li>A number to badge the application icon with</li> <li>A sound to play</li> </ul> <p>When I say any I mean that no alert, no badge and no sound are also possible. Remote notifications are available even if the application is closed (but at least once executed, for register into the notification service), iOS has the debt of manage the push and wake up your application.</p> <p>If you want to use APNS you need </p> <ul> <li>a web server (will generate the push)</li> <li>a CSR from the web server</li> <li>an apple certificate trusting your server (this is the reason of CSR)</li> <li>an iOS application with an App ID configured for Notifications</li> </ul> <p>Everything related with CSR and trusting your server is detailed in the iOS provisioning portal, "App ID" section, "How to" tab. Try <a href="https://developer.apple.com/ios/manage/bundles/howto.action" rel="nofollow noreferrer">this link</a>.</p> <p>In your web server must be hosted the APNS provider who will do these two actions:</p> <ul> <li><p>Register a token identifying a concrete installation on a concrete iOS device. This token is generated for the Apple APNS and will be sended to the Provider by your app. <img src="https://i.stack.imgur.com/OjFgE.jpg" alt="enter image description here"></p></li> <li><p>Generate push notifications: Will be sended from your provider to Apple APNS, an Apple APNS will delivery to your app (with an alert and/or badge and/or sound and/or silence mode) <img src="https://i.stack.imgur.com/Kn6hj.jpg" alt="enter image description here"></p></li> </ul> <p>The APNS notification will be delivered to your app using the Remote Notification System.</p> <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo </code></pre> <p>You can look into the <a href="http://www.easyapns.com/apple-delegate" rel="nofollow noreferrer">Easy APNS App Delegate</a></p> <p>As a provider you can use your own developed or you can use/modify anyone already downloadable like</p> <ul> <li><a href="http://www.easyapns.com" rel="nofollow noreferrer">Easy APNS</a></li> <li><a href="https://github.com/notnoop/java-apns" rel="nofollow noreferrer">Java APNS</a></li> <li><a href="http://code.google.com/p/javapns/" rel="nofollow noreferrer">Javapns</a></li> <li>etc</li> </ul> <p>So the answer is YES, it is possible. Using <a href="https://github.com/manifestinteractive/easyapns/blob/master/src/php/samples.php" rel="nofollow noreferrer">Easy APNS esamples</a>, the push generation must look like this: </p> <pre><code>$apns-&gt;newMessage(1); $apns-&gt;addMessageCustom('acme2', array('bang', 'whiz')); $apns-&gt;queueMessage(); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload