pushy-react-native
Advanced tools
Comparing version
@@ -59,22 +59,22 @@ import { Platform, AppRegistry, NativeModules, NativeEventEmitter } from 'react-native'; | ||
}; | ||
} | ||
// Android: Define placeholder method(s) for iOS-only functionality | ||
if (Platform.OS === 'android') { | ||
Pushy.setBadge = () => {}; | ||
Pushy.toggleAPNs = () => {}; | ||
Pushy.toggleInAppBanner = () => {}; | ||
Pushy.setLocalPushConnectivityConfig = () => {}; | ||
Pushy.toggleIgnorePushPermissionDenial = () => {}; | ||
} | ||
// Android: Define placeholder method(s) for iOS-only functionality | ||
if (Platform.OS === 'android') { | ||
Pushy.setBadge = () => {}; | ||
Pushy.toggleAPNs = () => {}; | ||
Pushy.toggleInAppBanner = () => {}; | ||
Pushy.setLocalPushConnectivityConfig = () => {}; | ||
Pushy.toggleIgnorePushPermissionDenial = () => {}; | ||
} | ||
// iOS: Define placeholder method(s) for Android-only functionality | ||
if (Platform.OS === 'ios') { | ||
Pushy.toggleFCM = () => {}; | ||
Pushy.setNotificationIcon = () => {}; | ||
Pushy.setHeartbeatInterval = () => {}; | ||
Pushy.setEnterpriseCertificate = () => {}; | ||
Pushy.toggleForegroundService = () => {}; | ||
Pushy.toggleDirectConnectivity = () => {}; | ||
Pushy.togglePermissionVerification = () => {}; | ||
// iOS: Define placeholder method(s) for Android-only functionality | ||
if (Platform.OS === 'ios') { | ||
Pushy.toggleFCM = () => {}; | ||
Pushy.setNotificationIcon = () => {}; | ||
Pushy.setHeartbeatInterval = () => {}; | ||
Pushy.setEnterpriseCertificate = () => {}; | ||
Pushy.toggleForegroundService = () => {}; | ||
Pushy.toggleDirectConnectivity = () => {}; | ||
Pushy.togglePermissionVerification = () => {}; | ||
} | ||
} | ||
@@ -81,0 +81,0 @@ |
{ | ||
"name": "pushy-react-native", | ||
"version": "1.0.54", | ||
"version": "1.0.55", | ||
"description": "The official Pushy SDK for React Native apps.", | ||
@@ -5,0 +5,0 @@ "main": "lib/Pushy.js", |
Sorry, the diff of this file is not supported yet
74349
0.97%747
2.05%