Skip to content

Commit 0e08588

Browse files
authored
Merge pull request #7 from aperdec/release/0.1.3
Release/0.1.3
2 parents f6008c3 + 88634ed commit 0e08588

4 files changed

Lines changed: 117 additions & 3 deletions

File tree

index.android.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,57 @@ PushNotification._onNotification = function (data, isFromBackground = null) {
5555
PushNotification._onPermissionResult = function () {
5656
RNPushNotification._onPermissionResult();
5757
};
58+
59+
PushNotification._requestPermissions = function () {
60+
RNPushNotification._requestPermissions();
61+
};
62+
63+
PushNotification.requestPermissions = function () {
64+
RNPushNotification.requestPermissions();
65+
};
66+
67+
PushNotification.presentLocalNotification = function () {
68+
RNPushNotification.presentLocalNotification();
69+
};
70+
71+
PushNotification.scheduleLocalNotification = function () {
72+
RNPushNotification.scheduleLocalNotification();
73+
};
74+
75+
PushNotification.cancelLocalNotifications = function () {
76+
RNPushNotification.cancelLocalNotifications();
77+
};
78+
79+
PushNotification.cancelAllLocalNotifications = function () {
80+
RNPushNotification.cancelAllLocalNotifications();
81+
};
82+
83+
PushNotification.setApplicationIconBadgeNumber = function () {
84+
RNPushNotification.setApplicationIconBadgeNumber();
85+
};
86+
87+
PushNotification.getApplicationIconBadgeNumber = function () {
88+
RNPushNotification.getApplicationIconBadgeNumber();
89+
};
90+
91+
PushNotification.popInitialNotification = function (handler) {
92+
RNPushNotification.popInitialNotification();
93+
};
94+
95+
PushNotification.abandonPermissions = function () {
96+
RNPushNotification.abandonPermissions();
97+
};
98+
99+
PushNotification.checkPermissions = function () {
100+
RNPushNotification.checkPermissions();
101+
};
102+
103+
PushNotification.registerNotificationActions = function () {
104+
RNPushNotification.registerNotificationActions();
105+
};
106+
107+
PushNotification.clearAllNotifications = function () {
108+
RNPushNotification.clearAllNotifications();
109+
};
110+
111+
module.exports = PushNotification;

index.ios.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,57 @@ PushNotification._onNotification = function (data, isFromBackground = null) {
5555
PushNotification._onPermissionResult = function () {
5656
RNPushNotification._onPermissionResult();
5757
};
58+
59+
PushNotification._requestPermissions = function () {
60+
RNPushNotification._requestPermissions();
61+
};
62+
63+
PushNotification.requestPermissions = function () {
64+
RNPushNotification.requestPermissions();
65+
};
66+
67+
PushNotification.presentLocalNotification = function () {
68+
RNPushNotification.presentLocalNotification();
69+
};
70+
71+
PushNotification.scheduleLocalNotification = function () {
72+
RNPushNotification.scheduleLocalNotification();
73+
};
74+
75+
PushNotification.cancelLocalNotifications = function () {
76+
RNPushNotification.cancelLocalNotifications();
77+
};
78+
79+
PushNotification.cancelAllLocalNotifications = function () {
80+
RNPushNotification.cancelAllLocalNotifications();
81+
};
82+
83+
PushNotification.setApplicationIconBadgeNumber = function () {
84+
RNPushNotification.setApplicationIconBadgeNumber();
85+
};
86+
87+
PushNotification.getApplicationIconBadgeNumber = function () {
88+
RNPushNotification.getApplicationIconBadgeNumber();
89+
};
90+
91+
PushNotification.popInitialNotification = function (handler) {
92+
RNPushNotification.popInitialNotification();
93+
};
94+
95+
PushNotification.abandonPermissions = function () {
96+
RNPushNotification.abandonPermissions();
97+
};
98+
99+
PushNotification.checkPermissions = function () {
100+
RNPushNotification.checkPermissions();
101+
};
102+
103+
PushNotification.registerNotificationActions = function () {
104+
RNPushNotification.registerNotificationActions();
105+
};
106+
107+
PushNotification.clearAllNotifications = function () {
108+
RNPushNotification.clearAllNotifications();
109+
};
110+
111+
module.exports = PushNotification;

index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ PushNotification.abandonPermissions = function() {
9494
/* void */
9595
};
9696

97-
module.exports = {
98-
PushNotification
97+
PushNotification.registerNotificationActions = function() {
98+
/* void */
9999
};
100+
101+
PushNotification.clearAllNotifications = function() {
102+
/* void */
103+
};
104+
105+
module.exports = PushNotification;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactxp-push-notification",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Plugin for ReactXP that provides support for Push Notifications for Android and iOS",
55
"author": "Andrew Perdec <aperdec@gmail.com>",
66
"license": "MIT",

0 commit comments

Comments
 (0)