Home  >  Q&A  >  body text

android - 你们的红点是推送来的么 ?还是使用http接口

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

巴扎黑巴扎黑2721 days ago610

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:43:19

    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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 09:43:19

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:43:19

    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

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:43:19

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

    reply
    0
  • 阿神

    阿神2017-04-18 09:43:19

    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

    reply
    0
  • Cancelreply