@@ -36,7 +36,6 @@ public class IosNotification extends PlatformNotification {
3636 private static final String SOUND = "sound" ;
3737 private static final String CONTENT_AVAILABLE = "content-available" ;
3838 private static final String MUTABLE_CONTENT = "mutable-content" ;
39- private static final String SUBTITLE = "subtitle" ;
4039 private static final String CATEGORY = "category" ;
4140
4241 private static final String ALERT_VALID_BADGE = "Badge number should be 0~99999, "
@@ -50,12 +49,11 @@ public class IosNotification extends PlatformNotification {
5049 private final boolean contentAvailable ;
5150 private final String category ;
5251 private final boolean mutableContent ;
53- private final String subtitle ;
5452
5553
5654 private IosNotification (Object alert , String sound , String badge ,
5755 boolean contentAvailable , boolean soundDisabled , boolean badgeDisabled ,
58- String category , boolean mutableContent , String subtitle ,
56+ String category , boolean mutableContent ,
5957 Map <String , String > extras ,
6058 Map <String , Number > numberExtras ,
6159 Map <String , Boolean > booleanExtras ,
@@ -69,7 +67,6 @@ private IosNotification(Object alert, String sound, String badge,
6967 this .badgeDisabled = badgeDisabled ;
7068 this .category = category ;
7169 this .mutableContent = mutableContent ;
72- this .subtitle = subtitle ;
7370 }
7471
7572 public static Builder newBuilder () {
@@ -113,11 +110,7 @@ public JsonElement toJSON() {
113110 if (mutableContent ) {
114111 json .add (MUTABLE_CONTENT , new JsonPrimitive (1 ));
115112 }
116- if (null != subtitle ) {
117- json .add (SUBTITLE , new JsonPrimitive (subtitle ));
118- }
119113
120-
121114 return json ;
122115 }
123116
@@ -130,8 +123,7 @@ public static class Builder extends PlatformNotification.Builder<IosNotification
130123 private boolean badgeDisabled = false ;
131124 private String category ;
132125 private boolean mutableContent ;
133- private String subtitle ;
134-
126+
135127 protected Builder getThis () {
136128 return this ;
137129 }
@@ -202,15 +194,10 @@ public Builder setMutableContent(boolean mutableContent) {
202194 return this ;
203195 }
204196
205- public Builder setSubtitle (String subtitle ) {
206- this .subtitle = subtitle ;
207- return this ;
208- }
209-
210197
211198 public IosNotification build () {
212199 return new IosNotification (alert , sound , badge , contentAvailable ,
213- soundDisabled , badgeDisabled , category , mutableContent , subtitle ,
200+ soundDisabled , badgeDisabled , category , mutableContent ,
214201 extrasBuilder , numberExtrasBuilder , booleanExtrasBuilder , jsonExtrasBuilder );
215202 }
216203 }
0 commit comments