File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
src/@ionic-native/plugins/push Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -188,10 +188,25 @@ export interface AndroidPushOptions {
188
188
topics ?: string [ ] ;
189
189
}
190
190
191
+ export interface BrowserPushOptions {
192
+ /**
193
+ * Optional. Your GCM API key if you are using VAPID keys.
194
+ */
195
+ applicationServerKey ?: string ;
196
+
197
+ /**
198
+ * URL for the push server you want to use.
199
+ * Default: http://push.api.phonegap.com/v1/push Optional.
200
+ */
201
+ pushServiceURL ?: string ;
202
+
203
+ }
204
+
191
205
export interface PushOptions {
192
206
ios ?: IOSPushOptions ;
193
207
android ?: AndroidPushOptions ;
194
208
windows ?: any ;
209
+ browser ?: BrowserPushOptions ;
195
210
}
196
211
197
212
export type PushEvent = 'registration' | 'error' | 'notification' ;
@@ -237,7 +252,10 @@ export type PushEvent = 'registration' | 'error' | 'notification';
237
252
* badge: true,
238
253
* sound: 'false'
239
254
* },
240
- * windows: {}
255
+ * windows: {},
256
+ * browser: {
257
+ * pushServiceURL: 'http://push.api.phonegap.com/v1/push'
258
+ * }
241
259
* };
242
260
*
243
261
* const pushObject: PushObject = this.push.init(options);
@@ -257,6 +275,7 @@ export type PushEvent = 'registration' | 'error' | 'notification';
257
275
* NotificationEventAdditionalData
258
276
* IOSPushOptions
259
277
* AndroidPushOptions
278
+ * BrowserPushOptions
260
279
* PushOptions
261
280
*/
262
281
@Plugin ( {
You can’t perform that action at this time.
0 commit comments