1.0.1 • Published 4 years ago

push-ios v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

push-ios

IOS推送Node服务

根据IOS提供的推送服务实现的 Node 版SDK。支持IOS通知栏推送功能,欢迎大家使用。

华为推送

小米推送

魅族推送

oppo推送

友盟推送

安装

npm install push-ios --save-dev

实例

const ios = new IOS({
  cert: 'cert.pem',
  key: 'key.pem',
  passphrase: 'psw', // pem证书密码
  production: true,  // 是否生产环境
  topic: 'Topic Number'
});

ios.push({
  title: 'title',
  content: 'content',
  list: ['Token'],
  sleep: 0, // 请求间隔时间/毫秒
  aps: {
    // ...apsConfig
  }
  success(res) {
    // ...
  },
  error(err) {
    // ...
  },
  finish(res){
    // 所有请求完成回调
  }
});

参数

Setter NameTarget PropertyType
alertaps.alertString orObject
bodyaps.alert.bodyString
locKeyaps.alert.loc-keyString
locArgsaps.alert.loc-argsArray
titleaps.alert.titleString
titleLocKeyaps.alert.title-loc-keyString
titleLocArgsaps.alert.title-loc-argsArray
actionaps.alert.actionString
actionLocKeyaps.alert.action-loc-keyString
launchImageaps.launch-imageString
badgeaps.badgeNumber
soundaps.soundString
contentAvailableaps.content-available1
mutableContentaps.mutable-content1
urlArgsaps.url-argsArray
categoryaps.categoryString
threadIdaps.thread-idString
mdmmdmString

APN官方文档

1.0.1

4 years ago

1.0.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago