Skip to content

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

Description

@benishak

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/

Activity

  1. FridaySG commented on Oct 1, 2016

    @FridaySG

    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.

  2. benishak commented on Oct 1, 2016

    @benishak
    ContributorAuthor

    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.

  3. benishak commented on Oct 1, 2016

    @benishak
    ContributorAuthor

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

  4. benishak commented on Oct 4, 2016

    @benishak
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions