Notification
Extends:
Class for handling notifications.
Constructor Summary
Public Constructor | ||
public |
Creates an instance of Notification. |
Member Summary
Public Members | ||
public |
notification: * |
Method Summary
Public Methods | ||
public |
async checkPermission(): boolean 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 |
createChannel(): * Create a new channel for Android user to receive notification |
|
public |
|
|
public |
Request a device token |
|
public |
async removeToken(): * Delete device token |
Public Constructors
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
public createChannel(): * source
Create a new channel for Android user to receive notification
Return:
* |