INNER CODE UNIT · TypeScript
logout
OneSignal/react-native-onesignal · src/index.ts:132
export function logout() {
if (!isNativeModuleLoaded(RNOneSignal)) return;
RNOneSignal.logout();
}
/** For GDPR users, your application should call this method before setting the App ID. */
export function setConsentRequired(required: boolean) {
if (!isNativeModuleLoaded(RNOneSignal)) return;
RNOneSignal.setPrivacyConsentRequired(required);
}
/**
* If your application is set to require the user's privacy consent, you can provide this consent using this method.
* Indicates whether privacy consent has been granted. This field is only relevant when the application has opted
* into data privacy protections.
*/