Skip to content

Commit 6b21916

Browse files
author
yzimhao
committed
遗漏的mutable-available错误纠正
1 parent 517000c commit 6b21916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $push->setNotificationAlert('alert');
7676

7777
```php
7878
// iosNotification($alert = '', array $notification = array())
79-
// 数组 $notification 的键支持 'sound', 'badge', 'content-available', 'mutable-available', category', 'extras' 中的一个或多个
79+
// 数组 $notification 的键支持 'sound', 'badge', 'content-available', 'mutable-content', category', 'extras' 中的一个或多个
8080

8181
// 调用示例
8282
$push->iosNotification();
@@ -100,7 +100,7 @@ $push->iosNotification('hello', [
100100
| sound | 表示通知提示声音,默认填充为空字符串 |
101101
| badge | 表示应用角标,把角标数字改为指定的数字;为 0 表示清除,支持 '+1','-1' 这样的字符串,表示在原有的 badge 基础上进行增减,默认填充为 '+1' |
102102
| content-available | 表示推送唤醒,仅接受 true 表示为 Background Remote Notification,若不填默认表示普通的 Remote Notification |
103-
| mutable-available | 表示通知扩展, 仅接受 true 表示支持 iOS10 的 UNNotificationServiceExtension, 若不填默认表示普通的 Remote Notification |
103+
| mutable-content | 表示通知扩展, 仅接受 true 表示支持 iOS10 的 UNNotificationServiceExtension, 若不填默认表示普通的 Remote Notification |
104104
| category | IOS8才支持。设置 APNs payload 中的 'category' 字段值 |
105105
| extras | 表示扩展字段,接受一个数组,自定义 Key/value 信息以供业务使用 |
106106

0 commit comments

Comments
 (0)