Android、iOs 和浏览器的 APNS 和 GCM
APNS and GCM for Android, iOs and Browsers
亲爱的 Whosebug 小伙伴们,
我想像老板一样使用 APNS 和 GCM 创建推送通知。但是我仍然不清楚一件事。我想知道 Android 和 Chrome 的客户端(我们从服务器向其发送推送消息)的注册过程是否相同?(Safari 和 iOS)
当我从服务器向浏览器和 android 应用程序发送推送消息时,除了 device_id 之外有什么不同?
我可以期望当我通过 GCM(或 APNS)发送消息时,它会被传送到浏览器和 Android 设备吗?(如果指定了正确的 ID)
我应该手动设置不同的样式吗?
或者我应该处理浏览器用户和 Android 应用程序用户喜欢完全不同的实体?
提前致谢,对于乱七八糟的消息深表歉意,xnagpa
我想知道 Android 和 Chrome 的客户端(我们从服务器向其发送推送消息)的注册过程是否相同?(Safari 和 iOS)
An Android application needs to register with GCM connection servers
before it can receive messages. When an app registers, it receives a
registration token and sends it to the app server. The client app
should store a boolean value indicating whether the registration token
has been sent to the server. Google provides the Instance ID API to
handle the creation and updating of registration tokens.
For Chrome apps and extensions, GCM enables Chrome instances to send
and receive message data from servers. The chrome.gcm API allows the
Chrome apps or extensions to access the GCM service. The service works
even if an app or extension isn't currently running.
来自GCM iOS docs:
Before it can receive messages, an iOS application needs to register
with both Apple Push Notification service (APNs) and the GCM
connection server. When a client app registers with GCM, it receives a
registration token, which it must then send to the app server (the
APNs device token is not sent to the server). The client app must
store a boolean value indicating whether the registration token has
been sent to the server.
当我从服务器向浏览器和 android 应用程序发送推送消息时,除了 device_id,有什么不同?
Chrome 应用程序和扩展程序可以直接通过 chrome.gcm API 访问 GCM 服务。 Android 需要设置 Google 播放服务、清单等配置
我可以期望当我通过 GCM(或 APNS)发送消息时,它会被传送给浏览器和 Android 设备吗?(如果指定了正确的 ID)
是的
我应该处理浏览器用户和 Android 应用程序用户喜欢完全不同的实体吗?
GCM 旨在支持 chrome、ios 和 android。观看此 Google GCM video 了解更多信息。
亲爱的 Whosebug 小伙伴们,
我想像老板一样使用 APNS 和 GCM 创建推送通知。但是我仍然不清楚一件事。我想知道 Android 和 Chrome 的客户端(我们从服务器向其发送推送消息)的注册过程是否相同?(Safari 和 iOS)
当我从服务器向浏览器和 android 应用程序发送推送消息时,除了 device_id 之外有什么不同?
我可以期望当我通过 GCM(或 APNS)发送消息时,它会被传送到浏览器和 Android 设备吗?(如果指定了正确的 ID)
我应该手动设置不同的样式吗?
或者我应该处理浏览器用户和 Android 应用程序用户喜欢完全不同的实体?
提前致谢,对于乱七八糟的消息深表歉意,xnagpa
我想知道 Android 和 Chrome 的客户端(我们从服务器向其发送推送消息)的注册过程是否相同?(Safari 和 iOS)
An Android application needs to register with GCM connection servers before it can receive messages. When an app registers, it receives a registration token and sends it to the app server. The client app should store a boolean value indicating whether the registration token has been sent to the server. Google provides the Instance ID API to handle the creation and updating of registration tokens.
For Chrome apps and extensions, GCM enables Chrome instances to send and receive message data from servers. The chrome.gcm API allows the Chrome apps or extensions to access the GCM service. The service works even if an app or extension isn't currently running.
来自GCM iOS docs:
Before it can receive messages, an iOS application needs to register with both Apple Push Notification service (APNs) and the GCM connection server. When a client app registers with GCM, it receives a registration token, which it must then send to the app server (the APNs device token is not sent to the server). The client app must store a boolean value indicating whether the registration token has been sent to the server.
当我从服务器向浏览器和 android 应用程序发送推送消息时,除了 device_id,有什么不同?
Chrome 应用程序和扩展程序可以直接通过 chrome.gcm API 访问 GCM 服务。 Android 需要设置 Google 播放服务、清单等配置
我可以期望当我通过 GCM(或 APNS)发送消息时,它会被传送给浏览器和 Android 设备吗?(如果指定了正确的 ID) 是的
我应该处理浏览器用户和 Android 应用程序用户喜欢完全不同的实体吗? GCM 旨在支持 chrome、ios 和 android。观看此 Google GCM video 了解更多信息。