登出时取消消息推送注册

This commit is contained in:
2024-10-12 10:07:18 +08:00
parent ae4d87c5ab
commit c0956b3b94
7 changed files with 56 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ object AppState {
UserId = resp.id
// 注册 JPush
Messaging.RegistDevice(scope, context)
Messaging.registerDevice(scope, context)
// 注册 Trtc
val config = V2TIMSDKConfig()
@@ -140,6 +140,5 @@ object AppState {
TrtcService::class.java
)
context.stopService(trtcService)
}
}