Fixed #67 Support iOS apns-topic flag.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-04-28 14:39:34 +08:00
parent 007c17af2e
commit 479ec7fa5c
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ func main() {
android := flag.Bool("android", false, "send android notification")
ios := flag.Bool("ios", false, "send ios notification")
production := flag.Bool("production", false, "production mode in iOS")
topic := flag.String("topic", "", "apns topic in iOS")
flag.Parse()
@ -104,6 +105,10 @@ func main() {
Message: *message,
}
if *topic != "" {
req.Topic = *topic
}
err := gorush.CheckMessage(req)
if err != nil {