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?
Forum Archive
Image in notifications?
ellie_ff1493
Sep 09, 2017 - 01:29
dgelessus
Sep 09, 2017 - 02:28
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 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
Sep 09, 2017 - 05:11
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.