c0011
V2EX  ›  Android

小米推送为什么不做成苹果或华为那种?

  •  
  •   c0011 · Sep 18, 2019 · 18259 views
    This topic created in 2604 days ago, the information mentioned may be changed or developed.

    苹果和华为都支持透传。

    现在给小米发推送,不点推送提示框而是直接点桌面上的图标。程序根本就不知道推送的是什么内容。

    小米能不能做个人了?

    27 replies  •  2019-09-23 09:44:31 +08:00
    Counter
    Counter
    Sep 18, 2019
    1
    请问最后那一句话是什么意思?
    kekeyu
    kekeyu
    Sep 18, 2019 via iPhone
    2
    小白求教,透传是什么意思
    TuxcraFt
    TuxcraFt
    Sep 18, 2019
    3
    说什么?阴阳怪气的
    leido
    leido
    Sep 18, 2019
    4
    ?
    yukiww233
    yukiww233
    Sep 18, 2019
    5
    不明所以
    kanata
    kanata
    Sep 18, 2019
    6
    句句都听的懂,连在一起就不懂了。
    ochatokori
    ochatokori
    Sep 18, 2019 via Android
    7
    现在给小米推送消息,(用户)不点(通知栏的)推送提示框打开程序而是直接点桌面上的图标打开程序的话,程序根本就不知道推送过什么内容

    猜的
    c0011
    c0011
    OP
    Sep 18, 2019
    8
    @ochatokori 我说的不是这个意思吗?
    c0011
    c0011
    OP
    Sep 18, 2019
    9
    @TuxcraFt 什么叫阴阳怪气???
    happyzed
    happyzed
    Sep 18, 2019
    10
    这样设计不是很合理吗?让你感知到了推送内容你是不是就可以用来干别的了,苹果不是这样?
    yukiww233
    yukiww233
    Sep 18, 2019
    11
    @c0011 #9 确实挺阴阳怪气的。
    还有,先问是不是,再问为什么
    asasas2114823
    asasas2114823
    Sep 18, 2019❤️2
    12
    小米怎么做人啊,它只是一粒小米啊,就算是小米公司也做不了人啊,拟人化也太恐怖了吧
    fvckDaybyte2
    fvckDaybyte2
    Sep 18, 2019
    13
    华为的透传是不是上滑杀死就无效了?
    BernieDu
    BernieDu
    Sep 18, 2019
    14
    难道苹果点桌面图标能知道推送的是啥??还是说你没用过苹果?
    daozhihun
    daozhihun
    Sep 18, 2019
    15
    什么乱七八糟的,不知所云
    glp664186796
    glp664186796
    Sep 19, 2019
    16
    @ochatokori 我也是没看懂,看到你这里才了然了
    semiwhale
    semiwhale
    Sep 19, 2019
    17
    iOS 除非应用在前台,或者用户点通知栏进入应用。否则 iOS 也拿不到推送内容。

    Let’s review the possible scenarios when the operating delivers a local notification or a remote notification for an application.

    The notification is delivered when the application isn’t running in the foreground. In this case, the system presents the notification, displaying an alert, badging an icon, perhaps playing a sound.

    As a result of the presented notification, the user taps the action button of the alert or taps (or clicks) the application icon. If the action button is tapped (on a device running iOS), the system launches the application and the application calls its delegate’s application:didFinishLaunchingWithOptions: method (if implemented); it passes in the notification payload (for remote notifications) or the local-notification object (for local notifications).

    If the application icon is tapped on a device running iOS, the application calls the same method, but furnishes no information about the notification.
    sunziren
    sunziren
    Sep 19, 2019
    18
    看不懂,估计语文不及格
    shuizhengqi
    shuizhengqi
    Sep 19, 2019
    19
    小米是个品牌啊,他要个人,估计要成精了
    c0011
    c0011
    OP
    Sep 19, 2019
    20
    是这样的。服务期器通过推送给手机发送消息,比如消息是:"hello world"。
    流程是服务器先给推送平台(比如小米推送平台)发送推送,带上消息 "hello world",然后推送平台会在用户手机
    的最上方提示一个通知,通知内容就是"hello world"。现在问题来了,用户通过点击桌面上的图标进入软件,软件并不知道收到了推送消息"hello world"。所以就需要每次软件启动后立刻登录服务器,服务器内部记录一下之前给谁发过推送,然后等到这个人登录后,再重新把 "hello world" 发给客户端。

    并且服务器必须维护这个"hello world" 状态,非常麻烦。

    所以,如果手机客户端不管怎么启动都能知道之前的推送消息,那么服务器只管发推送就行。
    简便很多。
    xionger
    xionger
    Sep 19, 2019
    21
    这这这在说什么
    c0011
    c0011
    OP
    Sep 19, 2019
    22
    @xionger 是你看不懂还是我说的不明白?瞎起什么哄?
    zjlletian
    zjlletian
    Sep 19, 2019
    23
    为啥要做成那种??推送了我想看自然从通知栏点进去了,不想看就不会点。你要直接启动 app 也能看得到的话,那就是 app 内消息,不是系统推送。
    c0011
    c0011
    OP
    Sep 19, 2019
    24
    @zjlletian 不是直接启动 app 啊,现在的问题是桌面点击图标进入软件,软件根本就不知道有推送这回事啊
    heixiaobai
    heixiaobai
    Sep 20, 2019 via Android
    25
    你是希望服务端通过通知将操作发给客户端执行吗?
    c0011
    c0011
    OP
    Sep 20, 2019
    26
    @HeiXiaoBai 大概这个意思
    djs
    djs
    Sep 23, 2019
    27
    @c0011 你都点进去了,那不是可以程序直接获取吗?还要这推送何用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5222 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 06:23 · PVG 14:23 · LAX 22:23 · JFK 01:23
    ♥ Do have faith in what you're doing.