2015年7月30日

(九十七)集成JPush实现远程通知和推送的发送

摘要: 上节介绍了通过直接和APNS交互实现推送的方法,较为繁琐,最为重要的是发送推送需要特定的服务端,通过JPush,不仅可以简化客户端的接收,还可以通过控制台或者API实现通知的发送。 首先注册JPush,创建应用,需要传入p12交换证书,如果只是调试,传入开发证书即可,打开Keychain Acc... 阅读全文

posted @ 2015-07-30 17:30 张大大123 阅读(240) 评论(0) 推荐(0) 编辑

(九十六)借助APNS实现远程通知、后台任务

摘要: APNS全称为Apple Push Notification Service,可以实现在app不启动时也能通过服务器推送到iOS端特定设备的功能。 APNS的实现原理为先发送设备的UDID和应用的Bundle Identifier到APNS服务器,APNS加密后生成一个deviceToken,这... 阅读全文

posted @ 2015-07-30 16:10 张大大123 阅读(442) 评论(0) 推荐(0) 编辑

1063. Set Similarity (25)

摘要: 题目如下: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared... 阅读全文

posted @ 2015-07-30 10:09 张大大123 阅读(193) 评论(0) 推荐(0) 编辑

导航