目前我所尝试的是从有效负载(静态)获取通知,我想从服务器执行此 *** 作,任何人都可以帮助我吗?
- (voID)dIDReceiveRemoteNotification:(NSDictionary *)remoteNotification withCompletion:(voID(^)(WKUserNotificationInterfaceType interface)) completionHandler { NSDictionary* apsDict = [remoteNotification objectForKey:apsKeyString]; Nsstring* TitleString = [apsDict objectForKey:TitleKeyString]; [self.TitleLabel setText:TitleString]; completionHandler(WKUserNotificationInterfaceTypeCustom);}解决方法
When one of your app’s local or remote notifications arrives on the user’s iPhone,iOS decIDes whether to display that notification on the iPhone or on the Apple Watch.
所以你不必担心在Watch上发送通知,iOS会为你做
这是Answer,I already Posted about this.
该主题包含Apple Watch的Apple Watch Notification Essentials HelPing link.
是的,这是您使用(发布的问题)方法来监听Watch中的推送通知
总结以上是内存溢出为你收集整理的ios – 如何在Apple Watch中发送推送通知?全部内容,希望文章能够帮你解决ios – 如何在Apple Watch中发送推送通知?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)