|
1 | 1 | 'use strict'; |
2 | 2 |
|
3 | | -// Export web by default. Other platforms have custom index.[platform].js files |
4 | | -var PushNotification = require('./dist/web/PushNotification.tsx'); |
| 3 | +var PushNotifications = { |
| 4 | + handler: null, |
| 5 | + onRegister: false, |
| 6 | + onError: false, |
| 7 | + onNotification: false, |
| 8 | + onRemoteFetch: false, |
| 9 | + isLoaded: false, |
| 10 | + hasPoppedInitialNotification: false, |
| 11 | + |
| 12 | + isPermissionsRequestPending: false, |
| 13 | + |
| 14 | + permissions: { |
| 15 | + alert: true, |
| 16 | + badge: true, |
| 17 | + sound: true |
| 18 | + } |
| 19 | +}; |
| 20 | + |
| 21 | +PushNotifications.callNative = function(name, params) { |
| 22 | + /* void */ |
| 23 | +}; |
| 24 | + |
| 25 | +PushNotifications.configure = function(options) { |
| 26 | + /* void */ |
| 27 | +}; |
| 28 | + |
| 29 | +PushNotifications.unregister = function() { |
| 30 | + /* void */ |
| 31 | +}; |
| 32 | + |
| 33 | +PushNotifications.localNotification = function(details) { |
| 34 | + /* void */ |
| 35 | +}; |
| 36 | + |
| 37 | +PushNotifications.localNotificationSchedule = function(details) { |
| 38 | + /* void */ |
| 39 | +}; |
| 40 | + |
| 41 | +PushNotifications._onRegister = function(token) { |
| 42 | + /* void */ |
| 43 | +}; |
| 44 | + |
| 45 | +PushNotifications._onRemoteFetch = function(notificationData) { |
| 46 | + /* void */ |
| 47 | +}; |
| 48 | + |
| 49 | +PushNotifications._onNotification = function(data, isFromBackground = null) { |
| 50 | + /* void */ |
| 51 | +}; |
| 52 | + |
| 53 | +PushNotifications._onPermissionResult = function() { |
| 54 | + /* void */ |
| 55 | +}; |
| 56 | + |
| 57 | +PushNotifications._requestPermissions = function() { |
| 58 | + /* void */ |
| 59 | +}; |
| 60 | + |
| 61 | +PushNotifications.requestPermissions = function() { |
| 62 | + /* void */ |
| 63 | +}; |
| 64 | + |
| 65 | +PushNotifications.presentLocalNotification = function() { |
| 66 | + /* void */ |
| 67 | +}; |
| 68 | + |
| 69 | +PushNotifications.scheduleLocalNotification = function() { |
| 70 | + /* void */ |
| 71 | +}; |
| 72 | + |
| 73 | +PushNotifications.cancelLocalNotifications = function() { |
| 74 | + /* void */ |
| 75 | +}; |
| 76 | + |
| 77 | +PushNotifications.cancelAllLocalNotifications = function() { |
| 78 | + /* void */ |
| 79 | +}; |
| 80 | + |
| 81 | +PushNotifications.setApplicationIconBadgeNumber = function() { |
| 82 | + /* void */ |
| 83 | +}; |
| 84 | + |
| 85 | +PushNotifications.getApplicationIconBadgeNumber = function() { |
| 86 | + /* void */ |
| 87 | +}; |
| 88 | + |
| 89 | +PushNotifications.popInitialNotification = function(handler) { |
| 90 | + /* void */ |
| 91 | +}; |
| 92 | + |
| 93 | +PushNotifications.abandonPermissions = function() { |
| 94 | + /* void */ |
| 95 | +}; |
5 | 96 |
|
6 | 97 | module.exports = { |
7 | 98 | PushNotification |
8 | | -} |
| 99 | +}; |
0 commit comments