Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("must have registerForPushNotifications function", () => {
OneSignal.registerForPushNotifications();
});
it('must have registerForPushNotifications function', () => {
OneSignal.registerForPushNotifications();
});
invokeAuthRedirect(url) {
let split = url.split('payload=');
if (split.length === 2) {
OneSignal.registerForPushNotifications();
this._Manager.handleAuthPayload(decodeURIComponent(split[1]));
this.checkAuthStatus();
}
}
_onNavigationStateChange(event) {
onPress={() => {
stats.userTurnedOnNotifications();
if (Platform.OS === "ios") {
OneSignal.registerForPushNotifications();
}
OneSignal.setSubscription(true);
onContinue();
}}
/>
onPress={() => {
userTurnedOnNotifications();
if (Platform.OS === "ios") {
OneSignal.registerForPushNotifications();
}
OneSignal.setSubscription(true);
this.onContinue();
}}
/>
onPress={() => {
if (Platform.OS === "ios") {
OneSignal.registerForPushNotifications();
}
OneSignal.setSubscription(true);
this.setState({
areNotificationsOn: true,
});
stats.userTurnedOnNotifications();
}}
/>