android - 你们的红点是推送来的么 ?还是使用http接口
巴扎黑
巴扎黑 2017-04-18 09:41:19
0
5
640

**一般app都有红点提示功能,一般大家的app都使用什么方式?以及产品的类型是什么
这二种方式的优缺点**

巴扎黑
巴扎黑

reply all(5)
Ty80

Android can use push transparent transmission to achieve red dots, but it seems that Apple cannot use push to achieve red dots, so it must build its own long connection channel;
A simpler solution can actively go to the server to request whether there are new messages when the page is switched. , or polling every few seconds to ensure a certain real-time performance, but this puts a certain burden on the server

大家讲道理

android: In some projects, the red dots and push are separated. The backend has already processed them, and the red dots are implemented using interfaces in the project. Receive push messages at the same time

伊谢尔伦

If you need to display a small red dot in real time, a long connection is essential. However, it is not necessary to develop your own heavy workload. You can use three-party Aurora Push or something to achieve it

左手右手慢动作

Just push it and create an event to refresh the red dot

阿神

If the notification bar allows notifications, you can use push notifications directly. If the notification bar notification cannot be displayed, Android can use transparent transmission. Not for ios. Also through the socket method or polling method

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template