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 alert option "subtitle"? #51

Open
Katyushka opened this issue Dec 8, 2018 · 2 comments
Open

How to set alert option "subtitle"? #51

Katyushka opened this issue Dec 8, 2018 · 2 comments

Comments

@Katyushka
Copy link

Hi.
Is it possible to create notification with such alert format:

"alert":
{ "body": "Body..",
"title": "Title..",
"subtitle": "Subtitle.."
}

In notification Builder there are only two methods for alert - alertBody(...) and alertTitle(...). But what about other keys for alert? Is it possible to use others alert's keys?

@JamieGHamilton
Copy link

Some of the other keys are: "action-loc-key", "loc-key", "loc-args" See Apple Docs.
In my case I needed "alert" to be a string as my existing app depends on that structure so I override the Notification class.

@krutarth-ta
Copy link

@Katyushka @JamieGHamilton were you able to figure out solution regarding how we can send extra details in alert payload?

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

3 participants