Can I use Apple Push Notification Service to have my app do something without notifying user

My Algorithm wishes to work this way-
If some desired event occurs at my server then I wish to send a small amount of data to every user my app (foreground or background). But, instead of notifying the user I wish my app to do some computation on data and acknowledge server. Remember user must not be notified.
If it's not possible then -
I guess that this can be achieved by creating an open connection between my server and app. But, it will consume a lot of resources.
Also the events can occur any time.

My Algorithm wishes to work this way-
If some desired event occurs at my server then I wish to send a small amount of data to every user my app (foreground or background). But, instead of notifying the user I wish my app to do some computation on data and acknowledge server. Remember user must not be notified.
If it's not possible then -
I guess that this can be achieved by creating an open connection between my server and app. But, it will consume a lot of resources.
Also the events can occur any time.

Similar Messages

  • Apple push notification service certificates

    I buy a server app to create my own network at my home business. the apple push notification service certificates have additional cost? I enter my pass but the app do not show me a price for a device. Normally all apple in-app upgrade show an alert. This certificate have an additional cost?

    Server.app > select the server at the top of the left column > select Settings > select the Edit button to the right of enable Apple Push Notification > select Renew.
    FWIW, I've previously logged an enhancement request with Apple, as this mechanism involves certificates, and isn't available on the certificates page within Server.app, nor is there a way to access the settings from the alert.  This renewal mechanism just isn't as easy to find as it should be.  You're not the first to be confounded by this stuff, in other words.

  • The following Apple Push Notification Service certificate will expire June 10, 2014.

    We have a BES10.1.2 server with a UDS server.  We have multiple iOS users that access work emails via Work Space/Work Connect.  I do not find anything in the licensing that indicates anything is due to expire, however, we are receiving emails that the Apple Push Notification Service certificate is due to expire tomorrow.  How do I determine if this is in fact the case?  How do I renew this certificate?

    Greetings Prem garigapati,
    I understand you are receiving a message regarding an expiring certificate. Are you using a version of OS X Server on your computer? This article has additional information which may be helpful:
    OS X Server: How to renew expired push certificates - Apple Support
    If the certificate you use with the Apple Push Notification service (APNs) has expired, you can renew it using OS X Server.
    Use these steps to renew any push notification certificates that have expired:
    Open the OS X Server app.
    Select your server in the Server app sidebar, then click Settings.
    Click the Edit button next to the “Enable Apple push notifications” option.
    Enter your organization's Apple ID in the sheet that appears, then click Renew to renew the expired certificate.
    Deselect (uncheck) the “Enable Apple push notifications” option.
    Select (check) the “Enable Apple push notifications” option.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Mail missing apple push notification service

    After Software update on 03/20/2012 Apple Mail Application will not open. Error message missing apple push notification service ect...

    Greetings Prem garigapati,
    I understand you are receiving a message regarding an expiring certificate. Are you using a version of OS X Server on your computer? This article has additional information which may be helpful:
    OS X Server: How to renew expired push certificates - Apple Support
    If the certificate you use with the Apple Push Notification service (APNs) has expired, you can renew it using OS X Server.
    Use these steps to renew any push notification certificates that have expired:
    Open the OS X Server app.
    Select your server in the Server app sidebar, then click Settings.
    Click the Edit button next to the “Enable Apple push notifications” option.
    Enter your organization's Apple ID in the sheet that appears, then click Renew to renew the expired certificate.
    Deselect (uncheck) the “Enable Apple push notifications” option.
    Select (check) the “Enable Apple push notifications” option.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Apple Push Notification Service Certificate will expire in 30 days

    I am receiving mails regarding "Apple Push Notification Service Certificate will expire in 30 days",
    i dont know what to do at this time, where to verify this one, i know renew of iOS developer program but i don't have any idea about this Push Notification Service Certificate please help my out,

    Greetings Prem garigapati,
    I understand you are receiving a message regarding an expiring certificate. Are you using a version of OS X Server on your computer? This article has additional information which may be helpful:
    OS X Server: How to renew expired push certificates - Apple Support
    If the certificate you use with the Apple Push Notification service (APNs) has expired, you can renew it using OS X Server.
    Use these steps to renew any push notification certificates that have expired:
    Open the OS X Server app.
    Select your server in the Server app sidebar, then click Settings.
    Click the Edit button next to the “Enable Apple push notifications” option.
    Enter your organization's Apple ID in the sheet that appears, then click Renew to renew the expired certificate.
    Deselect (uncheck) the “Enable Apple push notifications” option.
    Select (check) the “Enable Apple push notifications” option.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • *HELP* - Apple Push Notification Service certificates

    For several times now I received the following Message from "[email protected]":
    The following Apple Push Notification Service certificates, created for AppleID [email protected] will expire on March 14, 2015. Revoking or allowing this certificate to expire will require existing devices to be re-enrolled with a new push certificate. You can renew your certificates with your OS X server administration tools. macserver.local - apns:com.apple.calendar
    macserver.local - apns:com.apple.contact
    macserver.local - apns:com.apple.mail
    macserver.local - apns:com.apple.mgmt
    macserver.local - apns:com.apple.alerts
    What does it mean? Where does it come from? I have absolutely no idea?
    The only thing that comes into my mind was the exchange of my old TimeCapsule with a MacMini as a Fileserver last year. Those days I played a little with OS Mavericks Server, but finally didn't use it. I didn't even purchase the Server App for Yosemite. Is this any sort of "artefact" from my Server exploration activities? Is there any risk that my poor Mac will explode and kill me on March 14??????????

    Server.app > select the server at the top of the left column > select Settings > select the Edit button to the right of enable Apple Push Notification > select Renew.
    FWIW, I've previously logged an enhancement request with Apple, as this mechanism involves certificates, and isn't available on the certificates page within Server.app, nor is there a way to access the settings from the alert.  This renewal mechanism just isn't as easy to find as it should be.  You're not the first to be confounded by this stuff, in other words.

  • Does the new command 2 binary format work with Apple Push Notification Service? I receive an invalid response status code of 128.

    Does the new command 2 binary format work with Apple Push Notification Service? I am sending 2 messages with the same payload to 2 different devices. None of the messages display on either of the devices. It seems that at least 3 should have been displayed. For my first device, I received a response with an invalid status code of 128 and the message identifier is 2 indicating that the first message was OK. However no message was displayed on the phone. For the second device, I did not receive any error response, but no message was displayed on the device.
    Does ANS perform any validation on the message identifier? The Local and Push Notification Programmin Guide says the message identifier is:
    An arbitrary, opaque value that identifies this notification. This identifier is used for reporting errors to your server.
    I know that the device tokens are valid because the same tokens work when I use the legacy basic or enhanced formats. The phones display the messages correctly when I send to ANS using the old ANS message format.
    Here is the data and the response:
    Sent to ANS: 2 0 0 0 158 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 119 141 5 0 1 5 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 119 141 5 0 1 5
    ANS returned an error: 8 128 0 0 0 2
    Sent to ANS: 2 0 0 0 158 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 5 4 0 4 83 7 119 147 5 0 1 5 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 6 4 0 4 83 7 119 147 5 0 1 5
    ANS did not return a response.

    Hello, can you please help me ?
    You specified sample payload here:
    TerrellFromLockhart wrote:
    I finally got this to work. The picture in the Programming Guide is very confusing. The solution was to prefix every message's frame data with command 2 and that messsage's frame data length. Here is a sample:
    ANS frame: 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 4 4 0 4 83 7 199 195 5 0 1 10
    About to read response at Thu Feb 20 15:40:20 CST 2014
    SocketTimeoutException
    2 - is clearly command
    0 0 0 77 - frame length
    1 - item Id
    what's 0 32 ? According to this page https://developer.apple.com/library/ios/documentation/NetworkingInternet/Concept ual/RemoteNotificationsPG/Chapters/Commu…
    Item id  should be followed by item length. But item length is obviously greater than 32 because device token's length is 32. Can you please explain why 0 32 were used? and do you have any insight on item id meaning ?

  • In the Apple Push Notification Service,How long does a push notification sit in queue before being removed?

      Official developer documentation isn't clear about this.
    Apple Push Notification Service includes a default Quality of Service (QoS) component that performs a store-and-forward function. If APNs attempts to deliver a notification but the device is offline, the QoS stores the notification. It retains only one notification per application on a device: the last notification received from a provider for that application. When the offline device later reconnects, the QoS forwards the stored notification to the device. The QoS retains a notification for a limited period before deleting it.

    This is an iPad user to user forum, so you are not addressing Apple. We have no way to know what and when Apple will do something.
     Cheers, Tom

  • Apple push notification service problem

    Hi all,
    I'm trying to implement notification push service to my app.
    I'm reading here:
    http://mobiforge.com/developing/story/programming-apple-push-notification-servic es
    and here:
    https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Concep tual/RemoteNotificationsPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP 40008194-CH1-SW1
    When I try to connect to the sandbox service server with my php code:
    [code]
    <?php
          $token = $_GET['myapptoken'];
          $deviceToken = $token; // token dell'iPhone a cui inviare la notifica
          // Passphrase for the private key (ck.pem file)
           $pass = "mypass";
          // Get the parameters from http get or from command line
          $message = 'Notification text';
          $badge = 1;
          $sound = 'default';
          // Construct the notification payload
          $body = array();
          $body['aps'] = array('alert' => $message);
          if ($badge)
                $body['aps']['badge'] = $badge;
          if ($sound)
                $body['aps']['sound'] = $sound;
          /* End of Configurable Items */
          $ctx = stream_context_create();
          stream_context_set_option($ctx, 'ssl', 'local_cert', 'apns-dev.pem');
          // assume the private key passphase was removed.
          stream_context_set_option($ctx, 'ssl', 'passphrase', $pass);
          $fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 120, STREAM_CLIENT_CONNECT, $ctx);
          if (!$fp) {
                print "Failed to connect $err $errstrn";
                return;
          } else {
                print "Connection OK\n";
          $payload = json_encode($body);
          $msg = chr(0).pack('n',32).pack('H*', str_replace(' ', '', $deviceToken)).pack('n',strlen($payload)).$payload;
          print "sending message :" . $payload . "\n";
          fwrite($fp, $msg);
          fclose($fp);
    ?>
    [/code]
    I receive this message:
    Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection timed out) Failed to connect 110

    Please show me where is answer for this..

  • Apple Push Notification Services SSL error

    Hi all,
    I used APNS to Push Notification to my iOS App, and i take some error.
    When i send push to iOS App by Web service, I can't connect to Apple Push Server.
    This is tutorial : https://www.youtube.com/watch?v=_3YlqWWnI6s
    This is my php code :
    <?PHP
    if($_POST['message']){
      $deviceToken = 'xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx';
      $message = stripslashes($_POST['message']);
      $payload = '{
      "aps" :
      { "alert" : " '.$message.' ",
      "badge" : 1,
      "sound" : "bingbong.aiff"
      $ctx = stream_context_create();
      stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem');
      stream_context_set_option($ctx, 'ssl', 'passphrase', 'xxxxxxxx');
      $fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx);
      if(!$fp){
      print "Failed to connect $err $errstrn";
      return;
      }else{
      print "Notifications sent!";
      $devArray = array();
      $devArray[] = $deviceToken;
      foreach($devArray as $deviceToken){
      $msg = chr(0) . pack("n",32) . pack('H*', str_replace(' ', '', $deviceToken)) . pack("n",strlen($payload)) . $payload;
      print "sending message :" . $payload . "n";
      fwrite($fp, $msg);
      fclose($fp);
    ?>
    <form action="sendnotification.php" method="post">
      <input type="text" name="message" maxlength="100">
      <input type="submit" value="Send Notification">
    </form>
    What is my wrong?
    Thanks in advance,
    --DevirosVR--

    You mean Server.app? Yeah unless there is another 'Enable Apple push notifications' checkbox somehere else. But just to clarify, I have cecked the 'Enable Apple push notifications' checkbox in Server.app->My Server->Settings.

  • Apple push notification service certificate multiple servers

    Hello;
    Can I use one apple ID for more than one Lion server service certificate?
    Thanks.

    Did you ever get an answer to this?
    thanks,
    chris

  • Apple Push Notification

    Hi,
    I am using Apple push notification service.Its working fine,But when application run in background and got the notification,the delegate method didFinishLaunchingWithOptions didn't get call when launch the application by pressing application icon.Notification didn't have alert.
    Please provide suggestions.

    If you bring app back from background to the foreground, "applicationWillEnterForeground" is called instead of "didFinishLaunchingWithOptions", because the app is already launched, you will have to force quit the application before you can re-launch the app again.
    I hope this helps

  • "Missing Push Notification Entitlement" when submitting Air app to IOS AppStore

    After submitting my Air app (and update to the existing app) to the App Store, I've received an automated message from itunesconnect stating that my app is ""Missing Push Notification Entitlement". The full message is as follows:
    Dear developer,
    We have discovered one or more issues with your recent delivery for "xxxx". Your delivery was successful, but you may wish to correct the following issues in your next delivery: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement.
    I've submitted multiple updates and never had this issue. Furthermore, I don't use push notifications, and as far as I can tell they are not enabled (nor where they ever configured or enabled) in the relevant app id on the developer portal nor in the application.xml. My Air app, as far as I can tell, isn't including any classes that are used to receive push notifications either.
    Any thoughts, ideas?

    Yup, i have the same issue here. AIR 3.5.something, Flash Builder 4.7 ... i received the damn mail today just seconds after successfully uploaded the app with Application Loader Version 2.8 (321). I didn't used any Push Notification services functionalities neither enabled it in the distribution provisoning profile. Like Alan_Haugen says the tone of the words make you believe that everything is fine, and that next time you upload stuff, take care to fix that. Don't know, will wait to see if the app will be approved.
    Adobe please don't get angry now - but maybe is time to take problems that developers using your technology have - more seriously. You know, we are the last ones defending your frontiers in the AIR / FLASH frontlines and maybe we deserved more attention here ???? I mean the answer you placed here is the same if someone had mechanical car issues, and you suggest him to try to stop the car and start the car again then all troubles will be gone. Cmmon.
    I mean there is only few calls to Apple needed and few hours of investigation to get there. And I think at least you can give us some credibility if you make us believe you are investigating the issue, and not redirect us off to stackoverflow - just like we are from Mars, and we didn't heard about it until today.
    I'm really sorry for maybe a litlle harsh words, and really i would like to continue to use AIR / FLASH technologies but you must understand and i'm 100% sure that more or less all people springling around here are in enterprises. And in enterprises there are no answers like maybe, don't know, not sure, will see, etc. Because with such answers you're dead in less than needed to close one eye.

  • Invalid device in Apple push notification

    We have done an apple  push notification for an iphone application and its working fine.Using the APNs certificate, it is displaying the push message. Suppose the corresponding application is uninstalled from a particular device and I don't want to push the message to that device any more. How could I identify whether the device to which the messages are send is valid?
    Any sample CF code or link for this is appreciated.

    Greetings Prem garigapati,
    I understand you are receiving a message regarding an expiring certificate. Are you using a version of OS X Server on your computer? This article has additional information which may be helpful:
    OS X Server: How to renew expired push certificates - Apple Support
    If the certificate you use with the Apple Push Notification service (APNs) has expired, you can renew it using OS X Server.
    Use these steps to renew any push notification certificates that have expired:
    Open the OS X Server app.
    Select your server in the Server app sidebar, then click Settings.
    Click the Edit button next to the “Enable Apple push notifications” option.
    Enter your organization's Apple ID in the sheet that appears, then click Renew to renew the expired certificate.
    Deselect (uncheck) the “Enable Apple push notifications” option.
    Select (check) the “Enable Apple push notifications” option.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Apple Push Notification in AS3

    I've been searching all over the internet for this but could not found any way to do it.
    Can somebody please show or point me to some tutorial on how to do this. Or is this even possible at this time?
    Thanks...

    Greetings Prem garigapati,
    I understand you are receiving a message regarding an expiring certificate. Are you using a version of OS X Server on your computer? This article has additional information which may be helpful:
    OS X Server: How to renew expired push certificates - Apple Support
    If the certificate you use with the Apple Push Notification service (APNs) has expired, you can renew it using OS X Server.
    Use these steps to renew any push notification certificates that have expired:
    Open the OS X Server app.
    Select your server in the Server app sidebar, then click Settings.
    Click the Edit button next to the “Enable Apple push notifications” option.
    Enter your organization's Apple ID in the sheet that appears, then click Renew to renew the expired certificate.
    Deselect (uncheck) the “Enable Apple push notifications” option.
    Select (check) the “Enable Apple push notifications” option.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

Maybe you are looking for

  • Open File in Acrobat or Reader

    I have Acrobat 8 and Reader X installed on my PC (Vista Business). After installing updates for both programs over the past few months I have lost the default toolbar on documents I download from the web and need to use F8 to get a toolbar. In additi

  • What software should I use for editing videos from a Vixia HF R500?

    I have a VIxia HF R500. What editing software should I use. I am a beginner.

  • Ios crashed. due a third party application. what I can do with this?

    I just received this message on my ipad when I open safari.  Due to a third party application IOS is crashed. My i pad air has ios 8.0.2, what should I do to fixe it?

  • Are shared photo streams permenant?

    I realize photos on photo stream only last 30 days and holds your most recent 1000 photos. In order to organize my photos I have made "shared photo streams" that are stored on the icloud.  Are these going to go away at 30 days or can I use this as a

  • Qos in CME

    I have a cme express in my router and now I have PC's and Ip phones in the same subnet. Which is the better option for having voice and data in the same subnet? Is it better to create 2 different Vlan's ? How can I prioritize 1 Vlan over the other Is