@tencent-rtc/mcp 1.4.7 → 1.6.0
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/cursor-setting.png +0 -0
- package/index.js +0 -1
- package/knowledge/bm25-cache.js +73 -0
- package/knowledge/bm25.js +147 -0
- package/knowledge/build-index.js +69 -0
- package/knowledge/chunker.js +167 -0
- package/knowledge/content-loader.js +39 -0
- package/knowledge/doc-url-resolver.js +142 -0
- package/knowledge/extractors.js +25 -0
- package/knowledge/path-meta.js +184 -0
- package/knowledge/search/exact-lookup.js +497 -0
- package/knowledge/search/filter-pool.js +104 -0
- package/knowledge/search/product-scope-intent.js +40 -0
- package/knowledge/search/requires-framework.js +81 -0
- package/knowledge/search/search-knowledge.js +229 -0
- package/mcp-server-prompt.png +0 -0
- package/package.json +1 -1
- package/resource/_schema/feature-aliases.yaml +10 -0
- package/resource/_schema/goal-tags.yaml +72 -0
- package/resource/_schema/products.yaml +19 -0
- package/resource/_schema/trtc-intents.yaml +27 -0
- package/resource/_schema/types.yaml +43 -0
- package/resource/index/component-slugs.json +1 -0
- package/resource/index/doc-source-urls.json +1 -0
- package/resource/index/manifest.json +1 -0
- package/resource/{doc → integration}/callkit/preset/android/integration.md +34 -28
- package/resource/integration/callkit/preset/flutter/integration.md +346 -0
- package/resource/integration/callkit/preset/ios/integration.md +408 -0
- package/resource/integration/callkit/preset/react/integration.md +362 -0
- package/resource/integration/callkit/preset/vue/integration.md +356 -0
- package/resource/integration/chat/preset/android/integration.md +500 -0
- package/resource/integration/chat/preset/flutter/integration.md +370 -0
- package/resource/integration/chat/preset/ios/integration.md +566 -0
- package/resource/integration/chat/preset/react/integration.md +490 -0
- package/resource/integration/chat/preset/vue/integration.md +504 -0
- package/resource/{doc → integration}/livekit/preset/live/vue/live-list-integration.md +26 -22
- package/resource/{doc → integration}/livekit/preset/live/vue/live-player-desk-integration.md +22 -18
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +309 -0
- package/resource/{doc → integration}/livekit/preset/live/vue/live-pusher-integration.md +47 -39
- package/resource/integration/roomkit/preset/vue/integration.md +562 -0
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +828 -0
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +897 -0
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +363 -0
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +1111 -0
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +1132 -0
- package/resource/{doc → knowledge}/callkit/core-sdk/flutter/offline-push.md +174 -151
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +1084 -0
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +1252 -0
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +534 -0
- package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +953 -0
- package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +1061 -0
- package/resource/knowledge/callkit/faq/android.md +92 -0
- package/resource/{doc/callkit/faq/android-faq.md → knowledge/callkit/faq/common.md} +11 -12
- package/resource/knowledge/callkit/faq/error-code.md +67 -0
- package/resource/knowledge/callkit/faq/flutter.md +52 -0
- package/resource/knowledge/callkit/faq/ios.md +104 -0
- package/resource/knowledge/callkit/faq/web.md +74 -0
- package/resource/knowledge/callkit/preset/android/api.md +412 -0
- package/resource/knowledge/callkit/preset/flutter/api.md +22 -0
- package/resource/knowledge/callkit/preset/ios/api.md +234 -0
- package/resource/knowledge/callkit/preset/web/api.md +83 -0
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +74 -0
- package/resource/knowledge/chat/preset/android/features/contact-list.md +43 -0
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +117 -0
- package/resource/knowledge/chat/preset/android/features/language.md +136 -0
- package/resource/knowledge/chat/preset/android/features/message-input.md +57 -0
- package/resource/knowledge/chat/preset/android/features/message-list.md +142 -0
- package/resource/knowledge/chat/preset/android/features/search.md +64 -0
- package/resource/knowledge/chat/preset/android/features/theme.md +222 -0
- package/resource/knowledge/chat/preset/android-view/integration.md +300 -0
- package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +64 -0
- package/resource/knowledge/chat/preset/flutter/features/contact-list.md +40 -0
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +129 -0
- package/resource/knowledge/chat/preset/flutter/features/language.md +104 -0
- package/resource/knowledge/chat/preset/flutter/features/message-input.md +54 -0
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +158 -0
- package/resource/knowledge/chat/preset/flutter/features/search.md +59 -0
- package/resource/knowledge/chat/preset/flutter/features/theme.md +261 -0
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +94 -0
- package/resource/knowledge/chat/preset/ios/features/contact-list.md +119 -0
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +134 -0
- package/resource/knowledge/chat/preset/ios/features/language.md +125 -0
- package/resource/knowledge/chat/preset/ios/features/message-input.md +69 -0
- package/resource/knowledge/chat/preset/ios/features/message-list.md +162 -0
- package/resource/knowledge/chat/preset/ios/features/search.md +93 -0
- package/resource/knowledge/chat/preset/ios/features/theme.md +270 -0
- package/resource/{doc/chatkit/ios → knowledge/chat/preset/ios-uikit}/integration.md +160 -158
- package/resource/knowledge/chat/preset/react/features/chat-setting.md +101 -0
- package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/contact-list.md +43 -41
- package/resource/knowledge/chat/preset/react/features/conversation-actions.md +215 -0
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +339 -0
- package/resource/knowledge/chat/preset/react/features/conversation-preview.md +101 -0
- package/resource/knowledge/chat/preset/react/features/conversation-search.md +61 -0
- package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/message-input.md +117 -156
- package/resource/knowledge/chat/preset/react/features/message-list.md +297 -0
- package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/search.md +65 -59
- package/resource/knowledge/chat/preset/react/features/theme.md +93 -0
- package/resource/knowledge/chat/preset/vue/features/chat-header.md +331 -0
- package/resource/knowledge/chat/preset/vue/features/chat-setting.md +79 -0
- package/resource/knowledge/chat/preset/vue/features/contact-list.md +277 -0
- package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +234 -0
- package/resource/knowledge/chat/preset/vue/features/conversation-list.md +331 -0
- package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +216 -0
- package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/conversation-search.md +13 -13
- package/resource/knowledge/chat/preset/vue/features/message-input.md +551 -0
- package/resource/knowledge/chat/preset/vue/features/message-list.md +350 -0
- package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/search.md +79 -73
- package/resource/knowledge/chat/preset/vue/features/theme.md +136 -0
- package/resource/knowledge/chat/urls/error-code.md +17 -0
- package/resource/knowledge/chat/urls/product.md +43 -0
- package/resource/knowledge/chat/urls/restapi.md +204 -0
- package/resource/knowledge/chat/urls/sdk/android.md +80 -0
- package/resource/knowledge/chat/urls/sdk/flutter.md +71 -0
- package/resource/knowledge/chat/urls/sdk/ios.md +80 -0
- package/resource/knowledge/chat/urls/sdk/web.md +80 -0
- package/resource/knowledge/chat/urls/webhook.md +68 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +286 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +174 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +329 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +55 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +434 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +362 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +466 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +173 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +51 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +291 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +78 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +488 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +219 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +282 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +212 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +153 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +312 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +404 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +334 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +426 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +166 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +52 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +281 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +150 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +438 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +190 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +291 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +192 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +146 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +309 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +370 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +339 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +503 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +188 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +51 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +289 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +78 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +487 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +183 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/web/index.md +736 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audience-list.md +53 -47
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-base-beauty.md +17 -15
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-co-guest-interaction.md +19 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-gift.md +102 -89
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-host-interaction.md +41 -37
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-integration.md +45 -43
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-live-list.md +23 -20
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audience-list.md +41 -41
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audio-effect.md +70 -69
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-barrage.md +68 -71
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-base-beauty.md +43 -47
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-co-guest-interaction.md +59 -56
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-gift.md +103 -105
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-host-interaction.md +869 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-integration.md +84 -87
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-live-list.md +43 -40
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audience-list.md +11 -10
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-base-beauty.md +15 -14
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-co-guest-interaction.md +19 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-gift.md +54 -50
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-host-interaction.md +41 -37
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-integration.md +40 -40
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-live-list.md +19 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audience-list.md +53 -47
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +41 -33
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-gift.md +94 -81
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-host-interaction.md +35 -30
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-integration.md +45 -42
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-room-list.md +23 -20
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +260 -0
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +598 -0
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-barrage.md +490 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +65 -59
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-gift.md +424 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-integration.md +69 -76
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-room-list.md +726 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audience-list.md +11 -10
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +41 -33
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-gift.md +54 -50
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-host-interaction.md +35 -30
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-integration.md +49 -46
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-room-list.md +19 -18
- package/resource/knowledge/livekit/faq/error-code.md +193 -0
- package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/barrage.md +56 -53
- package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-audience-list.md +22 -21
- package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-view.md +34 -32
- package/resource/knowledge/push/config/android.md +92 -0
- package/resource/knowledge/push/config/harmonyos.md +83 -0
- package/resource/knowledge/push/config/ios.md +254 -0
- package/resource/knowledge/push/config/react-native.md +254 -0
- package/resource/knowledge/push/config/unity.md +209 -0
- package/resource/knowledge/push/config/unreal-engine.md +194 -0
- package/resource/knowledge/push/integration/android.md +404 -0
- package/resource/knowledge/push/integration/flutter.md +465 -0
- package/resource/knowledge/push/integration/harmonyos.md +63 -0
- package/resource/knowledge/push/integration/ios.md +246 -0
- package/resource/knowledge/push/integration/react-native.md +366 -0
- package/resource/knowledge/push/integration/uni-app.md +208 -0
- package/resource/knowledge/push/integration/unity.md +389 -0
- package/resource/knowledge/push/integration/unreal-engine.md +390 -0
- package/resource/knowledge/push/overview/prepare.md +60 -0
- package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +241 -0
- package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +588 -0
- package/resource/knowledge/roomkit/core-sdk/android/room-state.md +364 -0
- package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +340 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +230 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +797 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +325 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +325 -0
- package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +233 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +569 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +325 -0
- package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +322 -0
- package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +221 -0
- package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/device-detection.md +49 -48
- package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +461 -0
- package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +216 -0
- package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +370 -0
- package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-participant-state.md +61 -60
- package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +280 -0
- package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-view.md +57 -56
- package/resource/knowledge/roomkit/core-sdk/vue/schedule-room.md +319 -0
- package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +267 -0
- package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +261 -0
- package/resource/knowledge/roomkit/preset/android/integration.md +396 -0
- package/resource/knowledge/roomkit/preset/flutter/integration.md +404 -0
- package/resource/knowledge/roomkit/preset/ios/integration.md +369 -0
- package/resource/knowledge/roomkit/preset/react/integration.md +576 -0
- package/resource/knowledge/rtcengine/web/how_to_run_web_sdk_demo.md +44 -0
- package/resource/{doc → knowledge}/rtcengine/web/plugin/21-advanced-auto-play-policy.md +8 -2
- package/resource/{doc → knowledge}/rtcengine/web/plugin/22-advanced-audio-mixer.md +19 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/23-advanced-support-detection.md +1 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/24-advanced-network-quality.md +8 -8
- package/resource/{doc → knowledge}/rtcengine/web/plugin/25-advanced-device-change.md +1 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +6 -6
- package/resource/{doc → knowledge}/rtcengine/web/plugin/27-advanced-small-stream.md +3 -3
- package/resource/{doc → knowledge}/rtcengine/web/plugin/29-advanced-water-mark.md +18 -0
- package/resource/{doc → knowledge}/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/34-advanced-proxy.md +2 -2
- package/resource/{doc → knowledge}/rtcengine/web/plugin/35-advanced-ai-denoiser.md +1 -1
- package/resource/knowledge/trtc/android/TRTCCloud.md +1915 -0
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +1029 -0
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +1095 -0
- package/resource/knowledge/trtc/android/TRTCStatistics.md +68 -0
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +502 -0
- package/resource/knowledge/trtc/android/TXBeautyManager.md +415 -0
- package/resource/knowledge/trtc/android/TXDeviceManager.md +169 -0
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +125 -0
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +2069 -0
- package/resource/knowledge/trtc/c++/ITRTCStatistics.md +73 -0
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +502 -0
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +391 -0
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +1191 -0
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +931 -0
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +127 -0
- package/resource/knowledge/trtc/ios/TRTCCloud.md +2118 -0
- package/resource/knowledge/trtc/ios/TRTCCloudDef.md +975 -0
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +1131 -0
- package/resource/knowledge/trtc/ios/TRTCStatistics.md +68 -0
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +423 -0
- package/resource/knowledge/trtc/ios/TXBeautyManager.md +416 -0
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +387 -0
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +127 -0
- package/server-config.js +0 -1
- package/server.js +35 -12
- package/streamable-http.js +0 -1
- package/tools/call/get_native_call_uikit_integration.js +2 -4
- package/tools/call/get_native_callkit_core_integration.js +2 -6
- package/tools/call/get_web_call_uikit_integration.js +2 -4
- package/tools/chat/get_native_chat_uikit_integration.js +2 -4
- package/tools/chat/get_web_chat_uikit_integration.js +2 -4
- package/tools/common/get_usersig.js +0 -1
- package/tools/common/present_framework_choice.js +19 -14
- package/tools/common/record_answer.js +19 -26
- package/tools/common/record_feedback.js +17 -31
- package/tools/common/search_trtc_knowledge.js +44 -0
- package/tools/definitions/get_native_call_uikit_integration_def.js +3 -2
- package/tools/definitions/get_native_callkit_core_integration_def.js +5 -4
- package/tools/definitions/get_native_chat_uikit_integration_def.js +5 -3
- package/tools/definitions/get_native_livekit_core_integration_def.js +6 -6
- package/tools/definitions/get_usersig_def.js +0 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +4 -3
- package/tools/definitions/get_web_chat_uikit_integration_def.js +2 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +5 -6
- package/tools/definitions/get_web_room_core_integration_def.js +49 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +5 -5
- package/tools/definitions/integration-boundary.js +5 -0
- package/tools/definitions/present_framework_choice_def.js +12 -11
- package/tools/definitions/record_answer_def.js +19 -18
- package/tools/definitions/record_feedback_def.js +14 -14
- package/tools/definitions/search_trtc_knowledge_def.js +39 -0
- package/tools/index.js +5 -37
- package/tools/live/get_native_livekit_core_integration.js +1 -4
- package/tools/live/get_web_live_uikit_integration.js +2 -5
- package/tools/room/get_web_room_core_integration.js +47 -0
- package/tools/room/get_web_room_uikit_integration.js +2 -4
- package/utils/generate-structured-result.js +24 -31
- package/utils/generate-usersig.js +0 -1
- package/utils/get-device-identifier.js +0 -1
- package/utils/get-doc-content.js +14 -9
- package/utils/http-get.js +0 -1
- package/utils/http-post.js +0 -1
- package/utils/report-cls-client.js +18 -21
- package/utils/report-es-client.js +1 -2
- package/index.js.map +0 -1
- package/resource/doc/callkit/core-sdk/.gitkeep +0 -0
- package/resource/doc/callkit/core-sdk/android/answer-call.md +0 -852
- package/resource/doc/callkit/core-sdk/android/make-call.md +0 -954
- package/resource/doc/callkit/core-sdk/android/offline-push.md +0 -361
- package/resource/doc/callkit/core-sdk/flutter/answer-call.md +0 -1160
- package/resource/doc/callkit/core-sdk/flutter/make-call.md +0 -1205
- package/resource/doc/callkit/core-sdk/ios/answer-call.md +0 -1090
- package/resource/doc/callkit/core-sdk/ios/make-call.md +0 -1248
- package/resource/doc/callkit/core-sdk/ios/offline-push.md +0 -485
- package/resource/doc/callkit/core-sdk/uni-app/answer-call.md +0 -950
- package/resource/doc/callkit/core-sdk/uni-app/make-call.md +0 -1052
- package/resource/doc/callkit/faq/common/error-code.md +0 -47
- package/resource/doc/callkit/faq/flutter-faq.md +0 -115
- package/resource/doc/callkit/faq/ios-faq.md +0 -115
- package/resource/doc/callkit/faq/web-faq.md +0 -36
- package/resource/doc/callkit/preset/android/api.md +0 -296
- package/resource/doc/callkit/preset/flutter/api.md +0 -410
- package/resource/doc/callkit/preset/flutter/integration.md +0 -164
- package/resource/doc/callkit/preset/ios/api.md +0 -80
- package/resource/doc/callkit/preset/ios/integration.md +0 -187
- package/resource/doc/callkit/preset/react/api.md +0 -501
- package/resource/doc/callkit/preset/react/integration.md +0 -86
- package/resource/doc/callkit/preset/vue/api.md +0 -501
- package/resource/doc/callkit/preset/vue/integration.md +0 -83
- package/resource/doc/chatkit/android/faq.md +0 -111
- package/resource/doc/chatkit/android/features/theme.md +0 -219
- package/resource/doc/chatkit/android/integration.md +0 -490
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +0 -281
- package/resource/doc/chatkit/faq/common/product.md +0 -7
- package/resource/doc/chatkit/faq/common/server.md +0 -44
- package/resource/doc/chatkit/faq/common/server_error_code.md +0 -74
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +0 -199
- package/resource/doc/chatkit/faq/flutter_sdk/faq.md +0 -53
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +0 -235
- package/resource/doc/chatkit/faq/web_sdk/error_code.md +0 -47
- package/resource/doc/chatkit/faq/web_sdk/faq.md +0 -287
- package/resource/doc/chatkit/flutter/faq.md +0 -23
- package/resource/doc/chatkit/flutter/features/theme.md +0 -235
- package/resource/doc/chatkit/flutter/integration.md +0 -344
- package/resource/doc/chatkit/ios/faq.md +0 -111
- package/resource/doc/chatkit/ios/features/theme.md +0 -267
- package/resource/doc/chatkit/react/components/avatar.md +0 -104
- package/resource/doc/chatkit/react/components/chat-header.md +0 -148
- package/resource/doc/chatkit/react/components/chat-setting.md +0 -57
- package/resource/doc/chatkit/react/components/chat.md +0 -38
- package/resource/doc/chatkit/react/components/component-list.md +0 -37
- package/resource/doc/chatkit/react/components/conversation-actions.md +0 -174
- package/resource/doc/chatkit/react/components/conversation-list.md +0 -333
- package/resource/doc/chatkit/react/components/conversation-preview.md +0 -118
- package/resource/doc/chatkit/react/components/conversation-search.md +0 -60
- package/resource/doc/chatkit/react/components/message-list.md +0 -293
- package/resource/doc/chatkit/react/components/tuikit.md +0 -34
- package/resource/doc/chatkit/react/faq.md +0 -26
- package/resource/doc/chatkit/react/integration.md +0 -416
- package/resource/doc/chatkit/vue/components/avatar.md +0 -104
- package/resource/doc/chatkit/vue/components/chat-header.md +0 -148
- package/resource/doc/chatkit/vue/components/chat-setting.md +0 -62
- package/resource/doc/chatkit/vue/components/chat.md +0 -45
- package/resource/doc/chatkit/vue/components/component-list.md +0 -87
- package/resource/doc/chatkit/vue/components/contact-list.md +0 -271
- package/resource/doc/chatkit/vue/components/conversation-actions.md +0 -228
- package/resource/doc/chatkit/vue/components/conversation-list.md +0 -320
- package/resource/doc/chatkit/vue/components/conversation-preview.md +0 -213
- package/resource/doc/chatkit/vue/components/message-input.md +0 -1054
- package/resource/doc/chatkit/vue/components/message-list.md +0 -433
- package/resource/doc/chatkit/vue/components/tuikit.md +0 -31
- package/resource/doc/chatkit/vue/components/userpicker.md +0 -256
- package/resource/doc/chatkit/vue/faq.md +0 -36
- package/resource/doc/chatkit/vue/integration.md +0 -428
- package/resource/doc/livekit/core-sdk/live/flutter/live-host-interaction.md +0 -866
- package/resource/doc/livekit/faq/common/error-code.md +0 -88
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +0 -780
- package/resource/doc/livekit/preset/live/vue/components/co-guest-panel.md +0 -91
- package/resource/doc/livekit/preset/live/vue/components/live-scene-panel.md +0 -112
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +0 -215
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +0 -300
- package/resource/doc/roomkit/faq/common/error-code.md +0 -67
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +0 -220
- package/resource/doc/roomkit/vue/features/device-state.md +0 -460
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +0 -215
- package/resource/doc/roomkit/vue/features/room-chat.md +0 -369
- package/resource/doc/roomkit/vue/features/room-state.md +0 -282
- package/resource/doc/roomkit/vue/features/schedule-room.md +0 -318
- package/resource/doc/roomkit/vue/features/screen-share.md +0 -265
- package/resource/doc/roomkit/vue/features/virtual-background.md +0 -271
- package/resource/doc/roomkit/vue/integration.md +0 -315
- package/resource/doc/rtcengine/faq/common/error_code.md +0 -1
- package/resource/doc/rtcengine/faq/web_sdk/.gitkeep +0 -0
- package/resource/doc/rtcengine/web/.gitkeep +0 -0
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +0 -59
- package/resource/doc/trtc/C++/ITRTCCloud.md +0 -1970
- package/resource/doc/trtc/C++/ITRTCStatistics.md +0 -70
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +0 -469
- package/resource/doc/trtc/C++/ITXDeviceManager.md +0 -387
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +0 -1082
- package/resource/doc/trtc/C++/TRTCTypeDef.md +0 -925
- package/resource/doc/trtc/C++/TXLiteAVCode.md +0 -129
- package/resource/doc/trtc/android/TRTCCloud.md +0 -1815
- package/resource/doc/trtc/android/TRTCCloudDef.md +0 -992
- package/resource/doc/trtc/android/TRTCCloudListener.md +0 -1004
- package/resource/doc/trtc/android/TRTCStatistics.md +0 -65
- package/resource/doc/trtc/android/TXAudioEffectManager.md +0 -469
- package/resource/doc/trtc/android/TXBeautyManager.md +0 -402
- package/resource/doc/trtc/android/TXDeviceManager.md +0 -173
- package/resource/doc/trtc/android/TXLiteAVCode.md +0 -127
- package/resource/doc/trtc/iOS/TRTCCloud.md +0 -2028
- package/resource/doc/trtc/iOS/TRTCCloudDef.md +0 -958
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +0 -1046
- package/resource/doc/trtc/iOS/TRTCStatistics.md +0 -65
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +0 -397
- package/resource/doc/trtc/iOS/TXBeautyManager.md +0 -403
- package/resource/doc/trtc/iOS/TXDeviceManager.md +0 -381
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +0 -130
- package/server-config.js.map +0 -1
- package/server.js.map +0 -1
- package/streamable-http.js.map +0 -1
- package/tools/call/get_callkit_api.js +0 -33
- package/tools/call/get_callkit_api.js.map +0 -1
- package/tools/call/get_native_call_uikit_integration.js.map +0 -1
- package/tools/call/get_native_callkit_core_integration.js.map +0 -1
- package/tools/call/get_web_call_uikit_integration.js.map +0 -1
- package/tools/chat/get_native_chat_uikit_feature_detail.js +0 -35
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +0 -1
- package/tools/chat/get_native_chat_uikit_integration.js.map +0 -1
- package/tools/chat/get_web_chat_uikit_component_detail.js +0 -35
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +0 -1
- package/tools/chat/get_web_chat_uikit_integration.js.map +0 -1
- package/tools/common/get_faq.js +0 -266
- package/tools/common/get_faq.js.map +0 -1
- package/tools/common/get_usersig.js.map +0 -1
- package/tools/common/present_framework_choice.js.map +0 -1
- package/tools/common/record_answer.js.map +0 -1
- package/tools/common/record_feedback.js.map +0 -1
- package/tools/common/record_skill_session.js +0 -69
- package/tools/common/record_skill_session.js.map +0 -1
- package/tools/definitions/get_callkit_api_def.js +0 -29
- package/tools/definitions/get_callkit_api_def.js.map +0 -1
- package/tools/definitions/get_faq_def.js +0 -47
- package/tools/definitions/get_faq_def.js.map +0 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_callkit_core_integration_def.js.map +0 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +0 -31
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +0 -34
- package/tools/definitions/get_native_livekit_core_features_def.js.map +0 -1
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +0 -1
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +0 -32
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +0 -1
- package/tools/definitions/get_usersig_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +0 -31
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_livekit_api_def.js +0 -30
- package/tools/definitions/get_web_livekit_api_def.js.map +0 -1
- package/tools/definitions/get_web_livekit_component_detail_def.js +0 -32
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +0 -31
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_web_trtc_sdk_api_def.js +0 -27
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +0 -1
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +0 -27
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +0 -1
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +0 -27
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +0 -1
- package/tools/definitions/present_framework_choice_def.js.map +0 -1
- package/tools/definitions/record_answer_def.js.map +0 -1
- package/tools/definitions/record_feedback_def.js.map +0 -1
- package/tools/definitions/record_skill_session_def.js +0 -31
- package/tools/definitions/record_skill_session_def.js.map +0 -1
- package/tools/index.js.map +0 -1
- package/tools/live/get_native_livekit_core_features.js +0 -68
- package/tools/live/get_native_livekit_core_features.js.map +0 -1
- package/tools/live/get_native_livekit_core_integration.js.map +0 -1
- package/tools/live/get_web_live_uikit_integration.js.map +0 -1
- package/tools/live/get_web_livekit_api.js +0 -33
- package/tools/live/get_web_livekit_api.js.map +0 -1
- package/tools/live/get_web_livekit_component_detail.js +0 -35
- package/tools/live/get_web_livekit_component_detail.js.map +0 -1
- package/tools/room/get_web_room_uikit_integration.js.map +0 -1
- package/tools/room/get_web_roomkit_feature_detail.js +0 -69
- package/tools/room/get_web_roomkit_feature_detail.js.map +0 -1
- package/tools/rtcengine/get_web_trtc_sdk_api.js +0 -32
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +0 -1
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +0 -32
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +0 -1
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +0 -32
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +0 -1
- package/tools/trtc/get_native_trtc_sdk_docs.js +0 -74
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +0 -1
- package/utils/build-session-directives.js +0 -120
- package/utils/build-session-directives.js.map +0 -1
- package/utils/generate-structured-result.js.map +0 -1
- package/utils/generate-usersig.js.map +0 -1
- package/utils/get-device-identifier.js.map +0 -1
- package/utils/get-doc-content.js.map +0 -1
- package/utils/handle-framework.js +0 -9
- package/utils/handle-framework.js.map +0 -1
- package/utils/handle-state-name.js +0 -29
- package/utils/handle-state-name.js.map +0 -1
- package/utils/http-get.js.map +0 -1
- package/utils/http-post.js.map +0 -1
- package/utils/report-cls-client.js.map +0 -1
- package/utils/report-es-client.js.map +0 -1
- package/utils/report-runtime-error-cls-client.js +0 -91
- package/utils/report-runtime-error-cls-client.js.map +0 -1
- /package/resource/{doc/livekit/preset/live/vue/faq.md → knowledge/push/config/donut.md} +0 -0
- /package/resource/{doc/roomkit/vue/faq.md → knowledge/push/integration/donut.md} +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/api.md +0 -0
- /package/resource/{doc/rtcengine/faq/web/web.md → knowledge/rtcengine/web/faq.md} +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/how_to_integrated_web_sdk.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/28-advanced-beauty.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/30-advanced-cross-room-link.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/37-advanced-voice-changer.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/40-advanced-video-mixer.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/43-advanced-face-detection.md +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
### Effect Showcase
|
|
2
|
+
| Xiaomi 11 Pro (Integrated with <a href="https://ext.dcloud.net.cn/plugin?id=9035">CallKit</a>) | iPhone 13 | Samsung Galaxy A23 Overseas Version (Google FCM Push) |
|
|
3
|
+
| --- | --- | --- |
|
|
4
|
+
|
|
5
|
+
### Integrate TencentCloud-Push
|
|
6
|
+
|
|
7
|
+
HBuilderX 4.29 has a bug. Please use HBuilderX 4.36 or higher and upgrade [uni-app Tencent Cloud Push Service (Push)](https://ext.dcloud.net.cn/plugin) to version 1.1.0 or higher.
|
|
8
|
+
|
|
9
|
+
### Step 1: Downloading the plugin and importing it into **HBuilderX**
|
|
10
|
+
1. Open [uni-app Tencent Cloud Push Service (Push)](https://ext.dcloud.net.cn/plugin), click **Download the plugin and import it into HBuilderX**, and import the plugin into the HBuilderX project.
|
|
11
|
+
|
|
12
|
+
2. Select the project you want to integrate and click **OK**.
|
|
13
|
+
|
|
14
|
+
3. The effect after integration is shown below:
|
|
15
|
+
|
|
16
|
+
### Step 2. Offline push configuration
|
|
17
|
+
|
|
18
|
+
> **Note:**
|
|
19
|
+
>
|
|
20
|
+
> 1. HBuilderX 4.36 has released non-backward compatible updates. If you are using HBuilderX 4.36 or higher and need vendor push for vivo/Honor, please upgrade the push version to 1.1.0 or higher and refer to the documentation to correctly configure `manifestPlaceholders.json` and `mcs-services.json`.
|
|
21
|
+
> 2. You need to configure push notifications in the `nativeResources` directory. If this folder is not yet created in the project root directory, please create a new folder named `nativeResources`.
|
|
22
|
+
> 3. Ensure that the `nativeResources` directory exists in the project opened with HBuilderX and is at the same level as the `uni_modules` directory.
|
|
23
|
+
|
|
24
|
+
【Android】
|
|
25
|
+
1. Create the directory `nativeResources/android/assets`.
|
|
26
|
+
|
|
27
|
+
2. Configure `timpush-configs.json` (download from [Push Service > Access Settings > One-click Quick Configuration](https://console.trtc.io/chat/push-plugin-push-identifier)) to the `nativeResources/android/assets/` directory. As shown in the figure:
|
|
28
|
+
|
|
29
|
+
3. Huawei, HONOR, vivo, FCM.
|
|
30
|
+
|
|
31
|
+
【FCM】
|
|
32
|
+
1. Configure `com.google.gms.google-services` to `uni_modules/TencentCloud-Push/utssdk/app-android/config.json` in `project.plugins`, as shown below:
|
|
33
|
+
|
|
34
|
+
``` json
|
|
35
|
+
"project": {
|
|
36
|
+
"plugins": [
|
|
37
|
+
...
|
|
38
|
+
"com.google.gms.google-services"
|
|
39
|
+
],
|
|
40
|
+
"dependencies": [
|
|
41
|
+
"com.huawei.agconnect:agcp:1.9.1.301",
|
|
42
|
+
"com.google.gms:google-services:4.3.15",
|
|
43
|
+
"com.hihonor.mcs:asplugin:2.0.1.300"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
2. Configure the `google-services.json` file to the `nativeResources/android/` directory (Note! Do not configure it to the `nativeResources/android/assets` directory). As shown in the figure:
|
|
49
|
+
|
|
50
|
+
【Huawei】
|
|
51
|
+
|
|
52
|
+
【HONOR】
|
|
53
|
+
3. Edit `uni_modules/TencentCloud-Push/utssdk/app-android/config.json` in `dependencies`, add `"com.tencent.timpush:honor:8.3.6498"`.
|
|
54
|
+
|
|
55
|
+
``` bash
|
|
56
|
+
{
|
|
57
|
+
...
|
|
58
|
+
"dependencies": [
|
|
59
|
+
...
|
|
60
|
+
"com.tencent.timpush:honor:8.3.6498"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
4. Configure the `mcs-services.json` file to the `nativeResources/android` directory (for details on obtaining this file, see Vendor Configuration > uniapp > Honor > Step 3.2: Enter Application Details, Bind Application Package Name, Download mcs-services.json File).
|
|
65
|
+
|
|
66
|
+
5. Configure `appID` to `nativeResources/android/manifestPlaceholders.json` in `"HONOR_APPID"`.
|
|
67
|
+
|
|
68
|
+
``` bash
|
|
69
|
+
{
|
|
70
|
+
"HONOR_APPID": ""
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
【vivo】
|
|
75
|
+
6. Edit `uni_modules/TencentCloud-Push/utssdk/app-android/config.json` in `dependencies`, add `"com.tencent.timpush:vivo:8.3.6498"`.
|
|
76
|
+
|
|
77
|
+
``` bash
|
|
78
|
+
{
|
|
79
|
+
...
|
|
80
|
+
"dependencies": [
|
|
81
|
+
...
|
|
82
|
+
"com.tencent.timpush:vivo:8.3.6498"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
7. Configure `appID` and `appKey` to `nativeResources/android/manifestPlaceholders.json` in `VIVO_APPKEY` and `VIVO_APPID`.
|
|
87
|
+
|
|
88
|
+
``` bash
|
|
89
|
+
{
|
|
90
|
+
"VIVO_APPKEY": "",
|
|
91
|
+
"VIVO_APPID": "",
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
【iOS】
|
|
96
|
+
1. Create the directory `nativeResources/ios/Resources`.
|
|
97
|
+
|
|
98
|
+
2. Create a `timpush-configs.json` file in `nativeResources/ios/Resources`.
|
|
99
|
+
|
|
100
|
+
3. Add the certificate ID obtained from [Chat Console > Push Service > Access Settings](https://console.trtc.io/chat/push-plugin-push-identifier) to the `timpush-configs.json` file. As shown below:
|
|
101
|
+
|
|
102
|
+
``` json
|
|
103
|
+
{
|
|
104
|
+
"businessID":"xxx"
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Step 3. Introduce and register Tencent Cloud Push Service (Push)
|
|
109
|
+
|
|
110
|
+
Replace `SDKAppID` and `appKey` with the application information obtained from [Chat Console - Push Service - Access Settings page](https://console.trtc.io/chat/push-plugin-push-identifier). As shown in the figure:
|
|
111
|
+
|
|
112
|
+
``` javascript
|
|
113
|
+
// Integration of TencentCloud-Push
|
|
114
|
+
import * as Push from '@/uni_modules/TencentCloud-Push';
|
|
115
|
+
const SDKAppID = 0; // Your SDKAppID
|
|
116
|
+
const appKey = ''; // Client Key
|
|
117
|
+
|
|
118
|
+
// If you need to connect with the Chat login userID (i.e., push messages to this userID), please use the setRegistrationID API
|
|
119
|
+
// Push.setRegistrationID(userID, () => {
|
|
120
|
+
// console.log('setRegistrationID ok', userID);
|
|
121
|
+
// });
|
|
122
|
+
|
|
123
|
+
Push.registerPush(SDKAppID, appKey, (data) => {
|
|
124
|
+
console.log('registerPush ok', data);
|
|
125
|
+
Push.getRegistrationID((registrationID) => {
|
|
126
|
+
console.log('getRegistrationID ok', registrationID);
|
|
127
|
+
});
|
|
128
|
+
}, (errCode, errMsg) => {
|
|
129
|
+
console.error('registerPush failed', errCode, errMsg);
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
// Listen for notification bar click events to get push extension information
|
|
134
|
+
Push.addPushListener(Push.EVENT.NOTIFICATION_CLICKED, (res) => {
|
|
135
|
+
// res is the push extension information
|
|
136
|
+
console.log('notification clicked', res);
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
// Listen for online push
|
|
140
|
+
Push.addPushListener(Push.EVENT.MESSAGE_RECEIVED, (res) => {
|
|
141
|
+
// res is the message content
|
|
142
|
+
console.log('message received', res);
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
// Listen for online push recall
|
|
146
|
+
Push.addPushListener(Push.EVENT.MESSAGE_REVOKED, (res) => {
|
|
147
|
+
// res is the ID of the recalled message
|
|
148
|
+
console.log('message revoked', res);
|
|
149
|
+
});
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Step 4. Use cloud certificates to generate custom base
|
|
153
|
+
|
|
154
|
+
Click **Run** > **Run to mobile device or emulator** > **Create custom debugging base** in HBuilderX to use cloud certificates to create Android or iOS custom debugging base.
|
|
155
|
+
|
|
156
|
+
### Step 5. Experience your first push
|
|
157
|
+
|
|
158
|
+
Before testing the push, please make sure to turn on notifications and the status bar. Go to [Push Service Push > Access Test](https://console.trtc.io/chat/push-plugin-push-check) to send your first push.
|
|
159
|
+
|
|
160
|
+
## Push Result Callback
|
|
161
|
+
|
|
162
|
+
After enabling the push service, the push results can be forwarded to the App backend by configuring basic callbacks. For details, see:
|
|
163
|
+
- [Normal push result callback](https://www.tencentcloud.com/document/product/1047/67553)
|
|
164
|
+
|
|
165
|
+
- [All-member push result callback](https://www.tencentcloud.com/document/product/1047/60561)
|
|
166
|
+
|
|
167
|
+
## Device Notification Bar Settings
|
|
168
|
+
|
|
169
|
+
The intuitive representation of push is the notification bar reminder, so it is affected by the device notification settings just like other notifications. Taking Huawei as an example:
|
|
170
|
+
- "Settings > Notifications > Lock screen notifications > Hide or not show notifications", will affect the display of push notifications when the screen is locked.
|
|
171
|
+
|
|
172
|
+
- "Settings > Notifications > More notification settings > Show notification icons in the status bar", will affect the display of push notification icons in the status bar.
|
|
173
|
+
|
|
174
|
+
- "Settings > Notifications > App notification management > Allow notifications", turning it on or off will directly affect the display of push notifications.
|
|
175
|
+
|
|
176
|
+
- "Settings > Notifications > App notification management > Notification sounds" and "Settings > Notifications > App notification management > Silent notifications", will affect the sound effects of push notifications.
|
|
177
|
+
|
|
178
|
+
## Vendor's push restrictions
|
|
179
|
+
1. All vendors in China have adopted message classification mechanisms, and different push policies are assigned for different types of messages. To make the push timely and reliable, you need to set the push message type of your app as the system message or important message with a high priority based on the vendor's rules. Otherwise, push messages are affected by the vendor's message classification and may vary from your expectations.
|
|
180
|
+
|
|
181
|
+
2. In addition, some vendors set limits on the daily volumes of app push messages. You can check such limits in the vendor's console. If push messages are not pushed timely or cannot be received occasionally, consider the following:
|
|
182
|
+
|
|
183
|
+
【Huawei】
|
|
184
|
+
|
|
185
|
+
Push messages are classified into service and communication messages and information marketing messages with different push effects and policies. In addition, the message classification is also related to the self-help message classification permission:
|
|
186
|
+
- If there is no self-help message classification permission, the vendor will perform secondary intelligent message classification on push messages.
|
|
187
|
+
|
|
188
|
+
- If you have applied for the self-help message classification permission, push messages will be classified based on the custom classification and then pushed. For more information, see [Vendor Description](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/message-classification-0000001149358835).
|
|
189
|
+
|
|
190
|
+
【vivo】
|
|
191
|
+
|
|
192
|
+
Push messages are classified into system messages and operational messages with different push effects and policies. The system messages are further subject to the vendor's intelligent classification for correction. A message that cannot be intelligently identified as a system message will be automatically corrected as an operational message. If the judgment is incorrect, you can provide feedback by email. In addition, the total number of push messages is subject to a daily limit determined based on the app subscription statistics by the vendor. For more information, see [Vendor Description 1](https://dev.vivo.com.cn/documentCenter/doc/359) or [Vendor Description 2](https://dev.vivo.com.cn/documentCenter/doc/156).
|
|
193
|
+
|
|
194
|
+
【OPPO】
|
|
195
|
+
|
|
196
|
+
Push messages are categorized into private messages and public messages, each having different effects and strategies. Private messages target users with a certain level of attention who wish to receive information promptly, and access to the private messaging channel requires an application via email. The public messaging channel has a limited push volume. For more details, see [Vendor Description 1](https://open.oppomobile.com/wiki/doc#id=11227) or [Vendor Description 2](https://open.oppomobile.com/wiki/doc#id=11210).
|
|
197
|
+
|
|
198
|
+
【Mi】
|
|
199
|
+
|
|
200
|
+
Push messages are divided into urgent messages and regular messages, with different effects and strategies. The urgent message category is limited to instant communication messages, personal attention updates, personal reminders, changes in personal order status, personal financial alerts, personal status updates, personal resource changes, and personal device alerts, which can be requested on the vendor dashboard. The regular message category has a limited push volume. For more details, see [Vendor Description 1](https://dev.mi.com/console/doc/detail) or [Vendor Description 2](https://dev.mi.com/console/doc/detail).
|
|
201
|
+
|
|
202
|
+
【Meizu】
|
|
203
|
+
|
|
204
|
+
There is a limit to the number of messages that can be pushed. For more details, see [Vendor Description](http://open.res.flyme.cn/fileserver/upload/file/202201/85079f02ac0841da859c1da0ef351970.pdf).
|
|
205
|
+
|
|
206
|
+
【FCM】
|
|
207
|
+
|
|
208
|
+
There is a frequency limit for pushing upstream messages. For more details, see [Vendor Description](https://firebase.google.com/docs/cloud-messaging/scale-fcm#handling-retries).
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
## Operation Steps
|
|
2
|
+
|
|
3
|
+
### Step 1: Integrating the Message Push Plugin
|
|
4
|
+
|
|
5
|
+
Adjust the `Packages/manifest.json` file and add relevant dependencies:
|
|
6
|
+
``` json
|
|
7
|
+
{
|
|
8
|
+
"dependencies": {
|
|
9
|
+
...
|
|
10
|
+
"com.tencent.timpush.unity": "https://github.com/TencentCloud/TIMSDK.git#push_unity"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Step 2: Push Parameter Configuration
|
|
16
|
+
|
|
17
|
+
【iOS】
|
|
18
|
+
|
|
19
|
+
Upload the iOS APNs Push Certificate obtained from the manufacturer configuration process to the Chat console.
|
|
20
|
+
|
|
21
|
+
The Chat console will allocate a certificate ID for you, as shown below:
|
|
22
|
+
|
|
23
|
+
You need to create file `UnityIMPush.mm` under the directory `Assets/Plugins/iOS` (if the directory does not exist, create it manually), and implement the `- businessID` protocol method in the file to return the certificate ID. See the implementation as follows:
|
|
24
|
+
``` objectivec
|
|
25
|
+
#import "TPush/TPush.h"
|
|
26
|
+
#import "UnityAppController.h"
|
|
27
|
+
|
|
28
|
+
@interface UnityAppController (ThirdPartyExtension) <TIMPushDelegate>
|
|
29
|
+
- (int)businessID;
|
|
30
|
+
|
|
31
|
+
- (NSString *)applicationGroupID;
|
|
32
|
+
@end
|
|
33
|
+
|
|
34
|
+
@implementation UnityAppController (ThirdPartyExtension)
|
|
35
|
+
|
|
36
|
+
#pragma mark - TIMPush
|
|
37
|
+
- (int)businessID {
|
|
38
|
+
//Certificate ID from the previous step console, such as 1234567
|
|
39
|
+
int kBusinessID = 1234567;
|
|
40
|
+
return kBusinessID;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
- (NSString *)applicationGroupID {
|
|
44
|
+
//AppGroup ID
|
|
45
|
+
return kTIMPushAppGroupKey;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
- (BOOL)onRemoteNotificationReceived:(NSString *)notice {
|
|
49
|
+
// custom navigate
|
|
50
|
+
return NO;
|
|
51
|
+
}
|
|
52
|
+
@end
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
【Android】
|
|
56
|
+
|
|
57
|
+
After completing the console manufacturer push information, download and add the configuration file to the project. Add the downloaded `timpush-configs.json` file to the `Assets/Plugins/Android` directory of the project. If the directory does not exist, create it manually.
|
|
58
|
+
|
|
59
|
+
### Step 3: Client Vendor Configuration
|
|
60
|
+
|
|
61
|
+
【iOS】
|
|
62
|
+
|
|
63
|
+
No need to perform this step on iOS.
|
|
64
|
+
|
|
65
|
+
【Android】
|
|
66
|
+
|
|
67
|
+
`File` > `Build Settings` > `Player Settings`, then go to `Publishing Settings` > `Build` in the Android platform settings and check the following three configurations:
|
|
68
|
+
|
|
69
|
+
Find the `Assets/Plugins/Android/launcherTemplate.gradle` file, add the `dependencies` configuration at the end of the file, and as needed, introduce all or part of the manufacturer's push packages. Only by introducing the corresponding manufacturer's push package can you enable its native push capability.
|
|
70
|
+
``` java
|
|
71
|
+
dependencies {
|
|
72
|
+
// Version number "VERSION" please visit to get configuration.
|
|
73
|
+
// Integration of the push main package is mandatory
|
|
74
|
+
implementation 'com.tencent.timpush:tpush:VERSION'
|
|
75
|
+
// other need packages
|
|
76
|
+
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
77
|
+
implementation 'com.google.code.gson:gson:2.10.1'
|
|
78
|
+
// Integrate FCM push package
|
|
79
|
+
implementation 'com.tencent.timpush:fcm:VERSION'
|
|
80
|
+
// If only the FCM channel is needed, the following packages do not need to be integrated; if you want to prioritize the FCM channel, call the API forceUseFCMPushChannel
|
|
81
|
+
implementation 'com.tencent.timpush:huawei:VERSION'
|
|
82
|
+
implementation 'com.tencent.timpush:xiaomi:VERSION'
|
|
83
|
+
implementation 'com.tencent.timpush:oppo:VERSION'
|
|
84
|
+
implementation 'com.tencent.timpush:vivo:VERSION'
|
|
85
|
+
implementation 'com.tencent.timpush:honor:VERSION'
|
|
86
|
+
implementation 'com.tencent.timpush:meizu:VERSION'
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
- **Vivo and Honor adaptation**
|
|
90
|
+
|
|
91
|
+
- According to the vivo and Honor vendor access guide, `APPID` and `APPKEY` need to be added to the manifest file, which can be done by modifying the `Assets/Plugins/Android/launcherTemplate.gradle` file.
|
|
92
|
+
|
|
93
|
+
``` java
|
|
94
|
+
// Assets/Plugins/Android/launcherTemplate.gradle
|
|
95
|
+
|
|
96
|
+
android {
|
|
97
|
+
...
|
|
98
|
+
defaultConfig {
|
|
99
|
+
...
|
|
100
|
+
manifestPlaceholders = [
|
|
101
|
+
"VIVO_APPKEY" : "The cert APPKEY assigned to your app",
|
|
102
|
+
"VIVO_APPID" : "The cert APPID assigned to your app",
|
|
103
|
+
"HONOR_APPID" : "The cert APPID assigned to your app"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
- **Huawei, Honor, and Google FCM adaptation**
|
|
109
|
+
|
|
110
|
+
Integrate the plugin and json configuration file by vendor method.
|
|
111
|
+
|
|
112
|
+
> **Note:**
|
|
113
|
+
>
|
|
114
|
+
|
|
115
|
+
> The following Honor adaptation requires configuration for version 7.7.5283 and above.
|
|
116
|
+
>
|
|
117
|
+
|
|
118
|
+
1. Download the configuration file and add it to the project root directory `Assets/Plugins/Android/JsonConfigs`. `Create the directory manually if it does not exist`.
|
|
119
|
+
|
|
120
|
+
【Huawei】
|
|
121
|
+
|
|
122
|
+
【Honor】
|
|
123
|
+
|
|
124
|
+
【Google FCM】
|
|
125
|
+
|
|
126
|
+
【Operation Path】
|
|
127
|
+
|
|
128
|
+
2. In the `Assets/Plugins/Android/baseProjectTemplate.gradle` file, add the following configurations under `buildscript` -> `dependencies` (if it is necessary to add a new `buildscript`, place it at the top of the file):
|
|
129
|
+
|
|
130
|
+
【Gradle 7.1 and above Versions】
|
|
131
|
+
|
|
132
|
+
In the `Assets/Plugins/Android/baseProjectTemplate.gradle` file, add the following configurations under `buildscript` -> `dependencies`:
|
|
133
|
+
``` java
|
|
134
|
+
buildscript {
|
|
135
|
+
dependencies {
|
|
136
|
+
...
|
|
137
|
+
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
|
|
138
|
+
classpath 'com.hihonor.mcs:asplugin:2.0.1.300'
|
|
139
|
+
classpath 'com.google.gms:google-services:4.3.15'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
In the `Assets/Plugins/Android/settingsTemplate.gradle` file, add the following repository configurations under buildscript -> repositories and allprojects -> repositories:
|
|
145
|
+
``` java
|
|
146
|
+
pluginManagement {
|
|
147
|
+
repositories {
|
|
148
|
+
gradlePluginPortal()
|
|
149
|
+
mavenCentral()
|
|
150
|
+
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
|
|
151
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
152
|
+
maven {url 'https://developer.huawei.com/repo/'}
|
|
153
|
+
maven {url 'https://developer.hihonor.com/repo'}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
dependencyResolutionManagement {
|
|
157
|
+
...
|
|
158
|
+
repositories {
|
|
159
|
+
mavenCentral()
|
|
160
|
+
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
|
|
161
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
162
|
+
maven {url 'https://developer.huawei.com/repo/'}
|
|
163
|
+
maven {url 'https://developer.hihonor.com/repo'}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
【Gradle 7.0 Version】
|
|
170
|
+
|
|
171
|
+
In the `Assets/Plugins/Android/baseProjectTemplate.gradle` file, add the following configurations under `buildscript`:
|
|
172
|
+
``` java
|
|
173
|
+
buildscript {
|
|
174
|
+
repositories {
|
|
175
|
+
mavenCentral()
|
|
176
|
+
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
|
|
177
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
178
|
+
maven {url 'https://developer.huawei.com/repo/'}
|
|
179
|
+
maven {url 'https://developer.hihonor.com/repo'}
|
|
180
|
+
}
|
|
181
|
+
dependencies {
|
|
182
|
+
...
|
|
183
|
+
classpath 'com.google.gms:google-services:4.2.0'
|
|
184
|
+
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
|
|
185
|
+
classpath 'com.hihonor.mcs:asplugin:2.0.1.300'
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
In the `Assets/Plugins/Android/settingsTemplate.gradle` file, add the following repository configurations under `allprojects` -> `repositories`:
|
|
191
|
+
``` plaintext
|
|
192
|
+
allprojects {
|
|
193
|
+
...
|
|
194
|
+
repositories {
|
|
195
|
+
mavenCentral()
|
|
196
|
+
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
|
|
197
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
198
|
+
maven {url 'https://developer.huawei.com/repo/'}
|
|
199
|
+
maven {url 'https://developer.hihonor.com/repo'}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
【Gradle 7.0 and below Versions】
|
|
205
|
+
|
|
206
|
+
In the project level build.gradle file, add the following configurations under `buildscript` and `allprojects`:
|
|
207
|
+
``` java
|
|
208
|
+
buildscript {
|
|
209
|
+
repositories {
|
|
210
|
+
mavenCentral()
|
|
211
|
+
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
|
|
212
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
213
|
+
maven {url 'https://developer.huawei.com/repo/'}
|
|
214
|
+
maven {url 'https://developer.hihonor.com/repo'}
|
|
215
|
+
}
|
|
216
|
+
dependencies {
|
|
217
|
+
...
|
|
218
|
+
classpath 'com.google.gms:google-services:4.2.0'
|
|
219
|
+
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
|
|
220
|
+
classpath 'com.hihonor.mcs:asplugin:2.0.1.300'
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
allprojects {
|
|
225
|
+
repositories {
|
|
226
|
+
mavenCentral()
|
|
227
|
+
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
|
|
228
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
229
|
+
maven {url 'https://developer.huawei.com/repo/'}
|
|
230
|
+
maven {url 'https://developer.hihonor.com/repo'}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
3. In the `Assets/Plugins/Android/launcherTemplate.gradle` file, add the following configurations:
|
|
236
|
+
|
|
237
|
+
``` java
|
|
238
|
+
apply plugin: 'com.google.gms.google-services'
|
|
239
|
+
apply plugin: 'com.huawei.agconnect'
|
|
240
|
+
apply plugin: 'com.hihonor.mcs.asplugin'
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Step 5: Handling Message Click Callback and Parsing Parameters
|
|
244
|
+
|
|
245
|
+
If you need to customize the parsing of received remote push, you can implement it by the following method.
|
|
246
|
+
|
|
247
|
+
> **Note:**
|
|
248
|
+
>
|
|
249
|
+
> 1. Register the callback timing in the program entry function.
|
|
250
|
+
> 2. Configure the console to click subsequent actions with the following configuration, select **open specified in-app page,** do not modify and use default values.
|
|
251
|
+
|
|
252
|
+
``` csharp
|
|
253
|
+
PushListener listener = new PushListener(onRecvPushMessage: (message) => {
|
|
254
|
+
Debug.Log($"Received push message: Title:{message.title}, Content:{message.desc}, Passthrough content:{message.ext}, Message ID:{message.messageID}");
|
|
255
|
+
}, onRevokePushMessage: (messageID) => {
|
|
256
|
+
Debug.Log($"Revoke push message ID: {messageID}");
|
|
257
|
+
}, onNotificationClicked: (ext) => {
|
|
258
|
+
Debug.Log($"Click to push message: {ext}");
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
PushManager.AddPushListener(listener);
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### Step 6: Registering the Push Plugin
|
|
265
|
+
|
|
266
|
+
Upon success of calling the `PushManager.RegisterPush` method, you can receive offline push notifications.
|
|
267
|
+
|
|
268
|
+
> **Note:**
|
|
269
|
+
>
|
|
270
|
+
|
|
271
|
+
> Note: If you have already integrated the Chat product and call this API after successful log-in, set the appKey parameter to null. Otherwise, the Chat account will be taken offline.
|
|
272
|
+
>
|
|
273
|
+
|
|
274
|
+
``` java
|
|
275
|
+
PushManager.RegisterPush(sdkAppId: your sdkAppId, appKey: "client key", new PushCallback(onSuccess: (data) => {
|
|
276
|
+
Debug.Log($"Push registration successful: {data}");
|
|
277
|
+
}, onError: (errCode, errMsg, data) => {
|
|
278
|
+
Debug.Log($"Push registration failed: error code:{errCode}, error info:{errMsg}");
|
|
279
|
+
}));
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Step 7: Message Push Delivery Statistics
|
|
283
|
+
|
|
284
|
+
If you need statistics for reach data, complete the configuration as follows:
|
|
285
|
+
|
|
286
|
+
【Huawei】
|
|
287
|
+
|
|
288
|
+
Receipt Address:
|
|
289
|
+
|
|
290
|
+
Singapore : https://apisgp.im.qcloud.com/v3/offline_push_report/huawei
|
|
291
|
+
|
|
292
|
+
Korea: https://apikr.im.qcloud.com/v3/offline_push_report/huawei
|
|
293
|
+
|
|
294
|
+
USA: https://apiusa.im.qcloud.com/v3/offline_push_report/huawei
|
|
295
|
+
|
|
296
|
+
Germany: https://apiger.im.qcloud.com/v3/offline_push_report/huawei
|
|
297
|
+
|
|
298
|
+
Indonesia: https://apiidn.im.qcloud.com/v3/offline_push_report/huawei
|
|
299
|
+
|
|
300
|
+
China: https://api.im.qcloud.com/v3/offline_push_report/huawei
|
|
301
|
+
|
|
302
|
+
> **Note:**
|
|
303
|
+
>
|
|
304
|
+
|
|
305
|
+
> Note: Huawei Push certificate ID <= 11344 uses Huawei Push v2 version interface with no support for reachability and Receipt Click. Please regenerate the certificate ID.
|
|
306
|
+
>
|
|
307
|
+
|
|
308
|
+
【Honor】
|
|
309
|
+
|
|
310
|
+
Receipt Address:
|
|
311
|
+
|
|
312
|
+
Singapore : https://apisgp.im.qcloud.com/v3/offline_push_report/honor
|
|
313
|
+
|
|
314
|
+
Korea: https://apikr.im.qcloud.com/v3/offline_push_report/honor
|
|
315
|
+
|
|
316
|
+
USA: https://apiusa.im.qcloud.com/v3/offline_push_report/honor
|
|
317
|
+
|
|
318
|
+
Germany: https://apiger.im.qcloud.com/v3/offline_push_report/honor
|
|
319
|
+
|
|
320
|
+
Indonesia: https://apiidn.im.qcloud.com/v3/offline_push_report/honor
|
|
321
|
+
|
|
322
|
+
China: https://api.im.qcloud.com/v3/offline_push_report/honor
|
|
323
|
+
|
|
324
|
+
【vivo】
|
|
325
|
+
| Callback Address Configuration | Receipt ID Configuration Chat Console |
|
|
326
|
+
| --- | --- |
|
|
327
|
+
| Receipt Address:<br>Singapore :https://apisgp.im.qcloud.com/v3/offline_push_report/vivo<br>Korea:<br>https://apikr.im.qcloud.com/v3/offline_push_report/vivo<br>USA: https://apiusa.im.qcloud.com/v3/offline_push_report/vivo<br>Germany: https://apiger.im.qcloud.com/v3/offline_push_report/vivo<br>Indonesia: https://apiidn.im.qcloud.com/v3/offline_push_report/vivo<br>China:<br>https://api.im.qcloud.com/v3/offline_push_report/vivo | |
|
|
328
|
+
|
|
329
|
+
【Meizu】
|
|
330
|
+
| Enable Receipt Switch | Configure Receipt Address |
|
|
331
|
+
| --- | --- |
|
|
332
|
+
| | |
|
|
333
|
+
|
|
334
|
+
Receipt Address:
|
|
335
|
+
|
|
336
|
+
Singapore : https://apisgp.im.qcloud.com/v3/offline_push_report/meizu
|
|
337
|
+
|
|
338
|
+
Korea: https://apikr.im.qcloud.com/v3/offline_push_report/meizu
|
|
339
|
+
|
|
340
|
+
USA: https://apiusa.im.qcloud.com/v3/offline_push_report/meizu
|
|
341
|
+
|
|
342
|
+
Germany: https://apiger.im.qcloud.com/v3/offline_push_report/meizu
|
|
343
|
+
|
|
344
|
+
Indonesia: https://apiidn.im.qcloud.com/v3/offline_push_report/meizu
|
|
345
|
+
|
|
346
|
+
China: https://api.im.qcloud.com/v3/offline_push_report/meizu
|
|
347
|
+
|
|
348
|
+
> **Note:**
|
|
349
|
+
>
|
|
350
|
+
|
|
351
|
+
> Note: After enabling the receipt switch, please ensure the receipt address is configured correctly. Without configuring or with an incorrect address, it will impact the push notification feature.
|
|
352
|
+
>
|
|
353
|
+
|
|
354
|
+
【iOS】
|
|
355
|
+
|
|
356
|
+
iOS Push Notification Reach Statistics Configuration, see:
|
|
357
|
+
- If you need to track push notification reach and click data, you need to implement the `- applicationGroupID` method in the AppDelegate.m file. For reference, see the Push Parameter Configuration section, which returns the App Group ID (for generation method, see Manufacturer Configuration - Generate App GroupID).
|
|
358
|
+
|
|
359
|
+
- Call the push arrival rate statistics function in the [Notification Service Extension](https://github.com/TencentCloud/TIMSDK/blob/master/iOS/Demo/pushservice/NotificationService.m)'s `-didReceiveNotificationRequest:withContentHandler:` method.
|
|
360
|
+
|
|
361
|
+
``` java
|
|
362
|
+
@implementation NotificationService
|
|
363
|
+
|
|
364
|
+
- (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
|
|
365
|
+
//appGroup indicates the App Group shared between the main APP and Extension. The App Groups capability needs to be configured in the main APP's Capability.
|
|
366
|
+
//format is group + [main bundleID] + key
|
|
367
|
+
//for example group.com.tencent.im.pushkey
|
|
368
|
+
NSString * appGroupID = kTIMPushAppGroupKey;
|
|
369
|
+
__weak typeof(self) weakSelf = self;
|
|
370
|
+
[TIMPushManager handleNotificationServiceRequest:request appGroupID:appGroupID callback:^(UNNotificationContent *content) {
|
|
371
|
+
weakSelf.bestAttemptContent = [content mutableCopy];
|
|
372
|
+
// Modify the notification content here...
|
|
373
|
+
// self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title];
|
|
374
|
+
weakSelf.contentHandler(weakSelf.bestAttemptContent);
|
|
375
|
+
}];
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@end
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
> **Note:**
|
|
382
|
+
>
|
|
383
|
+
> 1. Report push reach data. The mutable-content switch requires enabling to support the iOS 10 Extension function.
|
|
384
|
+
|
|
385
|
+
> 2. Data details can be viewed on the push data page. The push data page is only available after [purchasing the push plugin](https://console.cloud.tencent.com/im/plugin/TIMPush).
|
|
386
|
+
|
|
387
|
+
The rest support manufacturers with no need to configure. FCM does not currently support the push notification statistics feature.
|
|
388
|
+
|
|
389
|
+
Congratulations on completing the access of the push plugin. Please note: **After the trial or purchase expiry of the push plugin, it will automatically stop providing push service (including regular message offline push, all users/tag push, etc.)**. To avoid affecting your normal business operation, please advise in advance to [purchase](https://www.tencentcloud.com/account/login)/[renew](https://www.tencentcloud.com/account/login).
|