pushy-react-native
Advanced tools
Comparing version
@@ -133,2 +133,13 @@ // Type definitions for pushy-react-native | ||
/** | ||
* Android specific. | ||
* | ||
* Enables foreground service mode. The SDK will create a foreground service that | ||
* the Android OS will never terminate, which will ensure notification delivery in | ||
* the background and low memory state. | ||
* | ||
* @param toggle A boolean indicating whether foreground service mode should be enabled. | ||
*/ | ||
toggleForegroundService(enabled: boolean): void; | ||
setEnterpriseConfig(apiEndoint: string, mqttEndpoint: string): void; | ||
@@ -135,0 +146,0 @@ } |
@@ -74,2 +74,3 @@ import { Platform, AppRegistry, NativeModules, NativeEventEmitter } from 'react-native'; | ||
Pushy.setEnterpriseCertificate = () => {}; | ||
Pushy.toggleForegroundService = () => {}; | ||
Pushy.toggleDirectConnectivity = () => {}; | ||
@@ -76,0 +77,0 @@ Pushy.togglePermissionVerification = () => {}; |
{ | ||
"name": "pushy-react-native", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"description": "The official Pushy SDK for React Native apps.", | ||
@@ -5,0 +5,0 @@ "main": "lib/Pushy.js", |
230054
0.2%199
5.85%