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

How to set title for iOS 10 in pushd? #160

Open
alirezastack opened this issue Oct 24, 2017 · 0 comments
Open

How to set title for iOS 10 in pushd? #160

alirezastack opened this issue Oct 24, 2017 · 0 comments

Comments

@alirezastack
Copy link

In Apple iOS documentation it is mentioned that:

alert
string or dictionary

If this property is included, the system displays a standard alert or a banner, based on the user’s setting.
You can specify a string or a dictionary as the value of alert. If you specify a string, it becomes the message text of an alert with two buttons: Close and View. If the user taps View, the app launches. If you specify a dictionary, refer to Table 5-2 for descriptions of the keys of this dictionary.

title
string

A short string describing the purpose of the notification. Apple Watch displays this string as part of the notification interface. This string is displayed only briefly and should be crafted so that it can be understood quickly. This key was added in iOS 8.2.

body
string

The text of the alert message.

Now I want to set title for the push notification to be shown on iOS, I have sent the below payload:


{'data.project': {u'ack': 0,
              u'c': {u'id': u'SOME DATA'},
              u'ca': 1,
              u't': u'e/user',
              u'v': u'1',
              u'vm': 2},
 'msg': 'My message',
 'title': 'My custom title'}

The push is sent but no title is set on the mobile device. Does pushd support it? What should I do?

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