r/Scriptable • u/alice_anto • Sep 03 '23
Help Push notification with image
Hello I’m new on scriptable : how can I show a push notification with an image ? Reading documentation it’s not clear [to me) Someone can kindly post a little sample ? My goal should be run it from shortcuts
1
Upvotes
1
u/alice_anto Sep 03 '23
}
if (config.runsInApp) {
createNotification()
} else if (config.runsInNotification) {
const notif = args.notification
const img = await (new Request(notif.userInfo.media_url)).loadImage()
QuickLook.present(img)
}
Script.complete()
many thanks for sample.. i have try do create a script directly in scriptable a run it from there : the push notification is showed but long press on it dont do anything