简体   繁体   English

推送Apple Watch通知

[英]Push Notifications for Apple Watch

From what I've understood (which could be completly wrong and therefore this post will make no sense), I need to create separate APP Id's in my developer portal for my Watch app/extension. 根据我的理解(这可能是完全错误的,因此这篇文章没有意义),我需要在我的开发人员门户中为我的Watch app / extension创建单独的APP Id。

I did that, and I now have 3 app ID's and their complete related set of provisioning profiles up and running. 我做到了,现在我有3个应用程序ID和完整相关的配置文件集,并且正在运行。

The archive works fine and I'm about to submit but, I see that because there is an app ID, I can link a PUSH Certificate (apn). 存档工作正常,我即将提交,但我看到,因为有一个应用程序ID,我可以链接一个PUSH证书(apn)。 Since the Apple Watch doesn't really get notified, but the phone does, do I really need to create specific certificates for the apple Watch ? 由于Apple Watch并未真正得到通知,但手机确实如此,我是否真的需要为Apple Watch创建特定证书? And use their related .p12 wherever I would need them (parse.com for example) ? 并使用他们相关的.p12,无论我需要它们(例如parse.com)?

Or can I simply ignore that and keep the regular phone certificates ? 或者我可以简单地忽略它并保留常规电话证书?

Thanks 谢谢

If you already have push notifications set up properly for your iPhone app, they will be delivered to the Watch automatically. 如果您已经为iPhone应用程序正确设置了推送通知,它们将自动发送到Watch。 You don't need to set up any separate certificates. 您无需设置任何单独的证书。

Docs: https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/BasicSupport.html#//apple_ref/doc/uid/TP40014969-CH18-SW1 文档: https//developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/BasicSupport.html#//apple_ref/doc/uid/TP40014969-CH18-SW1

Additionally, I have deployed a number of apps already and have first-hand experience. 此外,我已经部署了许多应用程序并拥有第一手经验。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM