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

request with title for ios notification sends an empty alert #146

Closed
harshpatel19 opened this issue Nov 16, 2016 · 3 comments
Closed

request with title for ios notification sends an empty alert #146

harshpatel19 opened this issue Nov 16, 2016 · 3 comments
Assignees
Labels

Comments

@harshpatel19
Copy link

harshpatel19 commented Nov 16, 2016

This request only sends an empty notification, just sound.

 "notifications": [
    {
      "tokens": ["token_a"],
      "platform": 1,
      "message": "Hello World iOS!",
      "title": "You got message"
    }
  ]

this works perfectly

 "notifications": [
    {
      "tokens": ["token_a"],
      "platform": 1,
      "message": "Hello World iOS!"
    }
  ]
@appleboy
Copy link
Owner

appleboy commented Dec 7, 2016

I will take it.

@appleboy appleboy self-assigned this Dec 7, 2016
@0xp3p3
Copy link

0xp3p3 commented Dec 24, 2016

I resolved this issue. please check it
ios notification is not working with tile. #162

appleboy added a commit that referenced this issue Dec 24, 2016
Fix #162
Fix #146

//     "aps" : {
//         "alert" : {
//             "title" : "Game Request",
//             "body" : "Bob wants to play poker",
//             "action-loc-key" : "PLAY"
//         },
//         "badge" : 5
//     },

and

//     "aps" : {
//         "alert" : "You got your emails.",
//         "badge" : 9,
//         "sound" : "bingbong.aiff"
//     },

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
@appleboy
Copy link
Owner

@harshpatel19 Please try v1.7.2 version.

You can try the following example:

https://github.com/appleboy/gorush#ios-example

  "notifications": [
    {
      "tokens": ["token_a", "token_b"],
      "platform": 1,
      "badge": 5,
      "alert": {
        "title" : "Game Request",
        "body" : "Bob wants to play poker",
        "action-loc-key" : "PLAY"
      }
    }
  ]

@appleboy appleboy added the bug label Dec 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants