0
我试图使用远程通知服务(Apple APN或Android GCM)将信息发送到前台(当前正在运行)的应用程序。通过远程通知服务在手机上分配解密密钥?
//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;
出于安全目的,我是从服务器直接发送一些加密的消息,我的应用程序,我试图通过远程通知服务发送解密密钥,以确保该解密密钥将不被任何其他应用程序接收,从而以某种方式提高安全性。
//this is how I receive notification in iOS app
-(void)application:.. didReceiveRemoteNotification:(NSDictionary *)userInfo;
因为我不需要提醒用户时,应用程序并不运行在前台,我只是想送信息,以通过第三局正在运行的应用程序,这是一个合理的方法来分发密码学密钥?
如果用户禁用了电话上的通知,该怎么办?
任何意见表示赞赏,谢谢。