Skip to content

Silent Auth in BroadcastReceiver? #180

@Finni123

Description

@Finni123

Is it possible to get an auth token via normal login, store that in a shared preference and use it to access the API in a BroadcastReceiver without having to call a login activity? I need to use the api repeatedly in the background and I want to use the AlarmManager for that, but I haven't found a way to access the api from a BroadcastReceiver without having to show the login activity.

I think that's what's happening in the sample-search project, but I actually don't really get that.

I would appreciate it if someone could tell me if this is possible or not, and if so, how?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions