title: Distribute a decryption key through Remote Notification Service on the phone?
body: <p>I'm trying to use remote notification service(Apple APN or Android GCM) to send info to an app in the foreground(currently running).</p>
  
  <pre><code>//This is register the iOS  app with Remote Notification Server   
  [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
                                                     UIRemoteNotificationTypeAlert];
  //Successfully registered since user allowed it    
  -(void)application:.. didRegisterForRemoteNotificationsWithDeviceToken:
                                                              (NSData *)deviceToken;
  </code></pre>
  
  <p>For security purpose, I'm sending some encrypted message from server to my app directly, and I'm trying to send the decryption key through Remote Notification Service, to make sure this decryption key won't be received by any other app, hence improve the security somehow.</p>
  
  <pre><code>//this is how I receive notification in iOS app    
  -(void)application:.. didReceiveRemoteNotification:(NSDictionary *)userInfo;
  </code></pre>
  
  <p>Since I don't need to alert the user when the app is not running in the foreground, I only want to send info to a running app through a third Authority, Is this a reasonable approach to distribute a cryptography key?</p>
  
  <p>What if the user disabled the notification on the phone? </p>
  
  <p>Any advice is appreciated, thank you.</p>