onesignal-cordova-plugin
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -1,3 +0,3 @@ | ||
export declare type InAppMessageEventName = "click" | "willDisplay" | "didDisplay" | "willDismiss" | "didDismiss"; | ||
export declare type InAppMessageEventTypeMap = { | ||
export type InAppMessageEventName = "click" | "willDisplay" | "didDisplay" | "willDismiss" | "didDismiss"; | ||
export type InAppMessageEventTypeMap = { | ||
click: InAppMessageClickEvent; | ||
@@ -19,3 +19,3 @@ willDisplay: InAppMessageWillDisplayEvent; | ||
} | ||
export declare type InAppMessageActionUrlType = "browser" | "webview" | "replacement"; | ||
export type InAppMessageActionUrlType = "browser" | "webview" | "replacement"; | ||
export interface InAppMessageWillDisplayEvent { | ||
@@ -22,0 +22,0 @@ message: OSInAppMessage; |
import { OSNotification } from '../OSNotification'; | ||
import { NotificationWillDisplayEvent } from '../NotificationReceivedEvent'; | ||
export declare type NotificationEventName = "click" | "foregroundWillDisplay" | "permissionChange"; | ||
export declare type NotificationEventTypeMap = { | ||
export type NotificationEventName = "click" | "foregroundWillDisplay" | "permissionChange"; | ||
export type NotificationEventTypeMap = { | ||
click: NotificationClickEvent; | ||
@@ -6,0 +6,0 @@ foregroundWillDisplay: NotificationWillDisplayEvent; |
@@ -103,3 +103,3 @@ "use strict"; | ||
PushSubscription.prototype.optIn = function () { | ||
window.cordova.exec(function () { }, function () { }, "OneSignalPush", "OptInPushSubscription"); | ||
window.cordova.exec(function () { }, function () { }, "OneSignalPush", "optInPushSubscription"); | ||
}; | ||
@@ -106,0 +106,0 @@ /** |
{ | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"name": "onesignal-cordova-plugin", | ||
@@ -4,0 +4,0 @@ "cordova_name": "OneSignal Push Notifications", |
@@ -115,3 +115,3 @@ // Suppress TS warnings about window.cordova | ||
optIn(): void { | ||
window.cordova.exec(function(){}, function(){}, "OneSignalPush", "OptInPushSubscription"); | ||
window.cordova.exec(function(){}, function(){}, "OneSignalPush", "optInPushSubscription"); | ||
} | ||
@@ -118,0 +118,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
754987