Image in notifications?
ellie_ff1493 last edited by
The notification library is really easy to use but I want to add a image as well as text to the notification. How should I go about doing this?
dgelessus last edited by
I don't think Pythonista's
notificationmodule supports this. If you want to use notifications with images, you can try using the UserNotifcations.framework directly via
objc_util. However because it's an iOS framework and not a Pythonista module, it will probably be more complicated to use - Pythonista's modules usually abstract away a lot of the complexity of the native iOS frameworks.
JonB last edited by
IIrc, it is possible to to some fancy notifications in objc, by overriding some uiapplicationdelegate methods, but only while pythonista is running. Once it restarts, any swizzles are lost, so it isnt really a viable solution.