Image in notifications?
-
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?
-
I don't think Pythonista's
notification
module supports this. If you want to use notifications with images, you can try using the UserNotifcations.framework directly viaobjc_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.
-
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.