xcode iOS 11 中的 Apple Watch 上缺少通知图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46383403/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:17:21  来源:igfitidea点击:

Notification icon missing on Apple Watch in iOS 11

iosxcodepush-notificationapple-watch

提问by Antipex

Notifications coming from our app in iOS 11 are missing the app's icon when they appear on the Apple Watch.

来自我们 iOS 11 应用程序的通知在出现在 Apple Watch 上时缺少应用程序图标。

We have the iPhone Notification iOS 7-11 icons in our AppIcon asset, as well as iPad Notifications iOS 7-11, and all of the pertinent spotlight, settings, and app icons for various devices for iOS 7-11.

我们的 AppIcon 资产中有 iPhone 通知 iOS 7-11 图标,以及 iOS 7-11 通知 iPad,以及适用于 iOS 7-11 的各种设备的所有相关聚光灯、设置和应用程序图标。

Any ideas as to what we might be missing? This was working fine in iOS 10 and it stopped working in iOS 11.

关于我们可能会遗漏什么的任何想法?这在 iOS 10 中运行良好,但在 iOS 11 中停止工作。

采纳答案by Antipex

As @Skyborg pointed out, this appears to be a watchOS bug and is fixed in watchOS 4.1.

正如@Skyborg 指出的那样,这似乎是一个 watchOS 错误,已在 watchOS 4.1 中修复。

回答by Ted

It should be fixed in iOS 11.1 according to apple

根据苹果的说法,它应该在iOS 11.1中修复

Other improvements and fixes

Fixes an issue where app icons were not appearing in notifications on Apple Watch

其他改进和修复

修复了应用程序图标未出现在 Apple Watch 通知中的问题

iOS11.1 changelog: https://support.apple.com/en-gb/HT208067

iOS11.1 更新日志:https: //support.apple.com/en-gb/HT208067

回答by keyv

Go to AppIcon asset, on the right side, you'll probably see:

转到 AppIcon 资产,在右侧,您可能会看到:

enter image description here

在此处输入图片说明

Change it, say, to watchOS 2.0 and Later. And you will see that asset is now extended with icons for Apple Watch: enter image description here

将其更改为watchOS 2.0 及更高版本。你会看到资产现在扩展了 Apple Watch 的图标: 在此处输入图片说明

回答by Skyborg

Upload with Application loader in the latest 8 Version of Xcode did the Trick for me. Apple Watch Icons are now on the watch again.

在最新的 Xcode 8 版本中使用应用程序加载器上传对我来说是个窍门。Apple Watch 图标现在再次出现在手表上。