问题
I want to create a push notification with an image (like when you receive an iMessage with a photo).
Anyone know how it is done?
回答1:
Unfortunately not.The notification payload is up to 256 bytes long.And it is useless to use them to sent images.
Please read Apple Docs.
回答2:
This has changed in iOS 10! Hurrah!
https://littlebitesofcocoa.com/261-rich-notifications
来源:https://stackoverflow.com/questions/26148253/ios-push-notification-with-image-like-in-imessage