无法为安卓消息应用发送推送通知?

huangapple 未分类评论47阅读模式
英文:

Not able to send push notification for Android messaging app?

问题

我们已开发了一款Android聊天应用,其后端使用Java Spring Boot。我们正在使用Mesibo消息平台。我们需要开发一个推送通知功能。另外,由于在某些国家/地区被屏蔽,我们无法使用FCM。Mesibo已提供了一个webhook以及一些事件,用于发送推送通知。

当应用在用户手机上被关闭或用户离线时,我该如何向用户传递消息?此外,我不确定后端将如何接收事件,哪种回调将被发送给Mesibo?

英文:

We have developed an Android chat-app having Java Spring-boot as backend. We are using the Mesibo messaging platform. We need to develop a push notification feature. Also, we cannot use FCM as it is blocked in certain countries. Mesibo has provided a webhook and some events for sending a push notification.

How will I deliver messages to the user when the app is closed on the phone or the user is offline? Also, I am not sure how the backend will receive the event on which callback will be sent to Mesibo?

答案1

得分: 0

如果FCM在某些国家被阻止,您需要拥有替代机制来唤醒您的手机,例如百度。

在mesibo控制台设置您的webhook,以便在有离线用户的消息或呼叫时mesibo调用它。然后您可以使用(比如,百度推送)来唤醒手机。一旦手机从休眠状态中恢复,mesibo就可以接管。

英文:

If FCM is blocked in countries, you need to have alternate mechanism to wake up your phone, for example, Baidu.

Set up your webhook in the mesibo console so that mesibo invokes it when there is a message or call for an offline user. You can then use (say, Baidu push) to wake up the phone. Once the phone comes out of sleep, mesibo can take over.

huangapple
  • 本文由 发表于 2020年7月23日 14:51:25
  • 转载请务必保留本文链接:https://java.coder-hub.com/63048479.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定