近期为了在部门内做一次小型的技术分享。深入了解了一下Notification的实现原理。以及android的权限机制。在此做个记录。文章可能比較长,没耐心的话就直接看题纲吧。 先看一下以下两张图 图一: 看到这图可能大家不太明确,这和我们的notification有什么关系,我来简介一下背景。这是发 ...
分类:
移动开发 时间:
2017-08-15 21:00:32
阅读次数:
1643
1、AppIcon 尺寸 iPhone Notification iOS 7-10 20pt 2x( 40x40 ) 3x( 60x60 ) iPhone、Spotlight iOS 5,6 、Settings iOS 5-10 29pt 2x( 58x58 ) 3x( 87x87 ) iPhone ...
分类:
移动开发 时间:
2017-08-14 12:10:33
阅读次数:
3527
相比起Android,iOS在推送方面无疑惯例得更好。APNS(Apple Push Notification Service)是苹果公司提供的消息推送服务。其原理就是。第三方应用将要推送给用户的信息推送到苹果server。苹果server再通过统一的系统接口将这些信息推送到用户的手机上。假设对此不 ...
分类:
移动开发 时间:
2017-08-13 10:03:45
阅读次数:
323
1、安装keepalivedyuminstallkeepalived2、编辑配置文件/etc/keepalived/keepalived.conf主:global_defs{
notification_email{
xiaocheng@qq.com#可以添加多个邮箱接收报警
}
notification_email_fromadmin@163.com
smtp_serversmtp.qiye.163.com
smtp_connect_timeout30
rout..
分类:
其他好文 时间:
2017-08-07 17:35:33
阅读次数:
176
在使用手机时,当有未接来电或者新短消息时,手机会给出响应的提示信息,这些提示信息一般会显示到手机屏幕的状态栏上。 Android也提供了用于处理这些信息的类,它们是Notification和NotificationManager。当中,Notification代表的是具有全局效果的通知,而Notif ...
分类:
移动开发 时间:
2017-08-07 13:40:55
阅读次数:
261
Plant Maintenance (PM) IW32 - Change Plant Maintenance Order IW33 - Display Plant Maintenance Order IW34 - Create Notification Order IW51 - Create Ser ...
分类:
其他好文 时间:
2017-08-05 14:51:42
阅读次数:
213
pendingIntent字面意义:等待的。未决定的Intent。 要得到一个pendingIntent对象,用法类的静态方法 getActivity(Context, int, Intent, int),getBroadcast(Context, int, Intent, int),getServ ...
分类:
移动开发 时间:
2017-07-31 12:39:23
阅读次数:
167
IOS推送大致原理如下图 1、Provider:就是为指定IOS设备应用程序提供Push的服务器,(如果IOS设备的应用程序是客户端的话,那么Provider可以理解为服务端[消息的发起者]); 2、APNS:Apple Push Notification Service[苹果消息推送服务器]; 3 ...
分类:
移动开发 时间:
2017-07-26 10:45:33
阅读次数:
282
(转载此文,请说明原文出处) 苹果的官方公布 Update to the Apple Push Notification Service October 22, 2014 The Apple Push Notification service will be updated and changes ...
分类:
移动开发 时间:
2017-07-25 19:44:48
阅读次数:
247
Notification noti = new Notification.Builder(this) .setContentTitle(methodName + " " + strings[strings.length - 1]) //设置Notification标题, .setAutoCancel... ...
分类:
其他好文 时间:
2017-07-24 22:24:44
阅读次数:
135