Skip to content

Defer setting up notifications until user has logged in #324

Open
@gnprice

Description

@gnprice

In my initial implementation of notifications (#122), I think for simplicity I'll have it go ahead and initialize the notifications infrastructure as soon as the app is launched: find out the registration token, and listen for incoming notification messages.

This is likely to produce an off-putting UX at onboarding time, though: it's likely to cause a permissions prompt, asking the user to give us permission to show notifications, first thing before they've had any other interaction with the app.

So we should fix it so that we instead do the setup only once the user is actually logged into a Zulip account. That means:

  • Upon launch, if there's an account they're logged into, go ahead and initialize notifications.
  • If we didn't initialize notifications upon launch, then when the user does successfully log into an account, initialize notifications then.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions