Skip to content

[Feature Request] iOS 10 Push Notification allow to attach image #2807

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

Closed
benishak opened this issue Sep 30, 2016 · 4 comments
Closed

[Feature Request] iOS 10 Push Notification allow to attach image #2807

benishak opened this issue Sep 30, 2016 · 4 comments

Comments

@benishak
Copy link
Contributor

now we can only modify the alert attribute

{
    "aps": { 
      "alert": { 
        "title": "Pusher's Native Push Notifications API", 
        "subtitle": "Bringing you iOS 10 support!", 
        "body": "Now add more content to your Push Notifications!"
        }, 
        "mutable-content": 1,
        "category": "pusher"
      },
    "data": {
      "attachment-url": "https://pusher.com/static_logos/320x320.png"
    }
}

will be nice to modify the data attribute to include image or video ...

check this out
https://blog.pusher.com/how-to-send-ios-10-notifications-using-the-push-notifications-api/

@FridaySG
Copy link

FridaySG commented Oct 1, 2016

This would have to a feature added via the iOS SDK would it not? And even then, you could just accept the data and generate a rich notification locally within the application itself (without modifying the SDK).

Correct me if I'm wrong, but if all it does is generate the rich notification by loading the media from the "attachment-url" key, then technically it's possible with the Parse-Server/Local SDK's as is.

@benishak
Copy link
Contributor Author

benishak commented Oct 1, 2016

how can I add the data attribute? because we send push from server using NodeJS SDK with Parse.Push.send which allow us to pass the alert object or anything under aps.

@benishak
Copy link
Contributor Author

benishak commented Oct 1, 2016

I actually had to open this in the SDK repo not here. sorry my mistake

@benishak
Copy link
Contributor Author

benishak commented Oct 4, 2016

i think no change is required at all, the client must handle by pulling the attached image or video, this can be done easily

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

2 participants