Update push notification usage

This commit is contained in:
2018-02-27 13:29:47 +01:00
parent 771a222787
commit e8c2a6ff75
4 changed files with 5 additions and 8 deletions

View File

@ -16,13 +16,11 @@ func Test(ctx *aero.Context) string {
return ctx.Error(http.StatusBadRequest, "Not logged in", nil)
}
notification := &arn.Notification{
user.SendNotification(&arn.PushNotification{
Title: "Anime Notifier",
Message: "Yay, it works!",
Icon: "https://" + ctx.App.Config.Domain + "/images/brand/220.png",
}
user.SendNotification(notification)
})
return "ok"
}