@tencentcloud/sdk-mcp 1.6.3 → 1.6.5
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/index.js +0 -4
- package/knowledge/build-index.js +1 -1
- package/knowledge/chunker.js +81 -52
- package/knowledge/path-meta.js +181 -21
- package/knowledge/search/exact-lookup.js +166 -0
- package/knowledge/search/filter-pool.js +73 -19
- package/knowledge/search/product-scope-intent.js +2 -2
- package/knowledge/search/requires-framework.js +1 -1
- package/knowledge/search/search-knowledge.js +234 -57
- package/package.json +1 -1
- package/resource/_schema/feature-aliases.yaml +1 -0
- package/resource/integration/callkit/preset/android/integration.md +3 -5
- package/resource/integration/callkit/preset/flutter/integration.md +2 -3
- package/resource/integration/callkit/preset/ios/integration.md +2 -5
- package/resource/integration/callkit/preset/react/integration.md +12 -26
- package/resource/integration/callkit/preset/vue/integration.md +17 -33
- package/resource/integration/chat/preset/android/integration.md +44 -14
- package/resource/integration/chat/preset/flutter/integration.md +54 -13
- package/resource/integration/chat/preset/ios/integration.md +42 -6
- package/resource/integration/chat/preset/react/integration.md +30 -28
- package/resource/integration/chat/preset/uni-app/integration.md +101 -40
- package/resource/integration/chat/preset/vue/integration.md +62 -28
- package/resource/integration/livekit/preset/live/android/live-audience-integration.md +133 -0
- package/resource/integration/livekit/preset/live/android/live-host-integration.md +225 -0
- package/resource/integration/livekit/preset/live/android/live-list-integration.md +278 -0
- package/resource/integration/livekit/preset/live/android/prepare-integration.md +271 -0
- package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +207 -0
- package/resource/integration/livekit/preset/live/ios/live-host-integration.md +358 -0
- package/resource/integration/livekit/preset/live/ios/live-list-integration.md +246 -0
- package/resource/integration/livekit/preset/live/ios/prepare-integration.md +218 -0
- package/resource/integration/livekit/preset/live/vue/live-list-integration.md +4 -7
- package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +5 -12
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +4 -11
- package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +250 -482
- package/resource/integration/roomkit/preset/vue/integration.md +399 -106
- package/resource/knowledge/callkit/best-practice/web/callengine-invitation.md +80 -0
- package/resource/knowledge/callkit/best-practice/web/callengine-log-control.md +20 -0
- package/resource/knowledge/callkit/best-practice/web/callkit-call-vs-calls.md +116 -0
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +11 -15
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +10 -13
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +2 -4
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +10 -17
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +11 -17
- package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +11 -20
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +10 -15
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +9 -14
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +12 -18
- package/resource/knowledge/callkit/core-sdk/miniprogram/call-engine.md +390 -0
- package/resource/knowledge/callkit/core-sdk/miniprogram/call-event.md +317 -0
- package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +16 -22
- package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +17 -23
- package/resource/knowledge/callkit/core-sdk/web/call-engine.md +39 -0
- package/resource/knowledge/callkit/core-sdk/web/call-event.md +341 -0
- package/resource/knowledge/callkit/core-sdk/web/callengine-api-overview.md +39 -0
- package/resource/knowledge/callkit/faq/android.md +1 -5
- package/resource/knowledge/callkit/faq/common.md +10 -12
- package/resource/knowledge/callkit/faq/ios.md +5 -7
- package/resource/knowledge/callkit/faq/uniapp-app.md +7 -7
- package/resource/knowledge/callkit/faq/uniapp-miniprogram.md +9 -12
- package/resource/knowledge/callkit/faq/web.md +2 -12
- package/resource/knowledge/callkit/preset/android/api.md +5 -8
- package/resource/knowledge/callkit/preset/ios/api.md +4 -6
- package/resource/knowledge/callkit/preset/miniprogram/api.md +295 -0
- package/resource/knowledge/callkit/preset/react/api.md +622 -0
- package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +475 -0
- package/resource/knowledge/callkit/preset/vue/api.md +622 -0
- package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +587 -0
- package/resource/knowledge/callkit/preset/web/api.md +1 -1
- package/resource/knowledge/chat/best-practice/web/image-message-url-handling.md +16 -0
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/android/features/language.md +2 -4
- package/resource/knowledge/chat/preset/android/features/message-input.md +1 -1
- package/resource/knowledge/chat/preset/android/features/message-list.md +1 -2
- package/resource/knowledge/chat/preset/android/features/search.md +0 -1
- package/resource/knowledge/chat/preset/android/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/android-view/integration.md +35 -10
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/flutter/features/language.md +1 -1
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +0 -1
- package/resource/knowledge/chat/preset/flutter/features/search.md +4 -5
- package/resource/knowledge/chat/preset/flutter/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/ios/features/language.md +2 -5
- package/resource/knowledge/chat/preset/ios/features/message-list.md +0 -1
- package/resource/knowledge/chat/preset/ios/features/search.md +0 -1
- package/resource/knowledge/chat/preset/ios/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/ios-uikit/integration.md +57 -166
- package/resource/knowledge/chat/preset/react/features/chat-setting.md +0 -1
- package/resource/knowledge/chat/preset/react/features/conversation-actions.md +3 -3
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +3 -3
- package/resource/knowledge/chat/preset/react/features/conversation-preview.md +1 -1
- package/resource/knowledge/chat/preset/react/features/message-input.md +2 -3
- package/resource/knowledge/chat/preset/react/features/search.md +0 -1
- package/resource/knowledge/chat/preset/vue/features/chat-header.md +1 -1
- package/resource/knowledge/chat/preset/vue/features/chat-setting.md +3 -4
- package/resource/knowledge/chat/preset/vue/features/conversation-list.md +4 -4
- package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +1 -1
- package/resource/knowledge/chat/preset/vue/features/message-input.md +2 -2
- package/resource/knowledge/chat/preset/vue/features/message-list.md +2 -2
- package/resource/knowledge/chat/preset/vue/features/search.md +0 -1
- package/resource/knowledge/chat/preset/vue/features/theme.md +4 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +2 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +12 -15
- 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 +2 -4
- 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 +2 -4
- 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 +3 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +12 -15
- 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 +2 -4
- 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 +2 -4
- 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 +2 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +3 -6
- 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 +2 -4
- 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 +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +1 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/vue/capability-matrix.md +82 -0
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-audio-effect.md → features/android/audio-effect.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/{live/android/live-barrage.md → features/android/barrage.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{live/android/live-base-beauty.md → features/android/base-beauty.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-gift.md → features/android/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{live/android/live-live-list.md → features/android/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audio-effect.md → features/flutter/audio-effect.md} +0 -2
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-barrage.md → features/flutter/barrage.md} +3 -3
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-gift.md → features/flutter/gift.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-room-list.md → features/flutter/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audience-list.md → features/ios/audience-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audio-effect.md → features/ios/audio-effect.md} +1 -3
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-barrage.md → features/ios/barrage.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-base-beauty.md → features/ios/base-beauty.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-gift.md → features/ios/gift.md} +8 -9
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-live-list.md → features/ios/live-list.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-audio-effect.md → features/uni-app/audio-effect.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-barrage.md → features/uni-app/barrage.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/base-beauty.md +145 -0
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-gift.md → features/uni-app/gift.md} +6 -7
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-room-list.md → features/uni-app/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/live/android/{live-co-guest-interaction.md → co-guest-interaction.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/live/android/{live-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/live/android/{live-integration.md → integration.md} +6 -9
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-host-interaction.md → host-interaction.md} +1 -3
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-integration.md → integration.md} +1 -6
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-co-guest-interaction.md → co-guest-interaction.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-host-interaction.md → host-interaction.md} +3 -5
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-integration.md → integration.md} +7 -10
- package/resource/knowledge/livekit/core-sdk/live/uni-app/co-guest-interaction.md +561 -0
- package/resource/knowledge/livekit/core-sdk/live/uni-app/host-interaction.md +323 -0
- package/resource/knowledge/livekit/core-sdk/live/uni-app/integration.md +312 -0
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-co-guest-interaction.md → co-guest-interaction.md} +3 -3
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-integration.md → integration.md} +11 -14
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-co-guest-interaction.md → co-guest-interaction.md} +0 -1
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-integration.md → integration.md} +1 -4
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-co-guest-interaction.md → co-guest-interaction.md} +3 -3
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-integration.md → integration.md} +7 -10
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/{voice-co-guest-interaction.md → co-guest-interaction.md} +6 -6
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/{voice-integration.md → integration.md} +6 -7
- package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +2 -3
- 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 +1 -1
- package/resource/knowledge/push/api-reference/android.md +337 -0
- package/resource/knowledge/push/api-reference/donut.md +190 -0
- package/resource/knowledge/push/api-reference/flutter.md +176 -0
- package/resource/knowledge/push/api-reference/harmonyos.md +140 -0
- package/resource/knowledge/push/api-reference/ios.md +537 -0
- package/resource/knowledge/push/api-reference/react-native.md +154 -0
- package/resource/knowledge/push/api-reference/uni-app.md +148 -0
- package/resource/knowledge/push/api-reference/unity.md +119 -0
- package/resource/knowledge/push/api-reference/unreal-engine.md +123 -0
- package/resource/knowledge/push/config/android/fcm.md +1 -8
- package/resource/knowledge/push/config/android/honor.md +3 -7
- package/resource/knowledge/push/config/android/huawei.md +0 -5
- package/resource/knowledge/push/config/android/meizu.md +0 -5
- package/resource/knowledge/push/config/android/oppo.md +0 -4
- package/resource/knowledge/push/config/android/vivo.md +0 -4
- package/resource/knowledge/push/config/android/xiaomi.md +0 -2
- package/resource/knowledge/push/config/donut.md +33 -46
- package/resource/knowledge/push/config/harmonyos.md +6 -9
- package/resource/knowledge/push/config/ios.md +2 -9
- package/resource/knowledge/push/config/react-native.md +17 -25
- package/resource/knowledge/push/config/unity.md +16 -24
- package/resource/knowledge/push/config/unreal-engine.md +16 -24
- package/resource/knowledge/push/integration/android.md +21 -21
- package/resource/knowledge/push/integration/donut.md +24 -34
- package/resource/knowledge/push/integration/flutter.md +12 -1
- package/resource/knowledge/push/integration/harmonyos.md +2 -1
- package/resource/knowledge/push/integration/ios.md +16 -10
- package/resource/knowledge/push/integration/react-native.md +10 -14
- package/resource/knowledge/push/integration/uni-app.md +10 -6
- package/resource/knowledge/push/integration/unity.md +19 -22
- package/resource/knowledge/push/integration/unreal-engine.md +7 -9
- package/resource/knowledge/push/overview/prepare.md +2 -2
- package/resource/knowledge/roomkit/core-sdk/android/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/android/unsupported-features.md +82 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/flutter/unsupported-features.md +82 -0
- package/resource/knowledge/roomkit/core-sdk/ios/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/ios/unsupported-features.md +82 -0
- package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +2 -5
- package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +0 -3
- package/resource/knowledge/roomkit/core-sdk/vue/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +2 -6
- package/resource/knowledge/roomkit/core-sdk/vue/room-view.md +0 -1
- package/resource/knowledge/roomkit/core-sdk/vue/schedule-room.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +2 -4
- package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +2 -3
- package/resource/knowledge/roomkit/preset/android/integration.md +14 -16
- package/resource/knowledge/roomkit/preset/flutter/integration.md +9 -17
- package/resource/knowledge/roomkit/preset/ios/integration.md +9 -17
- package/resource/knowledge/roomkit/preset/react/integration.md +0 -4
- package/resource/knowledge/trtc/android/TRTCCloud.md +97 -180
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +20 -20
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +43 -77
- package/resource/knowledge/trtc/android/TRTCStatistics.md +1 -1
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +4 -24
- package/resource/knowledge/trtc/android/TXDeviceManager.md +2 -2
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +96 -189
- package/resource/knowledge/trtc/c++/ITRTCStatistics.md +1 -1
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +1 -21
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +4 -6
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +42 -76
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +18 -19
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/ios/TRTCCloud.md +95 -181
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +43 -78
- package/resource/knowledge/trtc/ios/TRTCStatistics.md +1 -1
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +1 -20
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +4 -6
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/ios/TXLiveSDKTypeDef.md +20 -20
- package/server-config.js +7 -4
- package/server.js +2 -2
- package/tools/common/finalize_answer.js +1 -1
- package/tools/common/present_framework_choice.js +2 -2
- package/tools/common/search_trtc_knowledge.js +3 -3
- package/tools/common/submit_feedback.js +1 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +60 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +1 -1
- package/tools/definitions/present_framework_choice_def.js +2 -2
- package/tools/definitions/search_trtc_knowledge_def.js +5 -5
- package/tools/index.js +2 -0
- package/tools/live/get_native_live_uikit_integration.js +69 -0
- package/tools/live/get_native_livekit_core_integration.js +6 -6
- package/utils/is-valid-sdkappid.js +4 -0
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/index/component-slugs.json +0 -1
- package/resource/index/doc-source-urls.json +0 -1
- package/resource/index/manifest.json +0 -1
- package/resource/knowledge/livekit/core-sdk/live/android/live-audio-effect.md +0 -229
- package/resource/knowledge/livekit/core-sdk/live/android/live-gift.md +0 -459
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-barrage.md +0 -506
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-gift.md +0 -427
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-live-list.md +0 -726
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audience-list.md +0 -265
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audio-effect.md +0 -214
- package/resource/knowledge/livekit/core-sdk/live/ios/live-barrage.md +0 -427
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-audience-list.md +0 -272
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-barrage.md +0 -486
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-room-list.md +0 -523
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +0 -262
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +0 -600
- package/resource/knowledge/livekit/core-sdk/voice/ios/voice-gift.md +0 -411
- package/resource/knowledge/livekit/core-sdk/voice/ios/voice-room-list.md +0 -404
- /package/resource/knowledge/livekit/core-sdk/api-reference/{web → vue}/index.md +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-audience-list.md → features/android/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audience-list.md → features/flutter/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-base-beauty.md → features/flutter/base-beauty.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-audience-list.md → features/uni-app/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/live/flutter/{live-co-guest-interaction.md → co-guest-interaction.md} +0 -0
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
> **注意:**
|
|
4
4
|
>
|
|
5
|
-
|
|
6
5
|
> 每个厂商仅支持配置 1 个证书。
|
|
7
6
|
>
|
|
8
7
|
|
|
@@ -22,7 +21,7 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
22
21
|
|
|
23
22
|
1. 进入 Certificates,Identifiers & Profiles:在页面右上角单击 **Account**,然后在下拉菜单中选择 **Certificates, Identifiers & Profiles** 。
|
|
24
23
|
|
|
25
|
-
2. 创建一个新的 App ID:在左侧菜单中单击 **Identifiers** ,然后单击右侧的 **+** 创建一个新的 App ID。填写相应的信息并单击 **Continue
|
|
24
|
+
2. 创建一个新的 App ID:在左侧菜单中单击 **Identifiers** ,然后单击右侧的 **+** 创建一个新的 App ID。填写相应的信息并单击 **Continue** 。
|
|
26
25
|
|
|
27
26
|
3. 创建一个新的密钥:在左侧菜单中单击 **Keys**,然后单击右侧的 **+** 创建一个新的密钥。输入密钥的名称,然后勾选 **Apple Push Notifications service (APNs)**,单击 **Continue** 。
|
|
28
27
|
|
|
@@ -59,11 +58,10 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
59
58
|
|
|
60
59
|
3. 您可以参见如下步骤新建一个 AppID,或者在您原有的 AppID 上增加 `Push Notification` 的 `Service`。
|
|
61
60
|
|
|
62
|
-
> **说明:**
|
|
63
|
-
>
|
|
64
|
-
|
|
65
|
-
>
|
|
66
|
-
>
|
|
61
|
+
> **说明:**
|
|
62
|
+
>
|
|
63
|
+
> 您 App 的 `Bundle ID` 不能使用通配符 `*`,否则将无法使用远程推送服务。
|
|
64
|
+
>
|
|
67
65
|
|
|
68
66
|
4. 勾选 **App IDs**,单击 **Continue** 进行下一步。
|
|
69
67
|
|
|
@@ -78,11 +76,9 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
78
76
|
|
|
79
77
|
2. 可以看到在 **Apple Push Notification service SSL Certificates** 窗口中有两个 `SSL Certificate`,分别用于开发环境(Development)和生产环境(Production)的远程推送证书,如下图所示:
|
|
80
78
|
|
|
81
|
-
3.
|
|
82
|
-
|
|
83
|
-
我们先选择开发环境(Development)的 **Create Certificate**,系统将提示我们需要一个 Certificate Signing Request(CSR)。
|
|
79
|
+
3. 我们先选择开发环境(Development)的 **Create Certificate**,系统将提示我们需要一个 Certificate Signing Request(CSR)。
|
|
84
80
|
|
|
85
|
-
4. 在 Mac 上打开**钥匙串访问工具(Keychain Access
|
|
81
|
+
4. 在 Mac 上打开**钥匙串访问工具(Keychain Access)**,在菜单中选择**钥匙串访问** > **证书助理** > **从证书颁发机构请求证书**(`Keychain Access - Certificate Assistant - Request a Certificate From a Certificate Authority`)。
|
|
86
82
|
|
|
87
83
|
5. 输入用户电子邮件地址(您的邮箱)、常用名称(您的名称或公司名),选择**存储到磁盘**,单击**继续**,系统将生成一个 `*.certSigningRequest` 文件。
|
|
88
84
|
|
|
@@ -94,21 +90,19 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
94
90
|
|
|
95
91
|
9. 再次按照上述步骤1 - 8,将生产环境的 `Production SSL Certificate` 下载到本地。
|
|
96
92
|
|
|
97
|
-
> **说明:**
|
|
98
|
-
>
|
|
99
|
-
|
|
100
|
-
>
|
|
101
|
-
>
|
|
93
|
+
> **说明:**
|
|
94
|
+
>
|
|
95
|
+
> 生产环境的证书实际是开发(Sandbox)+生产(Production)的合并证书,可以同时作为开发环境和生产环境的证书使用。
|
|
96
|
+
>
|
|
102
97
|
|
|
103
98
|
10. 双击打开下载的开发环境和生产环境的 `SSL Certificate`,系统会将其导入钥匙串中。
|
|
104
99
|
|
|
105
|
-
11.
|
|
100
|
+
11. 打开钥匙串应用,在**登录** > **我的证书**,右键分别导出刚创建的开发环境(`Apple Development IOS Push Service`)和生产环境(`Apple Push Services`)的 `p12` 文件。
|
|
106
101
|
|
|
107
|
-
> **注意**
|
|
108
|
-
>
|
|
109
|
-
|
|
110
|
-
>
|
|
111
|
-
>
|
|
102
|
+
> **注意**
|
|
103
|
+
>
|
|
104
|
+
> 保存`.p12`文件时,请务必为其设置密码。
|
|
105
|
+
>
|
|
112
106
|
|
|
113
107
|
### 步骤2:上传证书到控制台
|
|
114
108
|
1. 登录 [即时通信 IM 控制台](https://console.cloud.tencent.com/im)。
|
|
@@ -146,10 +140,8 @@ p8 证书:p8 证书没有到期日期,因此您无需担心证书过期。
|
|
|
146
140
|
|
|
147
141
|
> **注意:**
|
|
148
142
|
>
|
|
149
|
-
|
|
150
143
|
> 关于**点击后续动作**选项, 如需使用本插件提供的点击跳转能力, 请保持默认值不变, 即通常是 `打开应用内指定页面` 并带有默认配置.
|
|
151
144
|
>
|
|
152
|
-
|
|
153
145
|
> 如需使用上报统计功能, 也请保持此项默认值不变,
|
|
154
146
|
>
|
|
155
147
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|**资源**|**获取位置**|**用途**|
|
|
8
8
|
|---------|---------|---------|
|
|
9
9
|
|`SDKAppID`|腾讯云控制台 > **推送服务 Push** > **概览**|调用 `registerPush` 注册推送服务。|
|
|
10
|
-
|客户端密钥|腾讯云控制台 > **推送服务 Push** >
|
|
10
|
+
|客户端密钥|腾讯云控制台 > **推送服务 Push** > **概览** > **客户端密钥**|调用 `registerPush` 注册推送服务。Push 的客户端密钥和 Chat 的客户端密钥不同,请勿混用。|
|
|
11
11
|
|`timpush-configs.json`|腾讯云控制台下载|放入 Android 应用模块的 `assets` 目录,TIMPush 注册时会读取该配置文件。|
|
|
12
12
|
|Android 工程包名|Android 工程 `applicationId`|需要与厂商平台应用包名保持一致。|
|
|
13
13
|
|目标厂商配置|对应厂商配置文档|确认厂商侧已开通推送服务,并已在腾讯云控制台添加厂商证书。|
|
|
@@ -17,9 +17,18 @@
|
|
|
17
17
|
|
|
18
18
|
本文示例中的 `VERSION`、`SDKAppID`、`AppKey`、厂商 AppID、厂商 AppKey 均为占位符,请勿在代码仓库中提交真实密钥。
|
|
19
19
|
|
|
20
|
+
## AI 集成
|
|
21
|
+
|
|
22
|
+
通过 npm 安装 [@tencent-rtc/trtc-push-skill](https://www.npmjs.com/package/@tencent-rtc/trtc-push-skill/v/1.0.1#%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) 到本地 AI IDE 中,辅助完成 TIMPush 离线推送集成。安装后,你可以直接向 AI 输入“集成 Android 离线推送”“帮我集成 Android TIMPush”等需求,AI 将根据项目类型引导你完成环境检测、厂商通道配置、凭据填写、代码接入和验证等步骤。
|
|
23
|
+
|
|
24
|
+
> **注意:**
|
|
25
|
+
>
|
|
26
|
+
> 使用 Push Skill AI 集成不是全自动流程,依然需要开发者在厂商配置控制台、腾讯云控制台等配置 Push 相关信息。具体的配置方法请参考下文相关章节。
|
|
27
|
+
>
|
|
28
|
+
|
|
20
29
|
## 集成 TIMPush
|
|
21
30
|
|
|
22
|
-
|
|
31
|
+
如果你想手动集成,请按下述操作步骤依次完成放置配置文件、配置 Gradle、补充 Manifest 与混淆。
|
|
23
32
|
|
|
24
33
|
### 下载并添加 TIMPush 配置文件
|
|
25
34
|
|
|
@@ -29,7 +38,6 @@
|
|
|
29
38
|
|
|
30
39
|
> **注意:**
|
|
31
40
|
>
|
|
32
|
-
|
|
33
41
|
> TIMPush 注册推送时会读取该文件中的厂商证书配置,不要放在 MainActivity 同级目录、工程根目录或 res 目录。如果文件缺失或放错目录,SDK 无法获得对应厂商通道配置,可能导致注册或收消息失败。
|
|
34
42
|
>
|
|
35
43
|
|
|
@@ -50,7 +58,6 @@ app/google-services.json # Google FCM
|
|
|
50
58
|
|
|
51
59
|
> **注意:**
|
|
52
60
|
>
|
|
53
|
-
|
|
54
61
|
> 修改厂商平台项目、应用信息、证书指纹或开发服务设置后,厂商配置文件需要重新下载并替换。
|
|
55
62
|
>
|
|
56
63
|
|
|
@@ -69,7 +76,6 @@ Android 工程可能使用 Groovy DSL 或 Kotlin DSL,请先根据文件后缀
|
|
|
69
76
|
|
|
70
77
|
> **注意:**
|
|
71
78
|
>
|
|
72
|
-
|
|
73
79
|
> 不要把 Groovy 示例直接复制到 `.kts` 文件中。Kotlin DSL 使用双引号、括号和 `uri(...)` 写法。
|
|
74
80
|
>
|
|
75
81
|
|
|
@@ -244,8 +250,7 @@ plugins {
|
|
|
244
250
|
|
|
245
251
|
> **说明:**
|
|
246
252
|
>
|
|
247
|
-
|
|
248
|
-
> 荣耀官方示例统一使用 `buildscript > dependencies > classpath` 声明 `asplugin`,未提供 `plugins {}` 块写法。如果项目级 `build.gradle.kts` 用 `plugins {}` 块声明 AGP(新建 Kotlin DSL 项目的默认方式),请在 `buildscript > dependencies` 中**额外补上**`com.android.tools.build:gradle` 和 `org.jetbrains.kotlin:kotlin-gradle-plugin` 的 classpath(原 `plugins {}` 块保留不动)。应用级 `plugins { id(...) }` 可省略版本号(由项目级 classpath 提供),或改写为 `apply plugin: "..."`。
|
|
253
|
+
> 荣耀官方示例统一使用 `buildscript > dependencies > classpath` 声明 `asplugin`,未提供 `plugins {}` 块写法。如果项目级 `build.gradle.kts` 用 `plugins {}` 块声明 AGP(新建 Kotlin DSL 项目的默认方式),请在 `buildscript > dependencies` 中**额外补上** `com.android.tools.build:gradle` 和 `org.jetbrains.kotlin:kotlin-gradle-plugin` 的 classpath(原 `plugins {}` 块保留不动)。应用级 `plugins { id(...) }` 可省略版本号(由项目级 classpath 提供),或改写为 `apply plugin: "..."`。
|
|
249
254
|
>
|
|
250
255
|
|
|
251
256
|
### 集成 TIMPush 依赖
|
|
@@ -302,7 +307,6 @@ dependencies {
|
|
|
302
307
|
|
|
303
308
|
> **注意:**
|
|
304
309
|
>
|
|
305
|
-
|
|
306
310
|
> `TIMPush`、`TUICore` 和各厂商通道包建议使用相同 `VERSION`,避免依赖冲突。项目已接入 IM SDK 或 TUIKit 时,也需要确认相关 SDK 版本兼容。
|
|
307
311
|
>
|
|
308
312
|
|
|
@@ -404,12 +408,12 @@ registerPush 用于注册当前设备的推送 token。注册成功后,后台
|
|
|
404
408
|
|
|
405
409
|
> **注意:**
|
|
406
410
|
>
|
|
407
|
-
>
|
|
408
|
-
>
|
|
411
|
+
> 1. 如果用户退出 IM SDK,同时集成了 IM SDK + TIMPush 的场景下已建立的 `userID` 与 `registrationID` 推送关系都会失效,需要重新完成对应注册。
|
|
412
|
+
> 2. Chat 应用的密钥仅用于 IM 登录,不能作为 `registerPush` 的 `appKey`。
|
|
409
413
|
|
|
410
414
|
【App 冷启动注册 TIMPush(appKey 传 Push Key)】
|
|
411
415
|
|
|
412
|
-
App 冷启动、用户同意隐私政策后调用 `registerPush(appKey = Push Key)`。如果工程已有自定义 `Application`,将注册逻辑放在该类中;如果没有,需新建并在 `AndroidManifest.xml
|
|
416
|
+
App 冷启动、用户同意隐私政策后调用 `registerPush(appKey = Push Key)`。如果工程已有自定义 `Application`,将注册逻辑放在该类中;如果没有,需新建并在 `AndroidManifest.xml` 中声明。
|
|
413
417
|
|
|
414
418
|
【Java】
|
|
415
419
|
``` java
|
|
@@ -565,11 +569,11 @@ fun loginIMAndRegisterPush(context: Context) {
|
|
|
565
569
|
|
|
566
570
|
**验证**:
|
|
567
571
|
|
|
568
|
-
|
|
572
|
+
1. `registerPush` 的 `onSuccess` 回调被触发。
|
|
569
573
|
|
|
570
|
-
|
|
574
|
+
2. 登录腾讯云控制台 > 即时通信 IM > **推送服务 Push** > **推送排查**,按当前场景输入 `registrationID` 或 `userID`,确认 token 已上传。
|
|
571
575
|
|
|
572
|
-
|
|
576
|
+
3. 如触发 `onError`,可按 错误码 查询 `code` 含义。
|
|
573
577
|
|
|
574
578
|
### 自定义 registrationID(可选)
|
|
575
579
|
|
|
@@ -577,7 +581,6 @@ fun loginIMAndRegisterPush(context: Context) {
|
|
|
577
581
|
|
|
578
582
|
> **注意:**
|
|
579
583
|
>
|
|
580
|
-
|
|
581
584
|
> 混用场景下,自定义 `registrationID` 必须与 IM 登录使用的 `userID` 完全一致,否则会产生账号互踢导致推送丢失。
|
|
582
585
|
>
|
|
583
586
|
|
|
@@ -595,7 +598,6 @@ fun loginIMAndRegisterPush(context: Context) {
|
|
|
595
598
|
|
|
596
599
|
> **注意:**
|
|
597
600
|
>
|
|
598
|
-
|
|
599
601
|
> 回执地址不配置或配置错误,都会影响触达统计。
|
|
600
602
|
>
|
|
601
603
|
|
|
@@ -666,7 +668,7 @@ V2TIMManager.getMessageManager().sendMessage(
|
|
|
666
668
|
|
|
667
669
|
在腾讯云控制台配置推送证书的「点击后续动作」,勾选「打开应用内指定页面」:
|
|
668
670
|
|
|
669
|
-
操作路径:腾讯云控制台 > **推送服务 Push
|
|
671
|
+
操作路径:腾讯云控制台 > **推送服务 Push** > **基础配置** > **对应厂商证书** > **编辑** > 点击后续动作,选择**打开应用内指定界面**,并保持默认填充值不修改。
|
|
670
672
|
|
|
671
673
|
### 发送推送时携带 `ext`
|
|
672
674
|
|
|
@@ -875,7 +877,6 @@ class App : Application() {
|
|
|
875
877
|
|
|
876
878
|
> **说明:**
|
|
877
879
|
>
|
|
878
|
-
|
|
879
880
|
> 旧版本工程中可能仍使用 `TUICore.registerEvent` 回调或 `LocalBroadcastManager` 广播处理点击通知。这两种方式在当前版本仍可工作,但新接入用户建议优先使用 `addPushListener`。如需从旧方案迁移,删除旧的事件注册或广播注册代码,改为在 `Application.onCreate()` 中调用 `addPushListener` 即可,回调中获取到的 `ext` 内容与旧方案一致。
|
|
880
881
|
>
|
|
881
882
|
|
|
@@ -885,7 +886,6 @@ class App : Application() {
|
|
|
885
886
|
|
|
886
887
|
> **注意:**
|
|
887
888
|
>
|
|
888
|
-
|
|
889
889
|
> 只有 IM 聊天、订单、交易、账号变更等用户预期强、需要及时触达的消息,才建议申请或使用高优先级分类。营销、广告、活动、资讯类消息不应滥用高优分类,否则可能被厂商降级、限频或冻结权限。
|
|
890
890
|
>
|
|
891
891
|
|
|
@@ -967,9 +967,9 @@ pushInfo.setAndroidOPPOChannelID("your_oppo_private_channel_id");
|
|
|
967
967
|
#### 步骤1:确认 registerPush 是否成功
|
|
968
968
|
|
|
969
969
|
检查 `registerPush` 回调结果:
|
|
970
|
-
- `onSuccess
|
|
970
|
+
- `onSuccess` **触发**:注册成功,进入第二步。
|
|
971
971
|
|
|
972
|
-
- `onError
|
|
972
|
+
- `onError` **触发**:注册失败。查看错误日志中的三层错误码:
|
|
973
973
|
|
|
974
974
|
- TIMPush 错误码(如 `800006`):在 错误码 中查询。
|
|
975
975
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
> **说明:**
|
|
6
6
|
>
|
|
7
|
-
|
|
8
7
|
> 在 [微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/intro/) 中开启推送服务,默认支持在线推送。如果您需要使用离线推送,请您先完成厂商配置,具体操作方法可参见 厂商配置 > 微信小程序多端框架。
|
|
9
8
|
>
|
|
10
9
|
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
|
|
19
18
|
> **说明:**
|
|
20
19
|
>
|
|
21
|
-
|
|
22
20
|
> 在 [微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html) 中开启推送服务,默认支持在线推送。
|
|
23
21
|
>
|
|
24
22
|
|
|
@@ -40,7 +38,6 @@
|
|
|
40
38
|
|
|
41
39
|
> **说明:**
|
|
42
40
|
>
|
|
43
|
-
|
|
44
41
|
> 如果只使用在线推送,则无需进行厂商离线推送配置。
|
|
45
42
|
>
|
|
46
43
|
|
|
@@ -61,11 +58,10 @@
|
|
|
61
58
|
|
|
62
59
|
各厂商的配置文件需要分别去厂商的推送控制台下载。
|
|
63
60
|
|
|
64
|
-
> **注意:**
|
|
65
|
-
>
|
|
66
|
-
|
|
67
|
-
>
|
|
68
|
-
>
|
|
61
|
+
> **注意:**
|
|
62
|
+
>
|
|
63
|
+
> 不要修改厂商配置文件名称,否则厂商推送会集成失败。
|
|
64
|
+
>
|
|
69
65
|
|
|
70
66
|
3. 配置证书指纹(华为、荣耀)。
|
|
71
67
|
|
|
@@ -80,7 +76,7 @@
|
|
|
80
76
|
1. 配置证书和描述文件。
|
|
81
77
|
|
|
82
78
|
请参见 [微信小程序多端框架配置文档](https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/handbook/certificate/ios.html) 或 [腾讯云推送厂商配置文档](https://cloud.tencent.com/document/product/269/100624) 以生成 iOS 应用运行时所需的证书和 Provisioning Profile,这些文件将在后续配置中使用。您需要准备以下文件:
|
|
83
|
-
- **开发证书.p12
|
|
79
|
+
- **开发证书.p12**
|
|
84
80
|
|
|
85
81
|
- **主 App 描述文件.mobileprovision**
|
|
86
82
|
|
|
@@ -89,7 +85,7 @@
|
|
|
89
85
|
请参见 [Apple Developer 平台 Bundle ID 配置指引](https://dev.weixin.qq.com/docs/miniapp/handbook/web/set-bundleid.html),配置时请勾选以下能力:
|
|
90
86
|
- **Push Notification**
|
|
91
87
|
|
|
92
|
-
- **App Group (
|
|
88
|
+
- **App Group (按需配置:字段配置可参见** [生成 App GroupID](https://cloud.tencent.com/document/product/269/100624#ae5590eb-b974-4226-9f1b-720fb0201c85)**)**
|
|
93
89
|
|
|
94
90
|
- Donut 建议的权限:Access WiFi Information、Associated Domains、Hotspot、Wireless Accessory Configuration;如果使用苹果登录,还需开启 Sign In with Apple(更多其他权限开发者按需开启,并非越多越好哈)
|
|
95
91
|
|
|
@@ -105,29 +101,25 @@
|
|
|
105
101
|
|
|
106
102
|
当您点击 Donut 运行程序运行于真机时,会出现**提示框引导**您使用开发证书(.p12 文件)和主应用程序的描述文件。
|
|
107
103
|
|
|
108
|
-
> **说明:**
|
|
109
|
-
>
|
|
110
|
-
|
|
111
|
-
>
|
|
112
|
-
>
|
|
113
|
-
|
|
114
|
-
> 后续 NSE 的配置,推荐您完整测试完推送功能后按照业务需求接入。
|
|
115
|
-
>
|
|
104
|
+
> **说明:**
|
|
105
|
+
>
|
|
106
|
+
> 接入至此,您已经具备了在线推送和厂商推送的所有推送能力,已可满足绝大部分业务需求。
|
|
107
|
+
>
|
|
108
|
+
> 后续 NSE 的配置,推荐您完整测试完推送功能后按照业务需求接入。
|
|
109
|
+
>
|
|
116
110
|
|
|
117
111
|
6. NSE 功能配置 (可选)
|
|
118
112
|
|
|
119
|
-
当您希望利用 iOS 10 Service Extension 特性来设置 APNs 离线推送的通知图片或统计消息的到达率时,您需要在相应的 **project.miniapp.json
|
|
113
|
+
当您希望利用 iOS 10 Service Extension 特性来设置 APNs 离线推送的通知图片或统计消息的到达率时,您需要在相应的 **project.miniapp.json** 文件中主动配置 NSE。同时,请确保在证书控制台中**启用 mutable-content** 选项,以便充分利用 iOS 10 Service Extension 的功能。
|
|
120
114
|
|
|
121
115
|
需要注意的是 NSE 是主 App 的插件,推送能力是主 App 带来的,NSE 是推送服务扩展,因此常用 NSE 来做一些特性需求的。
|
|
122
116
|
|
|
123
|
-
> **注意:**
|
|
124
|
-
>
|
|
125
|
-
|
|
126
|
-
>
|
|
127
|
-
>
|
|
128
|
-
|
|
129
|
-
> Notification Service Extension (NSE) 的 Bundle ID 通常是主应用程序的 Bundle ID 后面加上扩展的标识符,生成描述文件的步骤和主 App 一致。例如:您的主 App 描述文件( BundleID 为:`com.yourcompany.yourapp`) 那么您的 NSE 描述文件 ( BundleID 为:`com.yourcompany.yourapp.``extension`)
|
|
130
|
-
>
|
|
117
|
+
> **注意:**
|
|
118
|
+
>
|
|
119
|
+
> 请再次参见 [微信小程序多端框架配置文档](https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/handbook/certificate/ios.html) 或 [腾讯云推送厂商配置文档](https://cloud.tencent.com/document/product/269/100624) 以生成 NSE 的 Provisioning Profile,您需要重复之前生成描述文件的步骤。区别是标识符不同,NSE 的标识符规则如下 :
|
|
120
|
+
>
|
|
121
|
+
> Notification Service Extension (NSE) 的 Bundle ID 通常是主应用程序的 Bundle ID 后面加上扩展的标识符,生成描述文件的步骤和主 App 一致。例如:您的主 App 描述文件( BundleID 为:`com.yourcompany.yourapp`) 那么您的 NSE 描述文件 ( BundleID 为:`com.yourcompany.yourapp.``extension`)
|
|
122
|
+
>
|
|
131
123
|
|
|
132
124
|
您需要准备以下文件:
|
|
133
125
|
- **开发证书.p12 (之前步骤已经准备完毕)**
|
|
@@ -140,7 +132,6 @@
|
|
|
140
132
|
|
|
141
133
|
> **说明:**
|
|
142
134
|
>
|
|
143
|
-
|
|
144
135
|
> **NSE 相关配置详细描述如下:**
|
|
145
136
|
>
|
|
146
137
|
> - 开启 NSE:借助 iOS 10 Service Extension 特性统计消息抵达率 及设置 APNs 离线推送的通知图片。
|
|
@@ -156,7 +147,6 @@
|
|
|
156
147
|
|
|
157
148
|
> **说明:**
|
|
158
149
|
>
|
|
159
|
-
|
|
160
150
|
> 如何使用 npm 请查阅[官方文档](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html),此处不再赘述。
|
|
161
151
|
>
|
|
162
152
|
|
|
@@ -165,7 +155,7 @@
|
|
|
165
155
|
``` bash
|
|
166
156
|
npm i @tencentcloud/donut-push
|
|
167
157
|
```
|
|
168
|
-
2. 在微信开发者工具中构建 npm(**微信开发者工具** >
|
|
158
|
+
2. 在微信开发者工具中构建 npm(**微信开发者工具** > **工具** > **构建 npm**)
|
|
169
159
|
|
|
170
160
|
### 使用方法
|
|
171
161
|
|
|
@@ -216,13 +206,13 @@ App({
|
|
|
216
206
|
## 设备通知栏设置
|
|
217
207
|
|
|
218
208
|
推送的直观表现就是通知栏提示,所以同其他通知一样受设备通知相关设置的影响,以华为为例:
|
|
219
|
-
-
|
|
209
|
+
- “**手机设置** > **通知** > **锁屏通知** > **隐藏或者不显示通知**”,会影响锁屏状态下推送通知显示。
|
|
220
210
|
|
|
221
|
-
-
|
|
211
|
+
- “**手机设置** > **通知** > **更多通知设置** > **状态栏显示通知图标**”,会影响状态栏下推送通知的图标显示。
|
|
222
212
|
|
|
223
|
-
-
|
|
213
|
+
- “**手机设置** > **通知** > **应用的通知管理** > **允许通知**”,打开关闭会直接影响推送通知显示。
|
|
224
214
|
|
|
225
|
-
-
|
|
215
|
+
- “**手机设置** > **通知** > **应用的通知管理** > **通知铃声**” 和 “**手机设置** > **通知** > **应用的通知管理** > **静默通知**”,会影响推送通知铃音的效果。
|
|
226
216
|
|
|
227
217
|
## 厂商推送限制
|
|
228
218
|
1. 国内厂商都有消息分类机制,不同类型也会有不同的推送策略。如果想要推送及时可靠,需要按照厂商规则设置自己应用的推送类型为高优先级的系统消息类型或者重要消息类型。反之,推送消息会受厂商推送消息分类影响,与预期会有差异。
|
|
@@ -2,8 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
开始接入前,请先完成对应原生平台的推送前提配置:请参见 [iOS 前提条件](https://cloud.tencent.com/document/product/269/100627#.E5.89.8D.E6.8F.90.E6.9D.A1.E4.BB.B6) 和 [Android 前提条件](https://cloud.tencent.com/document/product/269/100626#.E5.89.8D.E6.8F.90.E6.9D.A1.E4.BB.B6)。
|
|
4
4
|
|
|
5
|
+
## AI 集成
|
|
6
|
+
|
|
7
|
+
通过 npm 安装 [@tencent-rtc/trtc-push-skill](https://www.npmjs.com/package/@tencent-rtc/trtc-push-skill/v/1.0.1#%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) 到本地 AI IDE 中,辅助完成 TIMPush 离线推送集成。安装后,你可以直接向 AI 输入“集成 Flutter 离线推送”“帮我集成 Flutter TIMPush”等需求,AI 将根据项目类型引导你完成环境检测、厂商通道配置、凭据填写、代码接入和验证等步骤。
|
|
8
|
+
|
|
9
|
+
> **注意:**
|
|
10
|
+
>
|
|
11
|
+
> 使用 Push Skill AI 集成不是全自动流程,依然需要开发者在厂商配置控制台、腾讯云控制台等配置 Push 相关信息。具体的配置方法请参考下文相关章节。
|
|
12
|
+
>
|
|
13
|
+
|
|
5
14
|
## 集成 TIMPush
|
|
6
15
|
|
|
16
|
+
如果你想手动集成,请按顺序完成下文配置。
|
|
17
|
+
|
|
7
18
|
Flutter 工程需要先引入推送插件,您可以在 `pubspec.yaml` 中添加依赖,也可以执行以下命令自动安装:
|
|
8
19
|
``` bash
|
|
9
20
|
flutter pub add tencent_cloud_chat_push
|
|
@@ -105,7 +116,7 @@ import tencent_cloud_chat_push
|
|
|
105
116
|
|
|
106
117
|
[registerPush](https://cloud.tencent.com/document/product/269/101962#3aab298e-7d51-4b17-ac24-8dd6b2d30e01) 用于注册当前设备的推送 token。注册时机、参数含义和不同接入场景的说明,请参考 [Android 注册推送](https://cloud.tencent.com/document/product/269/100626#.E6.B3.A8.E5.86.8C.E6.8E.A8.E9.80.81) 和 [iOS 注册推送](https://cloud.tencent.com/document/product/269/100627#50e75789-9e42-43b1-b9d1-7cf0dd15b930) 章节。
|
|
107
118
|
|
|
108
|
-
**请注意,不要在 Flutter
|
|
119
|
+
**请注意,不要在 Flutter 程序入口的** `main` **方法中调用。**建议在用户同意隐私政策后,并在业务侧合适时机调用。
|
|
109
120
|
|
|
110
121
|
【App 冷启动注册 TIMPush(appKey 传 Push Key)】
|
|
111
122
|
``` javascript
|
|
@@ -18,9 +18,9 @@ dependencies: {
|
|
|
18
18
|
|
|
19
19
|
> **说明:**
|
|
20
20
|
>
|
|
21
|
-
|
|
22
21
|
> 注册接口必填参数 SDKAppID 和客户端密钥 AppKey 的获取路径是 [IM 控制台 > 推送服务 Push > 概览](https://console.cloud.tencent.com/im/push-plugin-push-identifier),如下图所示:
|
|
23
22
|
>
|
|
23
|
+
>
|
|
24
24
|
|
|
25
25
|
``` java
|
|
26
26
|
import { TIMPushListener, TIMPushManager, TIMPushMessage } from '@tencentcloud/timpush';
|
|
@@ -53,6 +53,7 @@ TIMPushManager.getInstance()
|
|
|
53
53
|
>
|
|
54
54
|
> 1. 注册回调时机必须放在应用 [UIAbility](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/uiability-lifecycle) 的 onCreate() 函数中。
|
|
55
55
|
> 2. 控制台配置点击后续动作按如下配置,选择**打开应用内指定界面**,请勿修改默认值。
|
|
56
|
+
>
|
|
56
57
|
|
|
57
58
|
``` java
|
|
58
59
|
let pushListener: TIMPushListener = {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|---------|---------|---------|
|
|
9
9
|
|`SDKAppID`|腾讯云控制台 > 即时通信 IM > **推送服务 Push** > **概览**|调用 `registerPush`。创建 Push 应用后,腾讯云控制台会自动创建相同 `SDKAppID` 的 Chat 应用。|
|
|
10
10
|
|Push Key|腾讯云控制台 > 即时通信 IM > **推送服务 Push** > **概览** > **客户端密钥**|独立 Push 场景下,作为 `registerPush` 的 `appKey` 参数。|
|
|
11
|
-
|Chat Key|腾讯云控制台 > 即时通信 IM > **消息服务 Chat** >
|
|
11
|
+
|Chat Key|腾讯云控制台 > 即时通信 IM > **消息服务 Chat** > **概览** > **密钥**|Chat 登录使用。不要把 Chat Key 当作 `registerPush` 的 `appKey` 传入。|
|
|
12
12
|
|证书 ID|腾讯云控制台上传 APNs 证书后生成|证书 ID 即 `businessID`,在 AppDelegate 中返回给 TIMPush。|
|
|
13
13
|
|App Group ID|Apple Developer Center / **Xcode Capabilities**|仅在需要推送触达统计时使用。|
|
|
14
14
|
|Push 服务开通状态|腾讯云控制台 > 即时通信 IM > **推送服务 Push** > **概览**|创建 Push 应用不等于已开通 Push 服务,请确认 Push 服务已开通。|
|
|
@@ -16,9 +16,18 @@
|
|
|
16
16
|
|
|
17
17
|
本文示例中的 `VERSION`、`SDKAppID`、`AppKey`、`businessID`、App Group ID 均为占位符,请勿在代码仓库中提交真实密钥。
|
|
18
18
|
|
|
19
|
+
## AI 集成
|
|
20
|
+
|
|
21
|
+
通过 npm 安装 [@tencent-rtc/trtc-push-skill](https://www.npmjs.com/package/@tencent-rtc/trtc-push-skill/v/1.0.1#%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) 到本地 AI IDE 中,辅助完成 TIMPush 离线推送集成。安装后,你可以直接向 AI 输入“集成 iOS 离线推送”“帮我集成 iOS TIMPush”等需求,AI 将根据项目类型引导你完成环境检测、厂商通道配置、凭据填写、代码接入和验证等步骤。
|
|
22
|
+
|
|
23
|
+
> **注意:**
|
|
24
|
+
>
|
|
25
|
+
> 使用 Push Skill AI 集成不是全自动流程,依然需要开发者在厂商配置控制台、腾讯云控制台等配置 Push 相关信息。具体的配置方法请参考下文相关章节。
|
|
26
|
+
>
|
|
27
|
+
|
|
19
28
|
## 集成 TIMPush
|
|
20
29
|
|
|
21
|
-
|
|
30
|
+
如果你想手动集成,请按顺序完成下文配置。
|
|
22
31
|
|
|
23
32
|
### 主 App target 集成
|
|
24
33
|
|
|
@@ -52,7 +61,6 @@ pod install
|
|
|
52
61
|
|
|
53
62
|
> **注意:**
|
|
54
63
|
>
|
|
55
|
-
|
|
56
64
|
> 无论 Swift 还是 Objective-C 项目,都请集成 TXIMSDK_Plus_iOS_XCFramework。
|
|
57
65
|
>
|
|
58
66
|
|
|
@@ -138,8 +146,8 @@ registerPush 用于注册当前设备的推送 token。注册成功后,后台
|
|
|
138
146
|
|
|
139
147
|
> **注意:**
|
|
140
148
|
>
|
|
141
|
-
>
|
|
142
|
-
>
|
|
149
|
+
> - 如果用户退出 IM SDK,同时集成了 IM SDK + TIMPush 的场景下已建立的 `userID` 与 `registrationID` 推送关系都会失效,需要重新完成对应注册。
|
|
150
|
+
> - Chat 应用的密钥仅用于 IM 登录,不能作为 `registerPush` 的 `appKey`。
|
|
143
151
|
|
|
144
152
|
【App 冷启动注册 TIMPush(appKey 传 Push Key)】
|
|
145
153
|
|
|
@@ -247,11 +255,10 @@ func loginIMAndRegisterPush() {
|
|
|
247
255
|
|
|
248
256
|
### 自定义 registrationID(可选)
|
|
249
257
|
|
|
250
|
-
如需自定义推送标识(如使用业务侧用户 ID),可在 `registerPush
|
|
258
|
+
如需自定义推送标识(如使用业务侧用户 ID),可在 `registerPush` **前**调用 setRegistrationID。
|
|
251
259
|
|
|
252
260
|
> **注意:**
|
|
253
261
|
>
|
|
254
|
-
|
|
255
262
|
> 混用场景下,自定义 `registrationID` 必须与 IM 登录使用的 `userID` 完全一致,否则会产生账号互踢导致推送丢失。
|
|
256
263
|
>
|
|
257
264
|
|
|
@@ -291,7 +298,6 @@ func loginIMAndRegisterPush() {
|
|
|
291
298
|
|
|
292
299
|
> **注意:**
|
|
293
300
|
>
|
|
294
|
-
|
|
295
301
|
> Extension target 是独立 target,不能复用主 App target 的 Pod 依赖。若未在 Extension target 中添加 `TIMPush`,在 `NotificationService` 中 `import TIMPush` 或 `#import <TIMPush/TIMPushManager.h>` 会失败。
|
|
296
302
|
>
|
|
297
303
|
|
|
@@ -660,9 +666,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, TIMPushListener {
|
|
|
660
666
|
### 步骤2:确认 `registerPush` 是否成功
|
|
661
667
|
|
|
662
668
|
检查 `registerPush` 回调结果:
|
|
663
|
-
- `succ
|
|
669
|
+
- `succ` **已触发**:注册成功,进入第三步。
|
|
664
670
|
|
|
665
|
-
- `fail
|
|
671
|
+
- `fail` **触发**:注册失败。结合下文「错误码」表查询 `code` 含义,并按返回的 `desc` 排查 `SDKAppID`、`appKey` 取值(独立 Push 用 Push Key,Chat / TUIKit 用 `nil`)以及调用时机。
|
|
666
672
|
|
|
667
673
|
### 步骤3:确认控制台排查工具能查到 token
|
|
668
674
|
|
|
@@ -25,11 +25,10 @@ yarn add @tencentcloud/react-native-push
|
|
|
25
25
|
|
|
26
26
|
### 步骤3:**注册推送**
|
|
27
27
|
|
|
28
|
-
复制下面的代码到 `App.tsx`,将 `SDKAppID
|
|
28
|
+
复制下面的代码到 `App.tsx`,将 `SDKAppID` 和 `appKey` 替换为您在 [IM 控制台 > 推送服务 Push > 概览](https://console.cloud.tencent.com/im/push-plugin-push-identifier) 获取的应用的信息。
|
|
29
29
|
|
|
30
30
|
> **说明:**
|
|
31
31
|
>
|
|
32
|
-
|
|
33
32
|
> `registerPush` 注册推送服务成功后,您可通过 `getRegistrationID` 获取推送 ID 标识, 即 RegistrationID。您可以向指定的 RegistrationID 推送消息。
|
|
34
33
|
>
|
|
35
34
|
|
|
@@ -84,14 +83,14 @@ if (Push) {
|
|
|
84
83
|
|
|
85
84
|
【FCM】
|
|
86
85
|
|
|
87
|
-
您需要支持 FCM
|
|
86
|
+
您需要支持 FCM 推送时,须配置 `google-services.json` 文件到 `MyReactNativeApp/android/app` 目录下,如图所示:
|
|
88
87
|
|
|
89
88
|
(**请注意:不是 "**`MyReactNativeApp/android/app/src/main/assets" 目录`)。
|
|
90
89
|
|
|
91
90
|
【华为】
|
|
92
91
|
|
|
93
92
|
【荣耀】
|
|
94
|
-
|
|
93
|
+
1. 您需要支持荣耀推送时,须配置 `AppID` 到 `MyReactNativeApp/android/app/build.gradle` 文件中。如图所示:
|
|
95
94
|
|
|
96
95
|
``` bash
|
|
97
96
|
......
|
|
@@ -110,7 +109,7 @@ android {
|
|
|
110
109
|
|---------|---------|
|
|
111
110
|
|||
|
|
112
111
|
|
|
113
|
-
|
|
112
|
+
2. 从[荣耀开发者管理中心](https://developer.honor.com/cn/)下载 `mcs-services.json` 文件,并配置到 `MyReactNativeApp/android/app` 目录下(**请注意!不是** `MyReactNativeApp/android/app/src/main/assets 目录`)。
|
|
114
113
|
|
|
115
114
|
【vivo】
|
|
116
115
|
|
|
@@ -134,9 +133,9 @@ android {
|
|
|
134
133
|
|||
|
|
135
134
|
|
|
136
135
|
【iOS】
|
|
137
|
-
|
|
136
|
+
1. 请将您在厂商配置步骤中, 获取到的 iOS APNs 推送证书,上传至 IM 控制台。IM 控制台会为您分配一个证书 ID,如图所示:
|
|
138
137
|
|
|
139
|
-
|
|
138
|
+
2. 在 `MyReactNativeApp/ios/MyReactNativeApp` 目录下,新建 `Resources` 文件夹,并新建 `timpush-configs.json` 文件。编辑 `timpush-configs.json`,填入控制台获取的证书 ID,如下所示:
|
|
140
139
|
|
|
141
140
|
``` javascript
|
|
142
141
|
{
|
|
@@ -144,7 +143,7 @@ android {
|
|
|
144
143
|
}
|
|
145
144
|
```
|
|
146
145
|
|
|
147
|
-
|
|
146
|
+
3. Xcode 打开 MyReactNativeApp 项目,右键单击项目 > **Add Files to "MyReactNativeApp"**,将 `timpush-configs.json` 文件添加到工程。如图所示:
|
|
148
147
|
|
|
149
148
|
### 步骤5:**配置 Native Modules 和相关依赖**
|
|
150
149
|
|
|
@@ -152,7 +151,6 @@ android {
|
|
|
152
151
|
|
|
153
152
|
> **说明:**
|
|
154
153
|
>
|
|
155
|
-
|
|
156
154
|
> 请确保 `timpush-configs.json` 文件内的包名和 `MyReactNativeApp/android/app/build.gradle` 文件内的 `applicationId` 值一致,不一致则会导致离线推送不可用。
|
|
157
155
|
>
|
|
158
156
|
|
|
@@ -267,16 +265,16 @@ dependencies {
|
|
|
267
265
|
5. 以上操作都完成后,选择 **File > Sync Project with Gradle Files**。
|
|
268
266
|
|
|
269
267
|
【iOS】
|
|
270
|
-
|
|
268
|
+
1. 使用 Xcode 打开 MyReactNativeApp/ios/MyReactNativeApp.xcworkspace。
|
|
271
269
|
|
|
272
|
-
|
|
270
|
+
2. 进入 `MyReactNativeApp/ios` 目录,安装 TIMPush。
|
|
273
271
|
|
|
274
272
|
``` bash
|
|
275
273
|
pod install
|
|
276
274
|
# 如果无法安装最新版本,执行以下命令更新本地的 CocoaPods 仓库列表
|
|
277
275
|
pod repo update
|
|
278
276
|
```
|
|
279
|
-
|
|
277
|
+
3. 在 App 中启用推送通知功能。打开 Xcode 项目,在 **Project > Target > Capabilities** 页面选择并添加 **Push Notifications**。
|
|
280
278
|
|
|
281
279
|
### 步骤6:运行
|
|
282
280
|
|
|
@@ -302,7 +300,6 @@ npm run ios
|
|
|
302
300
|
|
|
303
301
|
> **说明:**
|
|
304
302
|
>
|
|
305
|
-
|
|
306
303
|
> 华为推送证书 ID <= 11344时,使用华为推送 v2 版本接口,不支持触达和点击回执,请重新生成更新证书 ID。
|
|
307
304
|
>
|
|
308
305
|
|
|
@@ -326,7 +323,6 @@ npm run ios
|
|
|
326
323
|
|
|
327
324
|
> **说明:**
|
|
328
325
|
>
|
|
329
|
-
|
|
330
326
|
> 打开回执开关后,请务必确保回执地址正确配置。不配置或者配置地址错误,都会影响推送功能。
|
|
331
327
|
>
|
|
332
328
|
|