UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

20 lines (19 loc) 754 B
/// <reference types="react" /> import { SCDeviceType } from '@selfcommunity/types'; /** :::info This custom hook is used to manage native push notification: - register device (Android/iOS) - unregister device (Android/iOS) !important: the device is registered only if exist in the global window object (or as keys in the localstorage) the follow: - _platform: `<android-iOS>` - _notification_service: `<gcm-fcm-apns>` - _registration_id: `<registration_id>` - _device_id: `<device_id>` ::: */ export default function useSCMobileNativePushMessaging(): { mnpmInstance: SCDeviceType; setMnpmInstance: import("react").Dispatch<import("react").SetStateAction<SCDeviceType>>; };