Skip to main content

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

MemberType
mnpmInstanceSCDeviceType
setMnpmInstanceDispatch<SetStateAction<SCDeviceType>>

Source

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