Display custom image on the right side of Push / Local Notification?

I received a notification from the passbook application where I saved a movie ticket that I bought. In the notification there were 2 images on the lock screen: on the left he had the icon of the original application, from where I bought movie tickets, and on the right - the image of ticket information. Check out the screenshot below:

enter image description here

This notification is local and is generated by Passbook.

At first I wanted to know how to add a custom image on the right side, which is not an application icon, and its content created later in the application. I am looking to achieve this and have not received much information about this.

Secondly, is this possible for push push? If yes? Is there documentation where indicated?

Edit: I just want to know if the screenshot I shared above can be taken? Because Passbook does. I need a solution for this, even if it is only for local notification. Thanks.

+5
source share
2 answers

You should use Widget, which is a very good feature of the iOS app. In the widget, you can use the custom view in your application for local notification. Thus, using this widget, you can show the image on the right side in the notification, even in the lockscreen

+1
source

No. The notification payload can be up to 256 bytes long. You can send an image only if the size of the encoded image plus the rest of the payload does not exceed 256 bytes.

You can, however, use the launch-image property from the apt dictionary to specify the image from the application set that will be used when the application starts.

Or you can send the URL from which the image can be downloaded in the application.

0
source

All Articles