Function showLocalNotification

  • Show a local notification. This is a helper function that will show a notification using the native notification API. It can be used to test the different types of notifications that can be received from the distributor. The same payload that this function receives is the one that the backend will have to send to the distributor.

    Parameters

    • notification: Notification

      The notification object with all its options.

    Returns Promise<void>