最近搜索
没有最近搜索

Giulio
已加入2023年11月28日
·
最后活动2025年1月14日
关注
0
关注者
0
活动总数
31
投票
17
订阅
10
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Giulio
Giulio 进行了评论,
评论Performing calculations
is it possible to use the IF formula in result metric calculations ?
查看评论 · 已于 2024年8月20日 发布 · Giulio
0
关注者
0
投票
0
评论
Giulio 创建了一个帖子,
帖子 Developer - Zendesk SDKs
Hi,
I am writing because we are finding some issues integrating the Android push notifications in the Zendesk messages. After following the instructions in https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/android/push_notifications/ (we made the custom implementation of
I am writing because we are finding some issues integrating the Android push notifications in the Zendesk messages. After following the instructions in https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/android/push_notifications/ (we made the custom implementation of
FirebaseMessagingService
since we have other handlers in the app), we found out that notifications were not received. After some digging, it seems that the root cause is the fact that onNewToken
is only invoked when the device token is invalid (normally because a new app install), but it is not invoked for existing users. So, in practice, for apps with pre-existing notifications, I believe it’s needed to add an extra step on the documentation, with something like:FirebaseMessaging.getInstance().token.addOnSuccessListener(activity) { result -> PushNotifications.updatePushNotificationToken(token) }
On top of that, now with that part of the code fixed, we are finding a second problem that we do not know how to resolve, and might require any assistance. When the app receives a push with a message, it can be in 3 states: foreground, background or killed. The first 2 states are handled properly, the use of
PushNotifications.displayNotification(context = this, messageData = remoteMessage.data)
handles a local notification that when clicked it redirects the user to the specific conversation in Zendesk by using a custom pending intent. However, when the app is in killed state, the notification management is different (the OS is the one showing the notification), and when user clicks the invoked method is a
onNewIntent
or onStart
in the launch activity of the app, which is not handling the zendesk data and therefore does not open the conversation screen. How can we fix this? can we invoke any method in ZendeskSdk when we get the new intent so zendesk can inspect it and open the conversation accordingly?Thanks for the help已于 2024年2月01日 发布 · Giulio
0
关注者
2
投票
2
评论