최근 검색
최근 검색 없음

Karthik Suresh
가입한 날짜: 2022년 8월 24일
·
마지막 활동: 2022년 8월 30일
팔로잉
0
팔로워
0
총 활동 수
3
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Karthik Suresh
Karthik Suresh님이 에 댓글을 입력함
Hi,
Thank you for the reply. I have managed to associate the chat screen from notification. I have one more issue now. I don't get the push messages if the app is killed from recent apps screen whereas it works for any other major applications on Android.
Please let me know if this is something which has affected you before.
댓글 보기 · 2022년 8월 30일에 게시됨 · Karthik Suresh
0
팔로워
0
투표 수
0
댓글
Karthik Suresh님이 에 게시물을 만듦
Hi,
I'm using chat sdk v2 and following this link to enable push notifications. https://developer.zendesk.com/documentation/classic-web-widget-sdks/chat-sdk-v2/android/push_notifications/
Also, this link to show the push notifications as per Android docs. https://developer.android.com/training/notify-user/build-notification
I'm stuck at this point where the pending intent for the MessagingActivity needs to be created.
// Create an explicit intent for an Activity in your app
val intent = Intent(this, AlertDetails::class.java).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
}
val pendingIntent: PendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE)
val builder = NotificationCompat.Builder(this, CHANNEL_ID)
.setSmallIcon(R.drawable.notification_icon)
.setContentTitle("My notification")
.setContentText("Hello World!")
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
// Set the intent that will fire when the user taps the notification
.setContentIntent(pendingIntent)
.setAutoCancel(true)
We use this inside our application to start the chat screen.
MessagingActivity.builder()
.withEngines(ChatEngine.engine())
.show(view.getContext(), chatConfiguration);
Please guide me on how to show this screen via pending intent from the push notification.
Eric Nelson
2022년 8월 25일에 편집됨 · Karthik Suresh
0
팔로워
3
투표 수
3
댓글