Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images not working? #143

Closed
mwagstaff opened this issue May 19, 2024 · 2 comments
Closed

Images not working? #143

mwagstaff opened this issue May 19, 2024 · 2 comments

Comments

@mwagstaff
Copy link

Probably me doing something wrong, but I can't get images working in my notifications.

I've tried quite a few different options and whilst the notifications come through just fine, the images simply don't show up. Any ideas/tips welcome.

Example code I'm using where the notification text comes through fine, but not the image:

notification.rawPayload = {
"aps": {
"alert": {
"body": "Push notification body",
"title": "Push notification title"
},
"mutable-content": 1,
category: "rich-apns"
},
"urlImageString": "https://i.imgur.com/t4WGJQx.jpg"
};

Copy link

Thanks for opening this issue!

@mwagstaff
Copy link
Author

My bad, after a lot more head scratching and googling, it seems that I need to add a Notification Service Extension to my app. Things just got a lot more complicated... but I will close this issue out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant