Skip to content

Allow GET_UNSEEN_NOTIFICATIONS_BADGE undefined payload #176

Open
@kydorn

Description

@kydorn

In some cases in which the native implementation does not have a current value for the unseen notifications badge (when it has not checked the current value yet or it has not been set by other means), the apps will send the response with no payload.

We need the GET_UNSEEN_NOTIFICATIONS_BADGE method to support responses without payload.

Also,the exported method:
getUnseenNotificationsBadge: () => Promise<{unseenNotificationCounter: number; lastUpdated: number}>;
would need to change to something like:
getUnseenNotificationsBadge: () => Promise<{unseenNotificationCounter: number; lastUpdated: number} | void>;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions