APNs、FCM 或 GCM 令牌 [英] APNs, FCM or GCM token

查看:71
本文介绍了APNs、FCM 或 GCM 令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

苹果或谷歌如何为用户、应用或设备指定令牌?

How apple or google specify a token to a user or app or maybe device?

例如对于用户 X,使用设备 Iphone7 和 Facebook,苹果生成一个令牌或者对于用户 X,使用设备 Iphone7 苹果生成一个或任何其他...还怎么谷歌?

for example for user X, with Device Iphone7, and Facebook, the apple generate one token or for user X, with Device Iphone7 the apple generate one or any others... also How google?

另一个问题是在 Web 应用程序中,它们如何指定令牌?

another question is in Web Application, How they specify tokens?

推荐答案

FCM 令牌也称为设备实例 ID;它标识该特定设备上的特定应用.

An FCM token is also known as a device instance ID; it identifies that specific app on that specific device.

如果在另一台设备上安装了相同的应用程序,它将获得不同的设备实例 ID.即使是同一个用户安装同一个应用程序的情况也是如此,每部手机上的实例 ID 都是唯一的.

If the same app is installed on another device, it will get a different device instance ID. This is even the case when it's the same user installing the same app, the instance ID on each phone will be unique.

当不同的应用安装在同一设备上时,它也会获得自己的设备实例 ID.因此,不同的应用永远不会共享令牌,无论它们是否在同一部手机上.

When a different app is installed on the same device, it also gets its own device instance ID. So different apps will never share the token, no matter if they are on the same phone.

在这方面,如果您在同一部 (Android) 手机上有多个配置文件,则它们算作单独的手机:如果您在同一部手机上的两个配置文件下安装相同的应用程序,则应用程序的每个实例都将获得自己的实例 ID.

In this respect if you have multiple profiles on the same (Android) phone, they count as separate phones: if you install the same app on the same phone under two profiles, each instance of the app will get its own instance ID.

所有这一切意味着您可以使用其令牌在特定手机的特定配置文件上定位特定应用.

All of this means that you can target a specific app, on a specific profile of a specific phone with its token.

这篇关于APNs、FCM 或 GCM 令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆