@tencentcloud/sdk-mcp 1.6.7 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/knowledge/build-index.js +4 -1
- package/knowledge/content-loader.js +3 -1
- package/knowledge/search/filter-pool.js +12 -4
- package/knowledge/search/query-normalizer.js +76 -0
- package/knowledge/search/search-knowledge.js +104 -5
- package/package.json +1 -1
- package/resource/_schema/feature-aliases.yaml +1 -0
- package/resource/_schema/query-normalization.yaml +9 -0
- package/resource/index/manifest.json +1 -1
- package/resource/integration/callkit/preset/android/integration.md +0 -14
- package/resource/integration/callkit/preset/flutter/integration.md +0 -9
- package/resource/integration/callkit/preset/ios/integration.md +2 -15
- package/resource/integration/callkit/preset/react/integration.md +0 -21
- package/resource/integration/callkit/preset/vue/integration.md +0 -27
- package/resource/integration/chat/preset/android/integration.md +3 -10
- package/resource/integration/chat/preset/flutter/integration.md +11 -13
- package/resource/integration/chat/preset/ios/integration.md +9 -16
- package/resource/integration/chat/preset/react/integration.md +1 -9
- package/resource/integration/chat/preset/uni-app/integration.md +0 -9
- package/resource/integration/chat/preset/vue/integration.md +3 -13
- package/resource/integration/livekit/preset/live/android/live-host-integration.md +0 -4
- package/resource/integration/livekit/preset/live/android/prepare-integration.md +8 -21
- package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +0 -1
- package/resource/integration/livekit/preset/live/ios/live-host-integration.md +0 -5
- package/resource/integration/livekit/preset/live/ios/live-list-integration.md +0 -4
- package/resource/integration/livekit/preset/live/ios/prepare-integration.md +0 -9
- package/resource/integration/livekit/preset/live/vue/live-list-integration.md +1 -5
- package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +36 -147
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +1 -6
- package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +432 -286
- package/resource/integration/roomkit/preset/vue/integration.md +11 -24
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +1 -20
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +0 -12
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +1 -12
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +0 -19
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +0 -13
- package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +1 -17
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +0 -13
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +0 -13
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +0 -12
- package/resource/knowledge/callkit/core-sdk/miniprogram/call-engine.md +0 -1
- package/resource/knowledge/callkit/core-sdk/miniprogram/call-event.md +0 -2
- package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +0 -15
- package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +0 -15
- package/resource/knowledge/callkit/core-sdk/web/call-engine.md +0 -1
- package/resource/knowledge/callkit/core-sdk/web/call-event.md +0 -1
- package/resource/knowledge/callkit/core-sdk/web/callengine-api-overview.md +0 -1
- package/resource/knowledge/callkit/faq/android.md +5 -15
- package/resource/knowledge/callkit/faq/common.md +0 -1
- package/resource/knowledge/callkit/faq/ios.md +1 -4
- package/resource/knowledge/callkit/faq/uniapp-app.md +0 -2
- package/resource/knowledge/callkit/faq/uniapp-miniprogram.md +0 -5
- package/resource/knowledge/callkit/faq/web.md +1 -5
- package/resource/knowledge/callkit/preset/android/api.md +0 -6
- package/resource/knowledge/callkit/preset/ios/api.md +0 -4
- package/resource/knowledge/callkit/preset/miniprogram/api.md +0 -2
- package/resource/knowledge/callkit/preset/react/api.md +2 -4
- package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +2 -8
- package/resource/knowledge/callkit/preset/vue/api.md +2 -4
- package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +2 -8
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +1 -4
- package/resource/knowledge/chat/preset/android/features/contact-list.md +0 -5
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +1 -10
- package/resource/knowledge/chat/preset/android/features/language.md +1 -12
- package/resource/knowledge/chat/preset/android/features/message-input.md +1 -9
- package/resource/knowledge/chat/preset/android/features/message-list.md +1 -11
- package/resource/knowledge/chat/preset/android/features/search.md +0 -7
- package/resource/knowledge/chat/preset/android/features/theme.md +0 -6
- package/resource/knowledge/chat/preset/android-view/integration.md +3 -5
- package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +1 -4
- package/resource/knowledge/chat/preset/flutter/features/contact-list.md +1 -6
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +1 -10
- package/resource/knowledge/chat/preset/flutter/features/language.md +0 -3
- package/resource/knowledge/chat/preset/flutter/features/message-input.md +1 -9
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +1 -11
- package/resource/knowledge/chat/preset/flutter/features/search.md +0 -7
- package/resource/knowledge/chat/preset/flutter/features/theme.md +0 -6
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +1 -4
- package/resource/knowledge/chat/preset/ios/features/contact-list.md +1 -8
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +1 -10
- package/resource/knowledge/chat/preset/ios/features/language.md +0 -11
- package/resource/knowledge/chat/preset/ios/features/message-input.md +1 -9
- package/resource/knowledge/chat/preset/ios/features/message-list.md +1 -11
- package/resource/knowledge/chat/preset/ios/features/search.md +0 -5
- package/resource/knowledge/chat/preset/ios/features/theme.md +0 -6
- package/resource/knowledge/chat/preset/ios-uikit/integration.md +5 -17
- package/resource/knowledge/chat/preset/react/features/chat-setting.md +0 -2
- package/resource/knowledge/chat/preset/react/features/contact-list.md +0 -23
- package/resource/knowledge/chat/preset/react/features/conversation-actions.md +2 -11
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +2 -23
- package/resource/knowledge/chat/preset/react/features/conversation-preview.md +0 -6
- package/resource/knowledge/chat/preset/react/features/search.md +0 -1
- package/resource/knowledge/chat/preset/vue/features/chat-header.md +1 -3
- package/resource/knowledge/chat/preset/vue/features/chat-setting.md +3 -5
- package/resource/knowledge/chat/preset/vue/features/contact-list.md +3 -9
- package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +0 -3
- package/resource/knowledge/chat/preset/vue/features/conversation-list.md +2 -13
- package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +2 -5
- package/resource/knowledge/chat/preset/vue/features/conversation-search.md +1 -0
- package/resource/knowledge/chat/preset/vue/features/message-input.md +2 -4
- package/resource/knowledge/chat/preset/vue/features/message-list.md +2 -4
- package/resource/knowledge/chat/preset/vue/features/search.md +4 -1
- package/resource/knowledge/chat/preset/vue/features/theme.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +0 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +1 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +0 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +1 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +0 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +1 -3
- package/resource/knowledge/livekit/core-sdk/features/android/audience-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/android/audio-effect.md +1 -3
- package/resource/knowledge/livekit/core-sdk/features/android/barrage.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/android/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/android/gift.md +2 -7
- package/resource/knowledge/livekit/core-sdk/features/android/live-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/audience-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/audio-effect.md +0 -4
- package/resource/knowledge/livekit/core-sdk/features/flutter/barrage.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/gift.md +3 -7
- package/resource/knowledge/livekit/core-sdk/features/flutter/live-list.md +3 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/audience-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/audio-effect.md +1 -3
- package/resource/knowledge/livekit/core-sdk/features/ios/barrage.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/gift.md +2 -7
- package/resource/knowledge/livekit/core-sdk/features/ios/live-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/audience-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/audio-effect.md +1 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/barrage.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/gift.md +4 -8
- package/resource/knowledge/livekit/core-sdk/features/uni-app/live-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/live/android/co-guest-interaction.md +0 -3
- package/resource/knowledge/livekit/core-sdk/live/android/host-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/android/integration.md +0 -7
- package/resource/knowledge/livekit/core-sdk/live/flutter/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/flutter/host-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/flutter/integration.md +1 -7
- package/resource/knowledge/livekit/core-sdk/live/ios/co-guest-interaction.md +0 -3
- package/resource/knowledge/livekit/core-sdk/live/ios/host-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/ios/integration.md +0 -7
- package/resource/knowledge/livekit/core-sdk/live/uni-app/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/uni-app/host-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/uni-app/integration.md +0 -5
- package/resource/knowledge/livekit/core-sdk/voice/android/co-guest-interaction.md +1 -3
- package/resource/knowledge/livekit/core-sdk/voice/android/host-interaction.md +4 -13
- package/resource/knowledge/livekit/core-sdk/voice/android/integration.md +5 -5
- package/resource/knowledge/livekit/core-sdk/voice/flutter/co-guest-interaction.md +0 -3
- package/resource/knowledge/livekit/core-sdk/voice/flutter/integration.md +18 -21
- package/resource/knowledge/livekit/core-sdk/voice/ios/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/ios/host-interaction.md +2 -11
- package/resource/knowledge/livekit/core-sdk/voice/ios/integration.md +8 -8
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/integration.md +1 -4
- package/resource/knowledge/livekit/faq/error-code.md +1 -1
- package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +0 -5
- package/resource/knowledge/livekit/preset/live/vue/features/live-audience-list.md +1 -1
- package/resource/knowledge/livekit/preset/live/vue/features/live-view.md +0 -3
- package/resource/knowledge/push/api-reference/donut.md +1 -6
- package/resource/knowledge/push/api-reference/harmonyos.md +0 -2
- package/resource/knowledge/push/api-reference/react-native.md +0 -3
- package/resource/knowledge/push/api-reference/uni-app.md +3 -5
- package/resource/knowledge/push/api-reference/unity.md +0 -1
- package/resource/knowledge/push/api-reference/unreal-engine.md +0 -1
- package/resource/knowledge/push/config/android/fcm.md +0 -6
- package/resource/knowledge/push/config/android/honor.md +1 -7
- package/resource/knowledge/push/config/android/huawei.md +1 -9
- package/resource/knowledge/push/config/android/meizu.md +1 -7
- package/resource/knowledge/push/config/android/oppo.md +1 -3
- package/resource/knowledge/push/config/android/vivo.md +1 -12
- package/resource/knowledge/push/config/android/xiaomi.md +0 -5
- package/resource/knowledge/push/config/donut.md +0 -12
- package/resource/knowledge/push/config/harmonyos.md +18 -7
- package/resource/knowledge/push/config/ios.md +26 -33
- package/resource/knowledge/push/config/react-native.md +0 -31
- package/resource/knowledge/push/config/unity.md +0 -31
- package/resource/knowledge/push/config/unreal-engine.md +0 -31
- package/resource/knowledge/push/integration/android.md +137 -46
- package/resource/knowledge/push/integration/donut.md +5 -21
- package/resource/knowledge/push/integration/flutter.md +1 -3
- package/resource/knowledge/push/integration/harmonyos.md +17 -16
- package/resource/knowledge/push/integration/ios.md +27 -15
- package/resource/knowledge/push/integration/react-native.md +9 -59
- package/resource/knowledge/push/integration/uni-app.md +3 -25
- package/resource/knowledge/push/integration/unity.md +8 -77
- package/resource/knowledge/push/integration/unreal-engine.md +37 -96
- package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/android/room-state.md +3 -5
- package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +4 -6
- package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +2 -4
- package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +4 -6
- package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +3 -5
- package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +4 -6
- package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +0 -5
- package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +0 -3
- package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +0 -5
- package/resource/knowledge/roomkit/core-sdk/vue/room-participant-state.md +0 -3
- package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +1 -7
- package/resource/knowledge/roomkit/core-sdk/vue/room-view.md +1 -2
- package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +0 -1
- package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +0 -3
- package/resource/knowledge/roomkit/preset/android/integration.md +202 -6
- package/resource/knowledge/roomkit/preset/flutter/integration.md +1 -16
- package/resource/knowledge/roomkit/preset/ios/integration.md +201 -7
- package/resource/knowledge/roomkit/preset/react/integration.md +205 -4
- package/resource/knowledge/rtcengine/web/api.md +0 -2
- package/resource/knowledge/rtcengine/web/plugin/22-advanced-audio-mixer.md +2 -2
- package/resource/knowledge/rtcengine/web/plugin/23-advanced-support-detection.md +3 -3
- package/resource/knowledge/rtcengine/web/plugin/28-advanced-beauty.md +1 -1
- package/resource/knowledge/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -4
- package/resource/knowledge/share/userSig.md +2 -2
- package/resource/knowledge/trtc/android/TRTCCloud.md +16 -16
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +5 -5
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +3 -3
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +2 -2
- package/resource/knowledge/trtc/android/TXDeviceManager.md +1 -1
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +14 -14
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +2 -2
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +4 -4
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +3 -3
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +5 -5
- package/resource/knowledge/trtc/ios/TRTCCloud.md +14 -14
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +3 -3
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +2 -2
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +4 -4
- package/resource/knowledge/trtc/ios/TXLiveSDKTypeDef.md +5 -5
- package/server.js +1 -1
- package/tools/common/search_trtc_knowledge.js +2 -0
- package/tools/definitions/search_trtc_knowledge_def.js +1 -0
- package/utils/report-cls-client.js +3 -3
- package/utils/report-es-client.js +1 -1
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
## 魅族开放平台配置
|
|
15
15
|
|
|
16
16
|
> **提示:**
|
|
17
|
-
>
|
|
18
17
|
> 本文配置流程可对照 [魅族开放平台](https://open.flyme.cn/docs) 操作。
|
|
19
18
|
>
|
|
20
19
|
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
|AppSecret|服务端身份标识,腾讯云控制台配置魅族厂商证书时使用。|
|
|
44
43
|
|
|
45
44
|
> **注意:**
|
|
46
|
-
>
|
|
47
45
|
> 魅族 AppSecret 支持重置。重置后,旧 AppSecret 的服务端身份识别会失效,请同步更新腾讯云控制台和服务端相关配置,避免推送中断。
|
|
48
46
|
>
|
|
49
47
|
|
|
@@ -62,10 +60,7 @@
|
|
|
62
60
|
|
|
63
61
|
并设置回执地址为:`https://api.im.qcloud.com/v3/offline_push_report/meizu` :
|
|
64
62
|
|
|
65
|
-
同步完成回执配置,避免 SDK 接入后再返回控制台补配置。配置方法请参见 [消息触达统计配置 > 魅族](https://cloud.tencent.com/document/product/269/100626#daa658b0-1ac0-44a8-8a47-7ec8822ebe82)。
|
|
66
|
-
|
|
67
63
|
> **注意:**
|
|
68
|
-
>
|
|
69
64
|
> 打开回执开关后,请务必确保回执地址正确配置。不配置或者配置地址错误,都会影响推送功能。
|
|
70
65
|
>
|
|
71
66
|
|
|
@@ -79,11 +74,10 @@
|
|
|
79
74
|
|公信消息|可能受到每日每设备推送数量、频控或展示策略限制。|适用于活动、资讯、公告、营销推广等非即时消息。|
|
|
80
75
|
|
|
81
76
|
> **警告:**
|
|
82
|
-
>
|
|
83
77
|
> 营销、广告、活动类消息不应配置为私信消息。分类不符或滥用可能导致消息被拦截、降级、限流或影响推送权限。
|
|
84
78
|
>
|
|
85
79
|
|
|
86
|
-
完成魅族平台和腾讯云控制台配置后,后续发送离线推送时可在 SDK API 或腾讯云控制台默认配置中设置魅族消息分类。具体 API
|
|
80
|
+
完成魅族平台和腾讯云控制台配置后,后续发送离线推送时可在 SDK API 或腾讯云控制台默认配置中设置魅族消息分类。具体 API 使用方式。
|
|
87
81
|
|
|
88
82
|
## 平台约束与配额
|
|
89
83
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
## OPPO 开放平台配置
|
|
15
15
|
|
|
16
16
|
> **提示:**
|
|
17
|
-
>
|
|
18
17
|
> 本文配置流程可对照 OPPO 官方[申请推送服务](https://open.oppomobile.com/documentation/page/info)操作。
|
|
19
18
|
>
|
|
20
19
|
|
|
@@ -62,7 +61,6 @@ OPPO [新消息分类](https://open.oppomobile.com/documentation/page/info) 会
|
|
|
62
61
|
|活动、广告、内容推荐等营销消息|使用内容与营销类分类。|不应走通讯与服务通道,否则可能被 OPPO 判定为违规,导致提醒降级或通道权限受限。|
|
|
63
62
|
|
|
64
63
|
> **警告:**
|
|
65
|
-
>
|
|
66
64
|
> OPPO 通讯与服务通道非默认开启,需按 OPPO 官方流程申请。营销、广告、活动类消息不应走通讯与服务通道,否则可能被 OPPO 判定为违规,导致提醒降级或通道权限受限。
|
|
67
65
|
>
|
|
68
66
|
|
|
@@ -84,7 +82,7 @@ OPPO `notify_level` 用于控制通知提醒等级:
|
|
|
84
82
|
|
|
85
83
|
### 后续 SDK/API 接入提示
|
|
86
84
|
|
|
87
|
-
完成 OPPO 平台和腾讯云控制台配置后,后续发送离线推送时还需要按实际接入方式传入对应参数:新规则使用 `category`、私信模板参数和可选的 `notify_level`;旧规则仅适用于已开通 OPPO 私信通道权限的存量应用,需使用已创建并登记的私信通道 `ChannelID`。具体 API
|
|
85
|
+
完成 OPPO 平台和腾讯云控制台配置后,后续发送离线推送时还需要按实际接入方式传入对应参数:新规则使用 `category`、私信模板参数和可选的 `notify_level`;旧规则仅适用于已开通 OPPO 私信通道权限的存量应用,需使用已创建并登记的私信通道 `ChannelID`。具体 API 使用方式。
|
|
88
86
|
|
|
89
87
|
## 配置完成检查
|
|
90
88
|
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
|腾讯云账号和即时通信 IM 应用权限|用于在腾讯云控制台添加 vivo 厂商证书。|
|
|
13
13
|
|
|
14
14
|
> **注意:**
|
|
15
|
-
>
|
|
16
15
|
> 如果应用未上架 vivo 应用商店,不可在 vivo 官网 Web 界面和 API 后台发送正式消息,只能向设置的测试设备发送测试消息。
|
|
17
16
|
>
|
|
18
17
|
|
|
19
18
|
## vivo 开放平台配置
|
|
20
19
|
|
|
21
20
|
> **提示:**
|
|
22
|
-
>
|
|
23
21
|
> 本文配置流程可对照 vivo 官方 [推送接入流程](https://dev.vivo.com.cn/documentCenter/doc/281) 操作。
|
|
24
22
|
>
|
|
25
23
|
|
|
@@ -32,7 +30,6 @@
|
|
|
32
30
|
进入 vivo 开放平台,单击**分发** > **应用分发** > **应用商店** > **上传应用**,创建您的应用。
|
|
33
31
|
|
|
34
32
|
> **警告:**
|
|
35
|
-
>
|
|
36
33
|
> vivo 开放平台中的应用包名必须与 Android 工程的 `applicationId` 保持一致。包名不一致可能导致后续 SDK 注册失败或推送设备无法正确匹配。
|
|
37
34
|
>
|
|
38
35
|
|
|
@@ -49,18 +46,11 @@
|
|
|
49
46
|
### 添加 vivo 厂商证书
|
|
50
47
|
|
|
51
48
|
登录腾讯云 [即时通信 IM 控制台](https://console.qcloud.com/avc),在**推送服务 Push** > **推送设置** > **厂商配置**中添加 vivo 厂商证书,并按控制台要求填写厂商参数。
|
|
52
|
-
| <strong>vivo 推送平台</strong> | <strong>腾讯云即时通信 IM 控制台</strong> |
|
|
53
|
-
| --- | --- |
|
|
54
|
-
| | |
|
|
55
49
|
|
|
56
50
|
### 配置回执和点击统计
|
|
57
51
|
|
|
58
52
|
如需统计消息触达或点击数据,请在 vivo 开放平台设置 App 回执地址为:`https://api.im.qcloud.com/v3/offline_push_report/vivo`,并在腾讯云控制台设置回执 ID。
|
|
59
53
|
|
|
60
|
-
|**回调地址配置**|**腾讯云即时通信 IM 控制台**|
|
|
61
|
-
|---------|---------|
|
|
62
|
-
|||
|
|
63
|
-
|
|
64
54
|
## 消息分类限制对推送效果的影响
|
|
65
55
|
|
|
66
56
|
vivo 会将推送消息分为系统消息和运营消息。消息分类会影响日推总量、单设备每日接收数量和夜间发送策略。IM 聊天、订单变动、账号安全等需要及时触达的消息,建议按 vivo 规则申请并使用系统消息能力。
|
|
@@ -71,13 +61,12 @@ vivo 会将推送消息分为系统消息和运营消息。消息分类会影响
|
|
|
71
61
|
|运营消息|新闻类和其他类按通知开启有效用户数计算日推总量;单设备每日接收数量有限;夜间发送会受限制。|适用于活动、内容推荐、营销推广等非即时消息。|
|
|
72
62
|
|
|
73
63
|
> **警告:**
|
|
74
|
-
>
|
|
75
64
|
> vivo 会对系统消息进行智能分类二次修正。如果厂商识别出消息内容不属于系统消息,可能自动修正为运营消息。正式上线前,请确认消息内容和所申请的消息分类匹配。
|
|
76
65
|
>
|
|
77
66
|
|
|
78
67
|
运营消息存在发送时间限制。vivo 服务器通常仅允许在 `7:00 - 23:00` 之间下发运营消息,在 `23:00 - 次日 7:00` 发送的运营消息会被服务器直接丢弃,不会延迟补发。系统消息不受此限制。
|
|
79
68
|
|
|
80
|
-
完成 vivo 平台和腾讯云控制台配置后,后续发送离线推送时可在 SDK API 或腾讯云控制台默认配置中设置 vivo `Category`。两者同时设置时,API 中的设置优先于控制台证书默认配置。具体 API
|
|
69
|
+
完成 vivo 平台和腾讯云控制台配置后,后续发送离线推送时可在 SDK API 或腾讯云控制台默认配置中设置 vivo `Category`。两者同时设置时,API 中的设置优先于控制台证书默认配置。具体 API 使用方式。
|
|
81
70
|
|
|
82
71
|
## 配置完成检查
|
|
83
72
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
## 小米开放平台配置
|
|
15
15
|
|
|
16
16
|
> **提示:**
|
|
17
|
-
>
|
|
18
17
|
> 本文配置流程可对照小米官方 [推送配置指南](https://dev.mi.com/xiaomihyperos/documentation/detail) 操作。
|
|
19
18
|
>
|
|
20
19
|
|
|
@@ -60,16 +59,12 @@
|
|
|
60
59
|
### 配置推送证书
|
|
61
60
|
|
|
62
61
|
登录腾讯云 [即时通信 IM 控制台](https://console.qcloud.com/avc),在**推送服务 Push** > **推送设置** > **厂商配置**中添加小米厂商证书,并按控制台要求填写厂商参数。其中"应用内指定界面"请使用控制台默认配置。
|
|
63
|
-
| <strong>厂商推送平台</strong> | <strong>IM 控制台配置</strong> |
|
|
64
|
-
| --- | --- |
|
|
65
|
-
| | |
|
|
66
62
|
|
|
67
63
|
## 消息分类限制对推送效果的影响
|
|
68
64
|
|
|
69
65
|
小米通知消息主要分为私信消息和公信消息。**未接入分类的应用会走默认通道(按公信场景配置,但限额更严格)。**消息分类会影响推送数量和展示效果,IM 聊天、订单变化、交易提醒等需要及时触达的消息,建议按 [小米推送消息分类新规](https://dev.mi.com/xiaomihyperos/documentation/detail) 申请并使用私信消息能力。
|
|
70
66
|
|
|
71
67
|
> **警告:**
|
|
72
|
-
>
|
|
73
68
|
> 未接入消息分类的应用走默认通道,**单设备单日仅可推送 1 条**,超出后消息不会下发,是用户反馈"收不到离线推送"的最常见原因。IM 类应用上线前必须完成私信消息接入。具体限额参见 [小米推送消息限制说明](https://dev.mi.com/xiaomihyperos/documentation/detail)。
|
|
74
69
|
>
|
|
75
70
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
[微信小程序多端框架](https://cloud.tencent.com/document/product/269/111208) 推送服务目前推送支持小米、华为、荣耀、OPPO、vivo、魅族、一加、realme、iQOO 、FCM 和 Apple 等厂商通道。
|
|
2
2
|
|
|
3
3
|
> **注意:**
|
|
4
|
-
>
|
|
5
4
|
> 每个厂商仅支持配置 1 个证书。
|
|
6
5
|
>
|
|
7
6
|
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
【小米】
|
|
19
18
|
|
|
20
19
|
> **注意:**
|
|
21
|
-
>
|
|
22
20
|
> 通知栏推送:应用需在小米软件商店上架。
|
|
23
21
|
>
|
|
24
22
|
|
|
@@ -92,7 +90,6 @@
|
|
|
92
90
|
单击**项目设置 > 常规**,添加应用。
|
|
93
91
|
|
|
94
92
|
> **注意:**
|
|
95
|
-
>
|
|
96
93
|
> 应用包名与插件应用包名保持一致。
|
|
97
94
|
>
|
|
98
95
|
|
|
@@ -101,7 +98,6 @@
|
|
|
101
98
|
单击**项目设置 > 常规**,获取应用信息。
|
|
102
99
|
|
|
103
100
|
> **说明:**
|
|
104
|
-
>
|
|
105
101
|
> - 常规页面包含项目和应用的 Client ID 和 Client Secret,两者对应的参数不一致,请下拉至页面底部,获取应用的 Client ID 和 Client Secret。
|
|
106
102
|
> - 必须添加打包的 [SHA256证书指纹](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/android-config-agc-0000001050170137#section193351110105114),SHA256 证书指纹需与自己的打包证书一致。
|
|
107
103
|
>
|
|
@@ -117,7 +113,6 @@
|
|
|
117
113
|
【OPPO】
|
|
118
114
|
|
|
119
115
|
> **注意:**
|
|
120
|
-
>
|
|
121
116
|
> - 通知栏推送:应用需在 OPPO 软件商店上架;
|
|
122
117
|
> - 通知栏推送测试权限:每天仅可推送1000条消息,限测试使用。应用上架后需重新申请“通知栏推送”权限,以获得正常消息推送数量;
|
|
123
118
|
> - 平台将会在1个工作日内返回审核结果,开发者可以在申请页面查看审核结果,其他问题可咨询开放平台客服。
|
|
@@ -154,7 +149,6 @@
|
|
|
154
149
|
【vivo】
|
|
155
150
|
|
|
156
151
|
> **注意:**
|
|
157
|
-
>
|
|
158
152
|
> 若应用没有上架应用市场,推送权限受限,不可在 vivo 官网的 Web 界面和 API 后台发送正式消息,可在 API 后台向设置的测试设备发送测试消息进行测试。
|
|
159
153
|
>
|
|
160
154
|
|
|
@@ -319,7 +313,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
319
313
|
确认并生成密钥:在确认页面核对您的密钥信息,然后单击 **Register** 。接下来,您将看到一个页面提示您下载密钥。单击 **Download**,将生成的 .p8 文件保存到您的计算机上。
|
|
320
314
|
|
|
321
315
|
> **说明:**
|
|
322
|
-
>
|
|
323
316
|
> - p8 证书只可以下载一次,请妥善保存。
|
|
324
317
|
> - 请妥善保管下载的 p8 文件,因为您将无法再次下载该文件。您可以使用此 p8证书配置您的 iOS 应用程序以接收推送通知。
|
|
325
318
|
|
|
@@ -333,7 +326,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
333
326
|
4. 选择 .p8 证书
|
|
334
327
|
|
|
335
328
|
> **说明:**
|
|
336
|
-
>
|
|
337
329
|
> - **Key ID**:这是您的 APNs Auth Key 的唯一标识符。当您在 Apple Developer Center 创建一个新的 APNs Auth Key 时,系统会为您生成一个 Key ID。您可以在 "Certificates, Identifiers & Profiles" 部分的 "Keys" 中找到它。
|
|
338
330
|
> - **Team ID**:这是您的开发者账户的唯一标识符。您可以在 Apple Developer Center 的账户详情页面找到它。点击右上角的 "Membership",在 "Membership Details" 部分可以找到您的 Team ID。
|
|
339
331
|
> - **Bundle ID**:这是您的应用程序的唯一标识符,也称为应用程序 ID。您可以在 Apple Developer Center 的 "Certificates, Identifiers & Profiles" 部分找到它。选择 "Identifiers",然后在您的应用程序列表中找到对应的 Bundle ID。
|
|
@@ -365,8 +357,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
365
357
|
#### 生成证书
|
|
366
358
|
1. 选中您的 AppID,选择 **Configure**。
|
|
367
359
|
|
|
368
|
-
2. 可以看到在 **Apple Push Notification service SSL Certificates** 窗口中有两个 `SSL Certificate`,分别用于开发环境(Development)和生产环境(Production)的远程推送证书,如下图所示:
|
|
369
|
-
|
|
370
360
|
3. 我们先选择开发环境(Development)的 **Create Certificate**,系统将提示我们需要一个 Certificate Signing Request(CSR)。
|
|
371
361
|
|
|
372
362
|
4. 在 Mac 上打开**钥匙串访问工具(Keychain Access)**,在菜单中选择**钥匙串访问** > **证书助理** > **从证书颁发机构请求证书**(`Keychain Access - Certificate Assistant - Request a Certificate From a Certificate Authority`)。
|
|
@@ -405,7 +395,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
405
395
|
4. 选择证书类型,上传 iOS 证书(.p12),设置证书密码,单击**确认**。
|
|
406
396
|
|
|
407
397
|
> **说明:**
|
|
408
|
-
>
|
|
409
398
|
> - 上传证书名最好使用全英文(尤其不能使用括号等特殊字符)。
|
|
410
399
|
> - 上传证书需要设置密码,无密码收不到推送。
|
|
411
400
|
> - 发布 App Store 的证书需要设置为生产环境,否则无法收到推送。
|
|
@@ -423,7 +412,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
423
412
|
- 步骤3:获取您的 TIMPushAppGroupID。
|
|
424
413
|
|
|
425
414
|
> **注意:**
|
|
426
|
-
>
|
|
427
415
|
> 关于**点击后续动作**支持上报统计功能:
|
|
428
416
|
>
|
|
429
417
|
> 1. 如果选择打开应用和打开网页,购买插件后会默认支持上报统计。
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
本文将介绍如何完成 HarmonyOS 离线推送服务厂商配置。
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
## 前提条件
|
|
4
|
+
|
|
5
|
+
开始前,请确认您已具备以下条件:
|
|
6
|
+
|
|
7
|
+
|**条件**|**说明**|
|
|
8
|
+
|---------|---------|
|
|
9
|
+
|华为开发者账号|已拥有或准备注册华为开发者账号。|
|
|
10
|
+
|腾讯云账号和即时通信 IM 应用权限|用于在腾讯云控制台添加鸿蒙厂商证书。|
|
|
11
|
+
|
|
12
|
+
## HarmonyOS 开发者平台配置
|
|
7
13
|
|
|
8
14
|
### 步骤1:开启推送服务
|
|
9
15
|
1. 登录 [AppGallery Connect](https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/),在首页选择**开发与服务**,选择对应的项目,单击**立即开通**以开启推送服务。
|
|
@@ -70,10 +76,10 @@ Push Kit 支持多种场景化消息类型,其中部分场景化消息类型
|
|
|
70
76
|
|
|
71
77
|
登录 [AppGallery Connect](https://developer.huawei.com/consumer/cn/service/josp/agc/index.html),选择**开发与服务**,单击**推送服务**,在**配置**页,单击申请自分类权益。按照提示申请并激活。详情介绍请参考 [推送场景化消息权益](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/push-apply-right)。
|
|
72
78
|
|
|
73
|
-
## IM 控制台配置
|
|
79
|
+
## 腾讯云 IM 控制台配置
|
|
74
80
|
1. 登录腾讯云 [即时通信 IM 控制台](https://console.qcloud.com/avc) ,在**推送服务 Push > 推送设置 > 厂商配置**单击**添加证书**。
|
|
75
81
|
|
|
76
|
-
2.
|
|
82
|
+
2. 选择上面步骤3 生成的证书凭证,上传至新添加的鸿蒙证书。
|
|
77
83
|
|
|
78
84
|
3. 点击后续动作:
|
|
79
85
|
|
|
@@ -82,3 +88,8 @@ Push Kit 支持多种场景化消息类型,其中部分场景化消息类型
|
|
|
82
88
|
- 打开应用内指定界面:收到推送消息后点击通知栏,组件会回调该点击事件和透传离线消息。
|
|
83
89
|
|
|
84
90
|
4. 完成添加证书后,IM 控制台会为您分配一个 证书 ID,接入使用。
|
|
91
|
+
|
|
92
|
+
> **注意:**
|
|
93
|
+
>
|
|
94
|
+
> 每个厂商仅支持配置 1 个证书。
|
|
95
|
+
>
|
|
@@ -54,13 +54,12 @@ Bundle ID 是 APNs 推送主题、Apple App ID、描述文件、Xcode 工程和
|
|
|
54
54
|
## Apple Developer Center 配置
|
|
55
55
|
|
|
56
56
|
> **说明:**
|
|
57
|
-
>
|
|
58
57
|
> 本文配置流程可对照 Apple 官方 [User Notifications - Setting up a remote notification server](https://developer.apple.com/documentation/usernotifications) 操作;如遇页面变更,请以 Apple 官方最新文档为准。
|
|
59
58
|
>
|
|
60
59
|
|
|
61
60
|
### 创建或确认 App ID
|
|
62
61
|
|
|
63
|
-
App ID 用于声明你的 iOS App 能力。若你已经有与主 App Bundle ID 对应的 App ID(也就是你从上一个步骤中获取的 Bundle Identifier)
|
|
62
|
+
App ID 用于声明你的 iOS App 能力。若你已经有与主 App Bundle ID 对应的 App ID(也就是你从上一个步骤中获取的 Bundle Identifier),可直接确认其能力配置;如果没有。
|
|
64
63
|
1. 登录 [Apple Developer](https://developer.apple.com/account/)。
|
|
65
64
|
|
|
66
65
|
2. 进入 **Certificates, Identifiers & Profiles**。
|
|
@@ -94,14 +93,14 @@ App ID 用于声明你的 iOS App 能力。若你已经有与主 App Bundle ID
|
|
|
94
93
|
|
|
95
94
|
### 选择 APNs 证书类型
|
|
96
95
|
|
|
97
|
-
Apple APNs 推送证书主要有 p8 和 p12
|
|
96
|
+
Apple APNs 推送证书主要有 p8 和 p12 两种方式。**新接入 TIMPush 时,推荐优先使用 p8 证书**。
|
|
98
97
|
|
|
99
98
|
|类型|推荐程度|适用场景|注意事项|
|
|
100
99
|
|---------|---------|---------|---------|
|
|
101
|
-
|p8
|
|
100
|
+
|p8 证书|**推荐**|新接入用户优先选择。|p8 文件只可下载一次,需要妥善保存。Auth Key 文件本身无有效期。多 Bundle ID 处理方式参见上文 确认 Bundle ID。|
|
|
102
101
|
|p12 证书|传统方式|已有 p12 证书体系,或必须使用证书方式鉴权的项目。|证书有有效期,需要设置导出密码;自 2020 年起 Apple 已合并为同时覆盖 Sandbox 和 Production 的一张证书,无需分别为开发和生产创建。|
|
|
103
102
|
|
|
104
|
-
|
|
103
|
+
【创建 p8 证书(推荐)】
|
|
105
104
|
|
|
106
105
|
p8 证书是 APNs Auth Key,用于腾讯云服务端向 APNs 鉴权。创建 p8 证书前,请确保已完成 App ID 和 Push Notifications 配置。
|
|
107
106
|
1. 登录 [Apple Developer](https://developer.apple.com/account/)。
|
|
@@ -122,21 +121,18 @@ p8 证书是 APNs Auth Key,用于腾讯云服务端向 APNs 鉴权。创建 p8
|
|
|
122
121
|
|
|
123
122
|
- **Topic**:默认 Team-scoped(同一 Team 下所有 App 可用),也可选 Topic-specific 并指定 Bundle ID。
|
|
124
123
|
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
新接入 TIMPush 若没有特殊安全诉求,保持默认即可。该能力为 Apple 2025 年 2 月推出的可选增强项,已有 Key 不受影响。
|
|
127
125
|
8. 单击 **Continue**。
|
|
128
126
|
|
|
129
127
|
9. 确认信息后,单击 **Register**。
|
|
130
128
|
|
|
131
129
|
10. 单击 **Download** 下载 `.p8` 文件。
|
|
132
130
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
>
|
|
137
|
-
|
|
138
|
-
请同时记录以下信息,后续上传到腾讯云控制台时需要填写:
|
|
131
|
+
> **警告:**
|
|
132
|
+
> p8 文件只可下载一次,请妥善保存。若文件丢失,需要重新创建新的 Key。
|
|
133
|
+
>
|
|
139
134
|
|
|
135
|
+
请同时记录以下信息,后续上传到腾讯云控制台时需要填写:
|
|
140
136
|
| 信息 | 获取位置 |
|
|
141
137
|
| --- | --- |
|
|
142
138
|
| Key ID | Apple Developer Center 的 Keys 列表对应行或 Key 详情页,10 位字符。 |
|
|
@@ -144,7 +140,7 @@ p8 证书是 APNs Auth Key,用于腾讯云服务端向 APNs 鉴权。创建 p8
|
|
|
144
140
|
| Bundle ID | 主 App 的 Bundle ID。 |
|
|
145
141
|
| p8 文件 | 创建 Key 后下载的 <code>.p8</code> 文件。 |
|
|
146
142
|
|
|
147
|
-
|
|
143
|
+
【创建 p12 证书,传统方式】
|
|
148
144
|
|
|
149
145
|
如果您选择 p12 证书,请按以下步骤创建 APNs 推送证书。详细规则可参见 Apple 官方文档 [Establishing a certificate-based connection to APNs](https://developer.apple.com/documentation/usernotifications/establishing-a-certificate-based-connection-to-apns)。
|
|
150
146
|
1. 登录 [Apple Developer](https://developer.apple.com/account/)。
|
|
@@ -159,27 +155,25 @@ p8 证书是 APNs Auth Key,用于腾讯云服务端向 APNs 鉴权。创建 p8
|
|
|
159
155
|
|
|
160
156
|
6. 在 **Production SSL Certificate** 区域单击 **Create Certificate**。自 2020 年起,Apple 的 SSL 证书已合并为同时覆盖 Sandbox 和 Production 的一张证书(即 **Apple Push Notification service SSL (Sandbox & Production)**),无需分别为开发和生产创建两张证书。
|
|
161
157
|
|
|
162
|
-
7. 按页面提示在 Mac
|
|
158
|
+
7. 按页面提示在 Mac 的**钥匙串访问**中生成 Certificate Signing Request(CSR)文件。
|
|
163
159
|
|
|
164
160
|
8. 上传 CSR 文件并生成 APNs 证书。
|
|
165
161
|
|
|
166
|
-
9.
|
|
162
|
+
9. 下载证书并双击导入钥匙串。导入后,证书会出现在**登录**钥匙串的**我的证书**分类下。
|
|
167
163
|
|
|
168
|
-
10.
|
|
164
|
+
10. 在**钥匙串访问** > **登录** > **我的证书**中找到名为 `Apple Push Services: <您的 Bundle ID>` 的证书,单击左侧**展开三角**,确认证书下方挂着对应的 **私钥**。
|
|
169
165
|
|
|
170
|
-
11.
|
|
166
|
+
11. 同时选中**证书**和**私钥**,右键选择**导出 2 项**,文件格式选择**个人信息交换 (.p12)**,并在弹窗中输入密码保护 p12 文件。
|
|
171
167
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
> 2. 上传 p12 证书到腾讯云控制台时需要填写证书密码。无密码或密码错误可能导致推送失败。
|
|
168
|
+
> **注意:**
|
|
169
|
+
> - 必须连同私钥一起导出,否则生成的 p12 文件不能用于 APNs 鉴权。如果证书下方没有私钥,说明 CSR 不是在当前 Mac 生成的,请回到生成 CSR 的 Mac 重新导出。
|
|
170
|
+
> - 上传 p12 证书到腾讯云控制台时需要填写证书密码。无密码或密码错误可能导致推送失败。
|
|
176
171
|
|
|
177
172
|
### 创建或确认描述文件
|
|
178
173
|
|
|
179
174
|
描述文件(Provisioning Profile)用于将 App ID、证书和设备等签名信息绑定到 Xcode 工程。
|
|
180
175
|
|
|
181
176
|
> **说明:**
|
|
182
|
-
>
|
|
183
177
|
> 如果您在 Xcode 中使用 **Automatically manage signing**(自动签名),Xcode 会在 App ID 启用 Push Notifications 后自动同步描述文件,本节可跳过。仅在使用手动签名,或 Xcode 自动签名失败需要手动处理时,才需按以下步骤创建描述文件。
|
|
184
178
|
>
|
|
185
179
|
|
|
@@ -224,17 +218,17 @@ p8 证书是 APNs Auth Key,用于腾讯云服务端向 APNs 鉴权。创建 p8
|
|
|
224
218
|
> Push 的 Key 和 Chat 的 Key 不同,不能混用。后续调用 `registerPush` 使用 Push 的客户端密钥;Chat 登录使用 Chat 的密钥。
|
|
225
219
|
>
|
|
226
220
|
|
|
227
|
-
| <strong>registerPush 使用的客户端密钥</strong> | <strong>Chat 登录使用的密钥</strong> |
|
|
228
|
-
| --- | --- |
|
|
229
|
-
| | |
|
|
230
|
-
|
|
231
221
|
### 上传 APNs 证书到腾讯云控制台
|
|
232
222
|
|
|
233
223
|
在腾讯云控制台上传 APNs 证书后,控制台会生成证书 ID。该证书 ID 是后续 SDK 接入文档中的 `businessID`。
|
|
234
224
|
|
|
235
225
|
操作路径:`腾讯云控制台 > 即时通信 IM > 推送服务 Push > 推送设置 > 厂商配置 > iOS > 添加 APNs 证书`。
|
|
236
226
|
|
|
237
|
-
|
|
227
|
+
> **说明:**
|
|
228
|
+
> p8 和 p12 证书二选一上传即可。
|
|
229
|
+
>
|
|
230
|
+
|
|
231
|
+
【上传 p8 证书(推荐)】
|
|
238
232
|
1. 进入 iOS APNs 证书配置页面。
|
|
239
233
|
|
|
240
234
|
2. 选择 p8 证书类型。
|
|
@@ -249,7 +243,7 @@ p8 证书是 APNs Auth Key,用于腾讯云服务端向 APNs 鉴权。创建 p8
|
|
|
249
243
|
|
|
250
244
|
7. 记录控制台生成的证书 ID。
|
|
251
245
|
|
|
252
|
-
|
|
246
|
+
【上传 p12 证书】
|
|
253
247
|
1. 进入 iOS APNs 证书配置页面。
|
|
254
248
|
|
|
255
249
|
2. 选择 p12 证书类型。
|
|
@@ -264,10 +258,9 @@ p8 证书是 APNs Auth Key,用于腾讯云服务端向 APNs 鉴权。创建 p8
|
|
|
264
258
|
|
|
265
259
|
7. 记录控制台生成的证书 ID。
|
|
266
260
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
>
|
|
261
|
+
> **注意:**
|
|
262
|
+
> 上传证书时,请确认 Bundle ID 与主 App 的 Bundle Identifier 一致。发布到 App Store 的 App 需要使用生产环境证书配置。
|
|
263
|
+
>
|
|
271
264
|
|
|
272
265
|
## 触达统计资源配置(可选)
|
|
273
266
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
React Native 推送目前支持小米、华为、荣耀、OPPO、vivo、魅族、APNs、一加、realme、iQOO 、FCM 和 苹果等厂商通道。
|
|
2
2
|
|
|
3
3
|
> **注意:**
|
|
4
|
-
>
|
|
5
4
|
> 每个厂商仅支持配置 1 个证书。
|
|
6
5
|
>
|
|
7
6
|
|
|
@@ -34,7 +33,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
34
33
|
确认并生成密钥:在确认页面核对您的密钥信息,然后单击 **Register** 。接下来,您将看到一个页面提示您下载密钥。单击 **Download**,将生成的 .p8 文件保存到您的计算机上。
|
|
35
34
|
|
|
36
35
|
> **说明:**
|
|
37
|
-
>
|
|
38
36
|
> - p8 证书只可以下载一次,请妥善保存。
|
|
39
37
|
> - 请妥善保管下载的 p8 文件,因为您将无法再次下载该文件。您可以使用此 P8证书配置您的 iOS 应用程序以接收推送通知。
|
|
40
38
|
|
|
@@ -48,7 +46,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
48
46
|
4. 选择 **p8 证书**。
|
|
49
47
|
|
|
50
48
|
> **说明:**
|
|
51
|
-
>
|
|
52
49
|
> - **Key ID**:这是您的 APNs Auth Key 的唯一标识符。当您在 Apple Developer Center 创建一个新的 APNs Auth Key 时,系统会为您生成一个 Key ID。您可以在 "Certificates, Identifiers & Profiles" 部分的 "Keys" 中找到它。
|
|
53
50
|
> - **Team ID**:这是您的开发者账户的唯一标识符。您可以在 Apple Developer Center 的账户详情页面找到它。点击右上角的 "Membership",在 "Membership Details" 部分可以找到您的 Team ID。
|
|
54
51
|
> - **Bundle ID**:这是您的应用程序的唯一标识符,也称为应用程序 ID。您可以在 Apple Developer Center 的 "Certificates, Identifiers & Profiles" 部分找到它。选择 "Identifiers",然后在您的应用程序列表中找到对应的 Bundle ID。
|
|
@@ -80,8 +77,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
80
77
|
#### 生成证书
|
|
81
78
|
1. 选中您的 AppID,选择 **Configure**。
|
|
82
79
|
|
|
83
|
-
2. 可以看到在 **Apple Push Notification service SSL Certificates** 窗口中有两个 `SSL Certificate`,分别用于开发环境(Development)和生产环境(Production)的远程推送证书,如下图所示:
|
|
84
|
-
|
|
85
80
|
3. 我们先选择开发环境(Development)的 **Create Certificate**,系统将提示我们需要一个 Certificate Signing Request(CSR)。
|
|
86
81
|
|
|
87
82
|
4. 在 Mac 上打开**钥匙串访问工具(Keychain Access)**,在菜单中选择**钥匙串访问** > **证书助理** > **从证书颁发机构请求证书**(`Keychain Access - Certificate Assistant - Request a Certificate From a Certificate Authority`)。
|
|
@@ -120,7 +115,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
120
115
|
4. 选择证书类型,上传 iOS 证书(.p12),设置证书密码,单击**确认**。
|
|
121
116
|
|
|
122
117
|
> **说明:**
|
|
123
|
-
>
|
|
124
118
|
> - 上传证书名最好使用全英文(尤其不能使用括号等特殊字符)。
|
|
125
119
|
> - 上传证书需要设置密码,无密码收不到推送。
|
|
126
120
|
> - 发布 App Store 的证书需要设置为生产环境,否则无法收到推送。
|
|
@@ -145,7 +139,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
145
139
|
登录腾讯云 [即时通信 IM 控制台](https://console.qcloud.com/avc) ,在**推送服务 Push > 推送设置 > 厂商配置**功能栏添加各个厂商推送证书,并将您在步骤一中获取的各厂商的 AppId、AppKey、AppSecret 等参数配置给添加的推送证书。
|
|
146
140
|
|
|
147
141
|
> **说明:**
|
|
148
|
-
>
|
|
149
142
|
> 关于**点击后续动作**选项,如需使用本插件提供的点击跳转能力,请保持默认值不变,即通常是 “打开应用内指定页面” 并带有默认配置。
|
|
150
143
|
>
|
|
151
144
|
> 如需使用上报统计功能,也请保持此项默认值不变。
|
|
@@ -153,10 +146,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
153
146
|
|
|
154
147
|
【小米】
|
|
155
148
|
|
|
156
|
-
|厂商推送平台|IM 控制台配置|
|
|
157
|
-
|---------|---------|
|
|
158
|
-
|||
|
|
159
|
-
|
|
160
149
|
【华为】
|
|
161
150
|
| 厂商推送平台 | IM 控制台配置 |
|
|
162
151
|
| --- | --- |
|
|
@@ -164,34 +153,14 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
164
153
|
|
|
165
154
|
【OPPO】
|
|
166
155
|
|
|
167
|
-
|厂商推送平台|IM 控制台配置|
|
|
168
|
-
|---------|---------|
|
|
169
|
-
|||
|
|
170
|
-
|
|
171
156
|
【vivo】
|
|
172
157
|
|
|
173
|
-
|厂商推送平台|IM 控制台配置|
|
|
174
|
-
|---------|---------|
|
|
175
|
-
|||
|
|
176
|
-
|
|
177
158
|
回执配置请参考:[消息触达统计配置-vivo](https://cloud.tencent.com/document/product/269/100626#daa658b0-1ac0-44a8-8a47-7ec8822ebe82)
|
|
178
159
|
|
|
179
160
|
【魅族】
|
|
180
161
|
|
|
181
|
-
|厂商推送平台|IM 控制台配置|
|
|
182
|
-
|---------|---------|
|
|
183
|
-
|||
|
|
184
|
-
|
|
185
162
|
回执配置请参考:[消息触达统计配置-魅族](https://cloud.tencent.com/document/product/269/100626#daa658b0-1ac0-44a8-8a47-7ec8822ebe82)
|
|
186
163
|
|
|
187
164
|
【荣耀】
|
|
188
165
|
|
|
189
|
-
|厂商推送平台|IM 控制台配置|
|
|
190
|
-
|---------|---------|
|
|
191
|
-
|||
|
|
192
|
-
|
|
193
166
|
【Google FCM】
|
|
194
|
-
|
|
195
|
-
|厂商推送平台|IM 控制台配置|
|
|
196
|
-
|---------|---------|
|
|
197
|
-
|||
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
目前消息推送插件,在 Unity 中仅支持推送至 Android(含各厂商通道)和 iOS 设备。
|
|
2
2
|
|
|
3
3
|
> **注意:**
|
|
4
|
-
>
|
|
5
4
|
> 每个厂商仅支持配置 1 个证书。
|
|
6
5
|
>
|
|
7
6
|
|
|
@@ -28,7 +27,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
28
27
|
确认并生成密钥:在确认页面核对您的密钥信息,然后单击 **Register** 。接下来,您将看到一个页面提示您下载密钥。单击 **Download**,将生成的 .p8 文件保存到您的计算机上。
|
|
29
28
|
|
|
30
29
|
> **说明:**
|
|
31
|
-
>
|
|
32
30
|
> - p8 证书只可以下载一次,请妥善保存。
|
|
33
31
|
> - 请妥善保管下载的 p8 文件,因为您将无法再次下载该文件。您可以使用此 p8 证书配置您的 iOS 应用程序以接收推送通知。
|
|
34
32
|
|
|
@@ -42,7 +40,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
42
40
|
4. 选择 **p8 证书**。
|
|
43
41
|
|
|
44
42
|
> **说明:**
|
|
45
|
-
>
|
|
46
43
|
> - **Key ID**:这是您的 APNs Auth Key 的唯一标识符。当您在 Apple Developer Center 创建一个新的 APNs Auth Key 时,系统会为您生成一个 Key ID。您可以在 "Certificates, Identifiers & Profiles" 部分的 "Keys" 中找到它。
|
|
47
44
|
> - **Team ID**:这是您的开发者账户的唯一标识符。您可以在 Apple Developer Center 的账户详情页面找到它。点击右上角的 "Membership",在 "Membership Details" 部分可以找到您的 Team ID。
|
|
48
45
|
> - **Bundle ID**:这是您的应用程序的唯一标识符,也称为应用程序 ID。您可以在 Apple Developer Center 的 "Certificates, Identifiers & Profiles" 部分找到它。选择 "Identifiers",然后在您的应用程序列表中找到对应的 Bundle ID。
|
|
@@ -74,8 +71,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
74
71
|
#### 生成证书
|
|
75
72
|
1. 选中您的 AppID,选择 **Configure**。
|
|
76
73
|
|
|
77
|
-
2. 可以看到在 **Apple Push Notification service SSL Certificates** 窗口中有两个 `SSL Certificate`,分别用于开发环境(Development)和生产环境(Production)的远程推送证书,如下图所示:
|
|
78
|
-
|
|
79
74
|
3. 我们先选择开发环境(Development)的 **Create Certificate**,系统将提示我们需要一个 Certificate Signing Request(CSR)。
|
|
80
75
|
|
|
81
76
|
4. 在 Mac 上打开**钥匙串访问工具(Keychain Access)**,在菜单中选择**钥匙串访问** > **证书助理** > **从证书颁发机构请求证书**(`Keychain Access - Certificate Assistant - Request a Certificate From a Certificate Authority`)。
|
|
@@ -114,7 +109,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
114
109
|
4. 选择证书类型,上传 iOS 证书(.p12),设置证书密码,单击**确认**。
|
|
115
110
|
|
|
116
111
|
> **说明:**
|
|
117
|
-
>
|
|
118
112
|
> - 上传证书名最好使用全英文(尤其不能使用括号等特殊字符)。
|
|
119
113
|
> - 上传证书需要设置密码,无密码收不到推送。
|
|
120
114
|
> - 发布 App Store 的证书需要设置为生产环境,否则无法收到推送。
|
|
@@ -139,7 +133,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
139
133
|
登录腾讯云 [即时通信 IM 控制台](https://console.qcloud.com/avc) ,在**推送服务 Push > 推送设置 > 厂商配置**功能栏添加各个厂商推送证书,并将您在步骤一中获取的各厂商的 AppId、AppKey、AppSecret 等参数配置给添加的推送证书。
|
|
140
134
|
|
|
141
135
|
> **注意:**
|
|
142
|
-
>
|
|
143
136
|
> 关于**点击后续动作**选项,如需使用本插件提供的点击跳转能力,请保持默认值不变, 即通常是`打开应用内指定页面`并带有默认配置。
|
|
144
137
|
>
|
|
145
138
|
> 如需使用上报统计功能,也请保持此项默认值不变。
|
|
@@ -147,10 +140,6 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
147
140
|
|
|
148
141
|
【小米】
|
|
149
142
|
|
|
150
|
-
|厂商推送平台|IM 控制台配置|
|
|
151
|
-
|---------|---------|
|
|
152
|
-
|||
|
|
153
|
-
|
|
154
143
|
【华为】
|
|
155
144
|
| 厂商推送平台 | IM 控制台配置 |
|
|
156
145
|
| --- | --- |
|
|
@@ -158,34 +147,14 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
158
147
|
|
|
159
148
|
【OPPO】
|
|
160
149
|
|
|
161
|
-
|厂商推送平台|IM 控制台配置|
|
|
162
|
-
|---------|---------|
|
|
163
|
-
|||
|
|
164
|
-
|
|
165
150
|
【vivo】
|
|
166
151
|
|
|
167
|
-
|厂商推送平台|IM 控制台配置|
|
|
168
|
-
|---------|---------|
|
|
169
|
-
|||
|
|
170
|
-
|
|
171
152
|
回执配置请参考:[消息触达统计配置-vivo](https://cloud.tencent.com/document/product/269/100626#daa658b0-1ac0-44a8-8a47-7ec8822ebe82)
|
|
172
153
|
|
|
173
154
|
【魅族】
|
|
174
155
|
|
|
175
|
-
|厂商推送平台|IM 控制台配置|
|
|
176
|
-
|---------|---------|
|
|
177
|
-
|||
|
|
178
|
-
|
|
179
156
|
回执配置请参考:[消息触达统计配置 > 魅族](https://cloud.tencent.com/document/product/269/100626#daa658b0-1ac0-44a8-8a47-7ec8822ebe82)
|
|
180
157
|
|
|
181
158
|
【荣耀】
|
|
182
159
|
|
|
183
|
-
|厂商推送平台|IM 控制台配置|
|
|
184
|
-
|---------|---------|
|
|
185
|
-
|||
|
|
186
|
-
|
|
187
160
|
【Google FCM】
|
|
188
|
-
|
|
189
|
-
|厂商推送平台|IM 控制台配置|
|
|
190
|
-
|---------|---------|
|
|
191
|
-
|||
|