"登记"对于使用phonegap-push-plugin的ionic3应用程序

时间:2018-01-26 17:16:10

标签: push-notification phonegap-plugins

我开发了一个使用phonegap-push-plugin的ionic3应用程序,以便重新发送推送通知。

有谁知道我有多少时间打电话"注册"像这样

pushObject.on('registration').subscribe((registration: any) => console.log('Device registered', registration)); 

a)我是否必须进行注册"每次我打开我的应用程序?

b)或者首次安装应用程序后只需要一次?

......为什么?

感谢。

1 个答案:

答案 0 :(得分:0)

根据这个Register a device on GCM every time the app start is the right approach? 答案是: 1.每次更新应用程序 2.手机重启时

除了这两种情况之外,是否有可能有第三种情况,即#34;当操作系统更新时#34;