Introduction
Sends a native notification to the user with the provided title and message. If the application does not yet have notification permission, we will requestNotificationPermission() thennotify() if the user granted permission; otherwise, the promise is rejected.
Parameters

Message

Title

Id

Return value
Promise that resolves with a message object. e.g. Response object{ id":0, "text":"Message", "title":"Title", "icon":"res://ic_stat_notification", "smallIcon":"res://ic_stat_notification", "priority":1 }If notification is not successful it can give the following messages:
  1. Notification permission denied
  2. Request notification permission is not supported
Code samples