通常,应用程序图标
显示为推送通知
图像图标(左侧)。但是,如果我想在推送通知
中添加自定义图像,我必须遵循图像的固定大小吗?
感谢您的光临。
最佳答案
它的大小与您通常为应用提供的启动图像相同。
- 3.5": 640*960
- 4": 640*1136
等..
这是 Apple 提供的一些描述:
The string is a filename of an image file in the app bundle. This image is a launching image specified for a given notification; when the user taps the action button (for example, “View”) or moves the action slider, the image is used in place of the default launching image. If the value of this property is nil (the default), the system either uses the previous snapshot, uses the image identified by the UILaunchImageFile key in the app’s Info.plist file, or falls back to Default.png.
关于ios - iOS 中本地通知自定义图像图标的大小是多少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27961512/