@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,246 @@
|
|
|
1
|
+
> **Note:**
|
|
2
|
+
>
|
|
3
|
+
|
|
4
|
+
> If you need to use products like Chat, CallKit, RoomKit, LiveKit simultaneously, please refer to [Chat Quick Integration Solution](https://www.tencentcloud.com/document/product/1047/50033).
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
### Step 1: Integrate TIMPush
|
|
8
|
+
1. The TIMPush component supports CocoaPods integration. You need to add the component dependencies in the Podfile.
|
|
9
|
+
|
|
10
|
+
``` objectivec
|
|
11
|
+
target 'YourAppName' do
|
|
12
|
+
# Uncommment the next line if you're using Swift or would like to use dynamic frameworks
|
|
13
|
+
use_frameworks!
|
|
14
|
+
use_modular_headers!
|
|
15
|
+
|
|
16
|
+
# Pods for Example
|
|
17
|
+
pod 'TXIMSDK_Plus_iOS_XCFramework'
|
|
18
|
+
# The version number "VERSION" can be obtained from the .
|
|
19
|
+
pod 'TIMPush', 'VERSION'
|
|
20
|
+
end
|
|
21
|
+
```
|
|
22
|
+
2. Run the following command to install the TIMPush component.
|
|
23
|
+
|
|
24
|
+
``` bash
|
|
25
|
+
pod install
|
|
26
|
+
# If you cannot install the latest version of TUIKit, run the following command to update your local CocoaPods repository list.
|
|
27
|
+
pod repo update
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Step 2: Set push parameters
|
|
31
|
+
1. After you upload a certificate to the Chat console, the Chat console will assign a certificate ID to you, as shown below.
|
|
32
|
+
|
|
33
|
+
2. You need to implement the `- businessID` protocol method in AppDelegate to return the certificate ID.
|
|
34
|
+
|
|
35
|
+
【Objective-C】
|
|
36
|
+
``` objectivec
|
|
37
|
+
#pragma mark - TIMPush
|
|
38
|
+
- (int)businessID {
|
|
39
|
+
// businessID provided by the back console
|
|
40
|
+
int kBusinessID = 0;
|
|
41
|
+
return kBusinessID;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
- (NSString *)applicationGroupID {
|
|
45
|
+
//AppGroup ID
|
|
46
|
+
return kTIMPushAppGroupKey;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
- (BOOL)onRemoteNotificationReceived:(NSString *)notice {
|
|
50
|
+
// custom navigate
|
|
51
|
+
return NO;
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
【Swift】
|
|
56
|
+
``` swift
|
|
57
|
+
#pragma mark - TIMPush
|
|
58
|
+
//Swift must carry the @objc keyword
|
|
59
|
+
@objc func businessID() -> Int32 {
|
|
60
|
+
// Certificate ID provided by the back console
|
|
61
|
+
return 0
|
|
62
|
+
}
|
|
63
|
+
@objc func applicationGroupID() -> String {
|
|
64
|
+
//AppGroup ID
|
|
65
|
+
return "group.com.yourcompony.pushkey"
|
|
66
|
+
}
|
|
67
|
+
@objc func onRemoteNotificationReceived(_ notice: String?) -> Bool {
|
|
68
|
+
// custom navigate
|
|
69
|
+
return false
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Step 3: Register for Push
|
|
74
|
+
|
|
75
|
+
After the push registration is successful through the API call, offline push notifications can be received.
|
|
76
|
+
|
|
77
|
+
【Objective-C】
|
|
78
|
+
``` objectivec
|
|
79
|
+
const int sdkAppId = your sdkAppId;
|
|
80
|
+
static const NSString *appKey = @"Client Key";
|
|
81
|
+
|
|
82
|
+
[TIMPushManager registerPush:sdkAppId appKey:appKey succ:^(NSData * _Nonnull deviceToken) {
|
|
83
|
+
|
|
84
|
+
} fail:^(int code, NSString * _Nonnull desc) {
|
|
85
|
+
|
|
86
|
+
}];
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
【Swift】
|
|
90
|
+
``` swift
|
|
91
|
+
let sdkAppId: Int = 0
|
|
92
|
+
let appKey: String = "Client Key"
|
|
93
|
+
|
|
94
|
+
TIMPushManager.registerPush(Int32(sdkAppId), appKey: appKey, succ: { deviceToken in
|
|
95
|
+
// success
|
|
96
|
+
}, fail: { code, desc in
|
|
97
|
+
// failed
|
|
98
|
+
})
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
> **Note:**
|
|
102
|
+
>
|
|
103
|
+
> 1. After you log in, when you see the APNs configuration success log printed on the console, it indicates that the integration is successful.
|
|
104
|
+
> 2. If your app has obtained push permissions, you can receive remote push notifications when the app is moved to the background or the process is killed.
|
|
105
|
+
|
|
106
|
+
### Step 4: Push Delivery Rate Statistics
|
|
107
|
+
1. If you need to collect data on push delivery and click rates, you need to implement the `- applicationGroupID` method in the `AppDelegate.m` file and get the App Group ID ([the generation method can be referred to in Vendor Configuration - Generating App Group ID](https://www.tencentcloud.com/document/product/1047/60548#ae5590eb-b974-4226-9f1b-720fb0201c85)).
|
|
108
|
+
|
|
109
|
+
2. Call the push delivery rate statistics function in the Notification Service Extension's `-didReceiveNotificationRequest:withContentHandler:` method.
|
|
110
|
+
|
|
111
|
+
【Objective-C】
|
|
112
|
+
``` objectivec
|
|
113
|
+
@implementation NotificationService
|
|
114
|
+
- (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
|
|
115
|
+
//appGroup identifies the app group shared between the main app and extension. It needs to be configured in the App Groups capability of the main app.
|
|
116
|
+
//Format: group + [mainBundleID] + key
|
|
117
|
+
//E.g., group.com.tencent.im.pushkey
|
|
118
|
+
NSString * appGroupID = kTIMPushAppGroupKey;
|
|
119
|
+
__weak typeof(self) weakSelf = self;
|
|
120
|
+
[TIMPushManager handleNotificationServiceRequest:request appGroupID:appGroupID callback:^(UNNotificationContent *content) {
|
|
121
|
+
weakSelf.bestAttemptContent = [content mutableCopy];
|
|
122
|
+
// Modify the notification content here...
|
|
123
|
+
// self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title];
|
|
124
|
+
weakSelf.contentHandler(weakSelf.bestAttemptContent);
|
|
125
|
+
}];
|
|
126
|
+
}
|
|
127
|
+
@end
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
【Swift】
|
|
131
|
+
``` swift
|
|
132
|
+
override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
|
|
133
|
+
self.contentHandler = contentHandler
|
|
134
|
+
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
|
|
135
|
+
//appGroup identifies the app group shared between the main app and extension. It needs to be configured in the App Groups capability of the main app.
|
|
136
|
+
//Format: group + [mainBundleID] + key
|
|
137
|
+
//E.g., group.com.tencent.im.pushkey
|
|
138
|
+
TIMPushManager.handleNotificationServiceRequest(request: request, appGroupID: "appGroupID") {
|
|
139
|
+
[weak self] content in
|
|
140
|
+
if let bestAttemptContent = self?.bestAttemptContent {
|
|
141
|
+
// Modify the notification content here...
|
|
142
|
+
bestAttemptContent.title = "\(bestAttemptContent.title) [modified]"
|
|
143
|
+
contentHandler(bestAttemptContent)
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
> **Note:**
|
|
150
|
+
>
|
|
151
|
+
> 3. To report push delivery data, enable the mutable-content switch to support iOS 10's extension feature.
|
|
152
|
+
|
|
153
|
+
> 4. Data details can be viewed on the Push Data Page. The Push Data Page can only be used after [purchasing the Push Plugin](https://buy.cloud.tencent.com/avc).
|
|
154
|
+
|
|
155
|
+
### Step 5: **Verify Connection**
|
|
156
|
+
|
|
157
|
+
Run the App, filter logs using the keyword "TIMPush", and check the related logs:
|
|
158
|
+
|
|
159
|
+
If logs similar to the image above appear, it indicates that Push has been successfully integrated, and you can proceed to the next step.
|
|
160
|
+
|
|
161
|
+
### Step 6: Send push notifications
|
|
162
|
+
|
|
163
|
+
Detailed usage instructions can be found at: [RESTful APIs - Initiate All-staff/Tag Push](https://www.tencentcloud.com/document/product/1047/60561).
|
|
164
|
+
|
|
165
|
+
### Step 7: Click Custom Redirect after offline push
|
|
166
|
+
|
|
167
|
+
If you need to customize the parsing of received remote push notifications, you can implement it as follows:
|
|
168
|
+
|
|
169
|
+
【Custom click redirect implementation】
|
|
170
|
+
|
|
171
|
+
> **Note:**
|
|
172
|
+
>
|
|
173
|
+
|
|
174
|
+
> It is recommended to place the registration callback timing in the didFinishLaunchingWithOptions function of the AppDelegate.
|
|
175
|
+
>
|
|
176
|
+
|
|
177
|
+
【Objective-C】
|
|
178
|
+
``` objectivec
|
|
179
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
180
|
+
[TIMPushManager addPushListener:self];
|
|
181
|
+
return YES;
|
|
182
|
+
}
|
|
183
|
+
#pragma mark - TIMPushListener
|
|
184
|
+
- (void)onNotificationClicked:(NSString *)ext {
|
|
185
|
+
// Getting ext for Definition redirect
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
【Swift】
|
|
190
|
+
``` swift
|
|
191
|
+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
192
|
+
// Override point for customization after application launch.
|
|
193
|
+
TIMPushManager.addPushListener(listener: self)
|
|
194
|
+
return true
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@objc func onNotificationClicked(_ ext: String) {
|
|
198
|
+
//Clicked
|
|
199
|
+
}
|
|
200
|
+
@objc func onRecvPushMessage(_ message: TIMPushMessage) {
|
|
201
|
+
//onRecvPushMessage
|
|
202
|
+
}
|
|
203
|
+
@objc func onRevokePushMessage(_ messageID: String) {
|
|
204
|
+
//onRevokePushMessage
|
|
205
|
+
}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
【Custom click redirect implementation (old solution)】
|
|
209
|
+
|
|
210
|
+
You need to implement the `- onRemoteNotificationReceived` method in the AppDelegate.m file.
|
|
211
|
+
|
|
212
|
+
【Objective-C】
|
|
213
|
+
``` objectivec
|
|
214
|
+
#pragma mark - TIMPush
|
|
215
|
+
|
|
216
|
+
- (BOOL)onRemoteNotificationReceived:(NSString *)notice {
|
|
217
|
+
//- If YES is returned, TIMPush will not execute the built-in TUIKit offline push parsing logic, leaving it entirely to you to handle.
|
|
218
|
+
//NSString *ext = notice;
|
|
219
|
+
//OfflinePushExtInfo *info = [OfflinePushExtInfo createWithExtString:ext];
|
|
220
|
+
//return YES;
|
|
221
|
+
|
|
222
|
+
//- If NO is returned, TIMPush will continue to execute the built-in TUIKit offline push parsing logic and continue to callback - navigateToBuiltInChatViewController:groupID: method.
|
|
223
|
+
return NO;
|
|
224
|
+
}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
【Swift】
|
|
228
|
+
``` swift
|
|
229
|
+
@objc func onRemoteNotificationReceived(_ notice: String) -> Bool {
|
|
230
|
+
//- If YES is returned, TIMPush will not execute the built-in TUIKit offline push parsing logic, leaving it entirely to you to handle.
|
|
231
|
+
// let ext = notice
|
|
232
|
+
// let info = OfflinePushExtInfo.create(withExtString: ext)
|
|
233
|
+
// return true
|
|
234
|
+
|
|
235
|
+
//- If false is returned, TIMPush will continue to execute the built-in TUIKit offline push parsing logic and continue to callback - navigateToBuiltInChatViewController:groupID: method.
|
|
236
|
+
return false
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Regarding All-staff/Tag Push
|
|
241
|
+
|
|
242
|
+
All-staff/Tag Push supports sending specific content, and also allows for the delivery of personalized content to specific user groups based on Tag, attribute, such as Membership Activities, Regional Notifications, etc. It aids in User Acquisition, Conversion, Activation Promotion, and other operational work phases, while also supporting Push Delivery Reports, Self-service Push Troubleshooting Tool. For more details, please see [Effect Display](https://www.tencentcloud.com/document/product/1047/60541).
|
|
243
|
+
|
|
244
|
+
For more detailed content, it is recommended to refer to [All-staff/Tag Push](https://www.tencentcloud.com/document/product/1047/60561).
|
|
245
|
+
|
|
246
|
+
Congratulations on completing the integration of the Push Plugin. Please note: After the **trial or purchase expiry of the Push Plugin, push services (including regular message offline push, all-staff push, etc.) will be automatically stopped**. To avoid affecting the normal use of your business, please [purchase](https://buy.cloud.tencent.com/avc)/[renew](https://buy.cloud.tencent.com/avc) in advance.
|
|
@@ -0,0 +1,366 @@
|
|
|
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
|
+
### Step 1: Create a React Native project (skip this step if you already have one)
|
|
6
|
+
``` bash
|
|
7
|
+
npx @react-native-community/cli@latest init MyReactNativeApp --version 0.75.0
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
### Step 2: **Entering the MyReactNativeApp Directory**, Integrating @tencentcloud/react-native-push
|
|
11
|
+
|
|
12
|
+
【npm】
|
|
13
|
+
``` bash
|
|
14
|
+
npm install @tencentcloud/react-native-push --save
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
【yarn】
|
|
18
|
+
``` bash
|
|
19
|
+
yarn add @tencentcloud/react-native-push
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Step 3:**Register for Push Notifications**
|
|
23
|
+
|
|
24
|
+
Copy the following code to `App.tsx` and replace `SDKAppID` and `appKey` with your application's information.
|
|
25
|
+
|
|
26
|
+
> **Note:**
|
|
27
|
+
>
|
|
28
|
+
|
|
29
|
+
> After successfully registering the push service with `registerPush`, you can obtain the push ID, namely RegistrationID, through `getRegistrationID`. You can push messages to the specified RegistrationID.
|
|
30
|
+
>
|
|
31
|
+
|
|
32
|
+
``` javascript
|
|
33
|
+
import Push from '@tencentcloud/react-native-push';
|
|
34
|
+
|
|
35
|
+
const SDKAppID = 0; // Your SDKAppID
|
|
36
|
+
const appKey = ''; // Client Key
|
|
37
|
+
|
|
38
|
+
if (Push) {
|
|
39
|
+
// If you need to connect with the Chat login userID (i.e., push messages to this userID),
|
|
40
|
+
// please use the setRegistrationID API
|
|
41
|
+
// Push.setRegistrationID(userID, () => {
|
|
42
|
+
// console.log('setRegistrationID ok', userID);
|
|
43
|
+
// });
|
|
44
|
+
|
|
45
|
+
Push.registerPush(SDKAppID, appKey, (data) => {
|
|
46
|
+
console.log('registerPush ok', data);
|
|
47
|
+
Push.getRegistrationID((registrationID) => {
|
|
48
|
+
console.log('getRegistrationID ok', registrationID);
|
|
49
|
+
});
|
|
50
|
+
}, (errCode, errMsg) => {
|
|
51
|
+
console.error('registerPush failed', errCode, errMsg);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
// Listen for notification bar click events to get push extension information
|
|
56
|
+
Push.addPushListener(Push.EVENT.NOTIFICATION_CLICKED, (res) => {
|
|
57
|
+
// res is the push extension information
|
|
58
|
+
console.log('notification clicked', res);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// Listen for online push
|
|
62
|
+
Push.addPushListener(Push.EVENT.MESSAGE_RECEIVED, (res) => {
|
|
63
|
+
// res is the message content
|
|
64
|
+
console.log('message received', res);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// Listen for online push recall
|
|
68
|
+
Push.addPushListener(Push.EVENT.MESSAGE_REVOKED, (res) => {
|
|
69
|
+
// res is the ID of the recalled message
|
|
70
|
+
console.log('message revoked', res);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Step 4: Configuring Vendor Push
|
|
76
|
+
|
|
77
|
+
【Android】
|
|
78
|
+
1. After completing the vendor push information in the console, download the `timpush-configs.json` file from the console and add it to the `MyReactNativeApp/android/app/src/main/assets` directory of the project. If this directory does not exist, please create it manually. As shown in the figure:
|
|
79
|
+
|
|
80
|
+
2. Huawei, HONOR, vivo, FCM.
|
|
81
|
+
|
|
82
|
+
【FCM】
|
|
83
|
+
|
|
84
|
+
When you need to support FCM push, you must configure the `google-services.json` file in the `MyReactNativeApp/android/app` directory (**Please note! Not in the **`MyReactNativeApp/android/app/src/main/assets directory`). As shown in the picture:
|
|
85
|
+
|
|
86
|
+
【Huawei】
|
|
87
|
+
|
|
88
|
+
【HONOR】
|
|
89
|
+
3. To support HONOR Push, you need to configure `appID` in the `MyReactNativeApp/android/app/build.gradle` file. As shown in the figure:
|
|
90
|
+
|
|
91
|
+
``` bash
|
|
92
|
+
......
|
|
93
|
+
android {
|
|
94
|
+
......
|
|
95
|
+
defaultConfig {
|
|
96
|
+
......
|
|
97
|
+
manifestPlaceholders = [
|
|
98
|
+
"HONOR_APPID" : ""
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
|Obtain HONOR appID|Configure HONOR appID|
|
|
105
|
+
|---------|---------|
|
|
106
|
+
|||
|
|
107
|
+
|
|
108
|
+
4. Download the `mcs-services.json` file from the [Honor Developer Management Center](https://developer.honor.com/en/), and configure it in the `MyReactNativeApp/android/app` directory (**Please note! Not in the **`MyReactNativeApp/android/app/src/main/assets directory` directory).
|
|
109
|
+
|
|
110
|
+
【vivo】
|
|
111
|
+
|
|
112
|
+
To support vivo Push, you need to configure `appID` and `appKey` in the `MyReactNativeApp/android/app/build.gradle` file. As shown in the figure:
|
|
113
|
+
``` bash
|
|
114
|
+
......
|
|
115
|
+
android {
|
|
116
|
+
......
|
|
117
|
+
defaultConfig {
|
|
118
|
+
......
|
|
119
|
+
manifestPlaceholders = [
|
|
120
|
+
"VIVO_APPKEY" : "0",
|
|
121
|
+
"VIVO_APPID" : "0",
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
|Obtain vivo appID && appKey|Configure vivo appID && appKey|
|
|
128
|
+
|---------|---------|
|
|
129
|
+
|||
|
|
130
|
+
|
|
131
|
+
【iOS】
|
|
132
|
+
5. Please upload the iOS APNs Push Certificate obtained in the manufacturer configuration step to the Chat Console. The Chat Console will assign a Certificate ID to you, as shown in the figure:
|
|
133
|
+
|
|
134
|
+
6. In the `MyReactNativeApp/ios/MyReactNativeApp` directory, create a new `Resources` folder and a new `timpush-configs.json` file. Edit `timpush-configs.json` and enter the certificate ID obtained from the console, as shown below:
|
|
135
|
+
|
|
136
|
+
``` javascript
|
|
137
|
+
{
|
|
138
|
+
"businessID": "Your Certificate ID"
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
7. Open the MyReactNativeApp project in XCode, right-click the project > **Add Files to "MyReactNativeApp"**, and add the `timpush-configs.json` directory to the project. As shown in the figure:
|
|
143
|
+
|
|
144
|
+
### Step 5: **Configuring Native Modules and Dependencies**
|
|
145
|
+
|
|
146
|
+
【Android】
|
|
147
|
+
|
|
148
|
+
> **Note:**
|
|
149
|
+
>
|
|
150
|
+
|
|
151
|
+
> Please ensure the package name in `timpush-configs.json` matches the `applicationId` value in `MyReactNativeApp/android/app/build.gradle`. Inconsistency will result in offline push notifications being unavailable.
|
|
152
|
+
>
|
|
153
|
+
|
|
154
|
+
1. Open the `MyReactNativeApp/android` directory with Android Studio.
|
|
155
|
+
|
|
156
|
+
2. Modify the project entry file.
|
|
157
|
+
|
|
158
|
+
【The project entry file is: MainApplication.kt】
|
|
159
|
+
``` java
|
|
160
|
+
...
|
|
161
|
+
import com.tencent.qcloud.rntimpush.TencentCloudPushApplication
|
|
162
|
+
|
|
163
|
+
// Replace Application with TencentCloudPushApplication
|
|
164
|
+
class MainApplication : TencentCloudPushApplication(), ReactApplication {
|
|
165
|
+
...
|
|
166
|
+
// add TencentCloudPushPackage to the list of packages returned in ReactNativeHost's getPackages() method
|
|
167
|
+
override fun getPackages(): List<ReactPackage> =
|
|
168
|
+
PackageList(this).packages.apply {
|
|
169
|
+
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
170
|
+
// add(MyReactNativePackage())
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
【The project entry file is: MainApplication.java】
|
|
176
|
+
``` java
|
|
177
|
+
...
|
|
178
|
+
import com.tencent.qcloud.rntimpush.TencentCloudPushApplication;
|
|
179
|
+
|
|
180
|
+
// Replace Application with TencentCloudPushApplication
|
|
181
|
+
public class MainApplication extends TencentCloudPushApplication implements ReactApplication {
|
|
182
|
+
...
|
|
183
|
+
// add TencentCloudPushPackage to the list of packages returned in ReactNativeHost's getPackages() method
|
|
184
|
+
@Override
|
|
185
|
+
protected List<ReactPackage> getPackages() {
|
|
186
|
+
List<ReactPackage> packages = new PackageList(this).getPackages();
|
|
187
|
+
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
188
|
+
// packages.add(new MyReactNativePackage());
|
|
189
|
+
return packages;
|
|
190
|
+
}
|
|
191
|
+
...
|
|
192
|
+
```
|
|
193
|
+
3. Edit the `android/build.gradle` file to update `repositories`, `dependencies`, and `allprojects`.
|
|
194
|
+
|
|
195
|
+
``` java
|
|
196
|
+
buildscript {
|
|
197
|
+
...
|
|
198
|
+
repositories {
|
|
199
|
+
...
|
|
200
|
+
google()
|
|
201
|
+
mavenCentral()
|
|
202
|
+
maven { url 'https://mirrors.tencent.com/nexus/repository/maven-public/' }
|
|
203
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
204
|
+
maven { url 'https://developer.huawei.com/repo/' }
|
|
205
|
+
maven { url 'https://developer.hihonor.com/repo' }
|
|
206
|
+
}
|
|
207
|
+
dependencies {
|
|
208
|
+
...
|
|
209
|
+
// If the com.android.tools.build:gradle in your created project does not have a version number, set it to 8.5.0
|
|
210
|
+
// classpath("com.android.tools.build:gradle:8.5.0")
|
|
211
|
+
classpath 'com.google.gms:google-services:4.3.15'
|
|
212
|
+
classpath 'com.huawei.agconnect:agcp:1.9.1.301'
|
|
213
|
+
classpath 'com.hihonor.mcs:asplugin:2.0.1.300'
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
allprojects {
|
|
217
|
+
repositories {
|
|
218
|
+
mavenCentral()
|
|
219
|
+
maven { url 'https://mirrors.tencent.com/nexus/repository/maven-public/' }
|
|
220
|
+
// Configure the Maven repository address for HMS Core SDK.
|
|
221
|
+
maven { url 'https://developer.huawei.com/repo/' }
|
|
222
|
+
maven { url 'https://developer.hihonor.com/repo' }
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
...
|
|
226
|
+
```
|
|
227
|
+
4. Edit the `android/app/build.gradle` file, configure the vendor's push package as needed, and apply the plugin.
|
|
228
|
+
|
|
229
|
+
``` javascript
|
|
230
|
+
...
|
|
231
|
+
// If your APP requires FCM push notifications, uncomment the following line
|
|
232
|
+
// apply plugin: 'com.google.gms.google-services'
|
|
233
|
+
// If your APP requires Huawei push notifications, uncomment the following line
|
|
234
|
+
// apply plugin: 'com.huawei.agconnect'
|
|
235
|
+
// If your APP requires HONOR push notifications, uncomment the following line
|
|
236
|
+
// apply plugin: 'com.hihonor.mcs.asplugin'
|
|
237
|
+
...
|
|
238
|
+
android {
|
|
239
|
+
...
|
|
240
|
+
defaultConfig {
|
|
241
|
+
...
|
|
242
|
+
manifestPlaceholders = [
|
|
243
|
+
"VIVO_APPKEY" : "0", // If your App requires vivo push notifications, please configure 'VIVO_APPKEY' and 'VIVO_APPID'
|
|
244
|
+
"VIVO_APPID" : "0",
|
|
245
|
+
"HONOR_APPID" : "" // If your APP requires HONOR push notifications, please configure 'HONOR_APPID'
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
dependencies {
|
|
251
|
+
...
|
|
252
|
+
// Please import all or part of the following vendor push packages as needed.
|
|
253
|
+
// Only by importing the push package of the corresponding vendor
|
|
254
|
+
// can you enable the native push capability of that vendor.
|
|
255
|
+
implementation 'com.tencent.timpush:huawei:8.3.6498'
|
|
256
|
+
implementation 'com.tencent.timpush:xiaomi:8.3.6498'
|
|
257
|
+
implementation 'com.tencent.timpush:oppo:8.3.6498'
|
|
258
|
+
implementation 'com.tencent.timpush:vivo:8.3.6498'
|
|
259
|
+
implementation 'com.tencent.timpush:honor:8.3.6498'
|
|
260
|
+
implementation 'com.tencent.timpush:meizu:8.3.6498'
|
|
261
|
+
implementation 'com.tencent.timpush:fcm:8.3.6498'
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
5. After completing the above steps, select **File > Sync Project with Gradle Files**.
|
|
265
|
+
|
|
266
|
+
【iOS】
|
|
267
|
+
6. Open **MyReactNativeApp/ios/MyReactNativeApp.xcworkspace** with XCode.
|
|
268
|
+
|
|
269
|
+
7. Go to the `MyReactNativeApp/ios` directory and install TIMPush.
|
|
270
|
+
|
|
271
|
+
``` bash
|
|
272
|
+
pod install
|
|
273
|
+
# If you cannot install the latest version, run the following command to update your local CocoaPods repository list
|
|
274
|
+
pod repo update
|
|
275
|
+
```
|
|
276
|
+
8. Enable push notification feature in the app. Open the Xcode project, and select and add **Push Notifications** on the **Project > Target > Capabilities** page.
|
|
277
|
+
|
|
278
|
+
### Step 6: **Running on a Real Device (Make sure to enable notification permissions on your phone before testing, allowing the app to send notifications.)**
|
|
279
|
+
|
|
280
|
+
Starting from the project's root directory, run the following command in the command prompt to install and launch your app on the device:
|
|
281
|
+
|
|
282
|
+
【Android】
|
|
283
|
+
``` bash
|
|
284
|
+
npm run android
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
【iOS】
|
|
288
|
+
``` bash
|
|
289
|
+
npm run ios
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Step 7: Message Push Reach Statistics
|
|
293
|
+
|
|
294
|
+
If you need to collect data on delivery, please complete the setup as follows:
|
|
295
|
+
|
|
296
|
+
【Huawei】
|
|
297
|
+
|
|
298
|
+
**Receipt Address:**
|
|
299
|
+
- Singapore : https://apisgp.im.qcloud.com/v3/offline_push_report/huawei
|
|
300
|
+
|
|
301
|
+
- Korea: https://apikr.im.qcloud.com/v3/offline_push_report/huawei
|
|
302
|
+
|
|
303
|
+
- USA: https://apiusa.im.qcloud.com/v3/offline_push_report/huawei
|
|
304
|
+
|
|
305
|
+
- Germany: https://apiger.im.qcloud.com/v3/offline_push_report/huawei
|
|
306
|
+
|
|
307
|
+
- Indonesia: https://apiidn.im.qcloud.com/v3/offline_push_report/huawei
|
|
308
|
+
|
|
309
|
+
- China: https://api.im.qcloud.com/v3/offline_push_report/huawei
|
|
310
|
+
|
|
311
|
+
> **Note:**
|
|
312
|
+
>
|
|
313
|
+
|
|
314
|
+
> Huawei Push Certificate ID <= 11344, using Huawei Push v2 version interface does not support reach and click receipt, please regenerate and update the certificate ID.
|
|
315
|
+
>
|
|
316
|
+
|
|
317
|
+
【HONOR】
|
|
318
|
+
|
|
319
|
+
**Receipt Address:**
|
|
320
|
+
- Singapore : https://apisgp.im.qcloud.com/v3/offline_push_report/honor
|
|
321
|
+
|
|
322
|
+
- Korea: https://apikr.im.qcloud.com/v3/offline_push_report/honor
|
|
323
|
+
|
|
324
|
+
- USA: https://apiusa.im.qcloud.com/v3/offline_push_report/honor
|
|
325
|
+
|
|
326
|
+
- Germany: https://apiger.im.qcloud.com/v3/offline_push_report/honor
|
|
327
|
+
|
|
328
|
+
- Indonesia: https://apiidn.im.qcloud.com/v3/offline_push_report/honor
|
|
329
|
+
|
|
330
|
+
- China: https://api.im.qcloud.com/v3/offline_push_report/honor
|
|
331
|
+
|
|
332
|
+
【vivo】
|
|
333
|
+
| Callback Address Configuration | Receipt ID Configuration in the Chat Console |
|
|
334
|
+
| --- | --- |
|
|
335
|
+
| <strong>Receipt Address:</strong><br>- Singapore :https://apisgp.im.qcloud.com/v3/offline_push_report/vivo<br>- Korea: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: https://api.im.qcloud.com/v3/offline_push_report/vivo | |
|
|
336
|
+
|
|
337
|
+
【Meizu】
|
|
338
|
+
|
|
339
|
+
|Enable Receipt Switch|Configure Receipt Address|
|
|
340
|
+
|---------|---------|
|
|
341
|
+
|||
|
|
342
|
+
|
|
343
|
+
**Receipt Address:**
|
|
344
|
+
- Singapore : https://apisgp.im.qcloud.com/v3/offline_push_report/meizu
|
|
345
|
+
|
|
346
|
+
- Korea: https://apikr.im.qcloud.com/v3/offline_push_report/meizu
|
|
347
|
+
|
|
348
|
+
- USA: https://apiusa.im.qcloud.com/v3/offline_push_report/meizu
|
|
349
|
+
|
|
350
|
+
- Germany: https://apiger.im.qcloud.com/v3/offline_push_report/meizu
|
|
351
|
+
|
|
352
|
+
- Indonesia: https://apiidn.im.qcloud.com/v3/offline_push_report/meizu
|
|
353
|
+
|
|
354
|
+
- China: https://api.im.qcloud.com/v3/offline_push_report/meizu
|
|
355
|
+
|
|
356
|
+
> **Note:**
|
|
357
|
+
>
|
|
358
|
+
|
|
359
|
+
> After enabling the Receipt Switch, please make sure the Receipt Address is configured correctly. Failing to configure or configuring the wrong address will affect the push feature.
|
|
360
|
+
>
|
|
361
|
+
|
|
362
|
+
【iOS】
|
|
363
|
+
|
|
364
|
+
For iOS push reach statistics configuration, see **Statistics of Push Arrival Rate**.
|
|
365
|
+
|
|
366
|
+
No configuration is needed for other supported manufacturers; FCM does not support the push notification statistics feature.
|