From 04ab774241a5ada889b956dd7534240ad796ef19 Mon Sep 17 00:00:00 2001 From: timakin Date: Tue, 4 Jul 2017 09:13:27 +0900 Subject: [PATCH] changed spec to untag the required flags --- SPEC.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SPEC.md b/SPEC.md index 357c316..bcb925e 100644 --- a/SPEC.md +++ b/SPEC.md @@ -27,6 +27,8 @@ The JSON below is the request-body example. "token" : ["xxx"], "platform" : 1, "message" : "Hello, iOS!", + "title": "Greeting", + "subtitle": "greeting", "badge" : 1, "sound" : "default", "content_available" : false, @@ -37,9 +39,7 @@ The JSON below is the request-body example. { "token" : ["yyy"], "platform" : 2, - "title": "Greeting", "message" : "Hello, Android!", - "subtitle": "greeting", "collapse_key" : "update", "delay_while_idle" : true, "time_to_live" : 10 @@ -54,9 +54,9 @@ The request-body must has the `notifications` array. There is the parameter tabl |-----------------|------------|-----------------------------------------|--------|-------|----------------| |token |string array|device tokens |o | | | |platform |int |platform(iOS,Android) |o | |1=iOS, 2=Android| -|title |string |title for notification |o | |only iOS | |message |string |message for notification |o | | | -|subtitle |string |subtitle for notification |o | |only iOS | +|title |string |title for notification |- | |only iOS | +|subtitle |string |subtitle for notification |- | |only iOS | |badge |int |badge count |- |0 |only iOS | |sound |string |sound type |- | |only iOS | |expiry |int |expiration for notification |- |0 |only iOS. |