Loading

앱 내 메시징에서 MEU의 활성화된 ConversationId 가져오기

게시 일자: Jan 15, 2025
상세 설명

>>알고 있는 것처럼 CX가 모바일에서 처음으로 Messaging 세션을 시작할 때 아래 문서에서 언급한대로 uuid()를 사용하여 랜덤한 conversationId를 생성합니다.

Android: https://developer.salesforce.com/docs/service/messaging-in-app/guide/android-ui-sdk.html
IOS: https://developer.salesforce.com/docs/service/messaging-in-app/guide/ios-ui-sdk.html
>>고객이 웹을 방문하면, JWT 토큰은 subject를 MEU로 가지고 있어 활성화된 대화 및 기록을 가져옵니다.

더 자세한 정보: https://help.salesforce.com/s/articleView?id=service.user_verification_overview.htm&type=5

MEU가 웹에서 처음 대화를 시작했다가 모바일로 돌아오면, 승인된 MEU의 활성화된 대화를 가져오는 방법은 다음과 같습니다.

솔루션

<<전제 조건>>

>> Salesforce에서 사용자 확인 설정 완료:
https://help.salesforce.com/s/articleView?id=service.user_verification_setup.htm&type=5
>>IOS/ANDROID 앱 내 Messaging 구축:
https://developer.salesforce.com/docs/service/messaging-in-app/guide/introduction.html

핵심 클라이언트 개체에 위임 추가를 구현하는 동안 아래 코드를 통해 활성화된 대화를 가져와야 합니다.
Android: https://developer.salesforce.com/docs/service/messaging-in-app/guide/android-user-verification.html
IOS: https://developer.salesforce.com/docs/service/messaging-in-app/guide/ios-user-verification.html

>>설명된 것처럼 force 플래그를 사용하여 로컬 데이터베이스에서 뿐만이 아니라 네트워크에서 요청이 이루어지도록 할 수 있습니다.

forceRefresh 문서

Android:
https://salesforce-async-messaging.github.io/messaging-in-app-android/messaging-inapp-core/com.salesforce.android.smi.core/-core-client/index.html#1647340068%2FFunctions%2F415633242
IOS:
https://salesforce-async-messaging.github.io/messaging-in-app-ios/Protocols/SMICoreClient.html#/c:objc(pl)SMICoreClient(im)conversationsWithLimit:olderThanConversation:completion

 
abstract suspend fun conversations( limit: Int,
olderThanConversation: Conversation? = null,
conversationId: UUID? = null,
forceRefresh: Boolean = false
): Result<List<Conversation>>

 >>forceRefresh: true로 설정된 경우 네트워크에서 요청된 데이터를 강제로 새로 고칩니다. 그렇지 않으면, 요청된 데이터를 로컬 캐시에서 가져와 로컬에서 결과를 찾을 수 없는 경우에만 네트워크에서 새로 고칩니다. 기본값은 false입니다.

웹 Messaging의 경우 JWT 토큰에 활성화된 MEU 대화를 자동으로 가져오는 MEU의 Sub가 포함되어 있으므로 대화를 생성/가져오기 할 필요가 없습니다.

더 자세한 정보는 다음에 제공되어 있습니다. 
https://help.salesforce.com/s/articleView?id=service.user_verification_overview.htm&type=5

Knowledge 기사 번호

004141327

 
로드 중
Salesforce Help | Article