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

2019-09-18 14:37:49 +08:00
 c0011

苹果和华为都支持透传。

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

小米能不能做个人了?

9047 次点击
所在节点    Android
27 条回复
Counter
2019-09-18 16:32:53 +08:00
请问最后那一句话是什么意思?
kekeyu
2019-09-18 17:20:43 +08:00
小白求教,透传是什么意思
TuxcraFt
2019-09-18 17:40:16 +08:00
说什么?阴阳怪气的
leido
2019-09-18 17:43:28 +08:00
?
yukiww233
2019-09-18 17:43:40 +08:00
不明所以
kanata
2019-09-18 17:45:24 +08:00
句句都听的懂,连在一起就不懂了。
ochatokori
2019-09-18 17:49:29 +08:00
现在给小米推送消息,(用户)不点(通知栏的)推送提示框打开程序而是直接点桌面上的图标打开程序的话,程序根本就不知道推送过什么内容

猜的
c0011
2019-09-18 17:52:05 +08:00
@ochatokori 我说的不是这个意思吗?
c0011
2019-09-18 17:53:29 +08:00
@TuxcraFt 什么叫阴阳怪气???
happyzed
2019-09-18 18:00:21 +08:00
这样设计不是很合理吗?让你感知到了推送内容你是不是就可以用来干别的了,苹果不是这样?
yukiww233
2019-09-18 18:04:01 +08:00
@c0011 #9 确实挺阴阳怪气的。
还有,先问是不是,再问为什么
asasas2114823
2019-09-18 18:06:30 +08:00
小米怎么做人啊,它只是一粒小米啊,就算是小米公司也做不了人啊,拟人化也太恐怖了吧
fvckDaybyte2
2019-09-18 18:09:56 +08:00
华为的透传是不是上滑杀死就无效了?
BernieDu
2019-09-18 18:40:02 +08:00
难道苹果点桌面图标能知道推送的是啥??还是说你没用过苹果?
daozhihun
2019-09-18 19:25:07 +08:00
什么乱七八糟的,不知所云
glp664186796
2019-09-19 10:15:55 +08:00
@ochatokori 我也是没看懂,看到你这里才了然了
semiwhale
2019-09-19 11:11:13 +08:00
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
2019-09-19 11:16:24 +08:00
看不懂,估计语文不及格
shuizhengqi
2019-09-19 11:56:51 +08:00
小米是个品牌啊,他要个人,估计要成精了
c0011
2019-09-19 13:06:46 +08:00
是这样的。服务期器通过推送给手机发送消息,比如消息是:"hello world"。
流程是服务器先给推送平台(比如小米推送平台)发送推送,带上消息 "hello world",然后推送平台会在用户手机
的最上方提示一个通知,通知内容就是"hello world"。现在问题来了,用户通过点击桌面上的图标进入软件,软件并不知道收到了推送消息"hello world"。所以就需要每次软件启动后立刻登录服务器,服务器内部记录一下之前给谁发过推送,然后等到这个人登录后,再重新把 "hello world" 发给客户端。

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

所以,如果手机客户端不管怎么启动都能知道之前的推送消息,那么服务器只管发推送就行。
简便很多。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/601827

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX