Reference Source
public class | source

Notification

You can directly use an instance of this class. NotificationMethod

Extends:

react~Component → Notification

Class for handling notifications.

Constructor Summary

Public Constructor
public

Creates an instance of Notification.

Member Summary

Public Members
public

Method Summary

Public Methods
public

Check if user has permission to receive notification if has permission, then ask for a device token if not, rejected the request and user will not receive notification

public

Create a new channel for Android user to receive notification

public
public

async getToken(): boolean

Request a device token

public

async removeToken(): *

Delete device token

Public Constructors

public constructor() source

Creates an instance of Notification.

Public Members

public notification: * source

Public Methods

public async checkPermission(): boolean source

Check if user has permission to receive notification if has permission, then ask for a device token if not, rejected the request and user will not receive notification

Return:

boolean

public createChannel(): * source

Create a new channel for Android user to receive notification

Return:

*

public deleteNotificationArea() source

public async getToken(): boolean source

Request a device token

Return:

boolean

public async removeToken(): * source

Delete device token

Return:

*