feat(grpc): support category, alert and badge for ios. (#321)

This commit is contained in:
Bo-Yi Wu
2018-01-02 15:53:15 +08:00
committed by GitHub
parent a89d00c934
commit 8faae762fe
7 changed files with 751 additions and 31 deletions

View File

@@ -26,6 +26,13 @@ func main() {
Platform: 2,
Tokens: []string{"1234567890"},
Message: "test message",
Badge: 1,
Category: "test",
Alert: &proto.NotificationRequest_Alert{
Title: "Test Title",
Body: "Test Alert Body",
Subtitle: "Test Alert Sub Title",
},
})
if err != nil {
log.Fatalf("could not greet: %v", err)