Skip to main content

Module: hooks/useSCMobileNativePushMessaging

Functions

useSCMobileNativePushMessaging

useSCMobileNativePushMessaging(): Object

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>

Returns

Object

NameType
mnpmInstanceSCDeviceType
setMnpmInstanceDispatch<SetStateAction<SCDeviceType>>

Defined in

packages/react-core/src/hooks/useSCMobileNativePushMessaging.ts:36