Skip to content

[Question] Get DeeplinkResult without launching activity #304

@hashlin

Description

@hashlin

I come up with a question as I'm not sure if my usecase is supported or not.

Usecase

  • If deeplink comes from within the app (i.e. deeplink navigation within same app ), launch desired activity without touching current backstack.
  • If deeplink comes from external (i.e. from social apps, notifications etc), launch desired activity with creating proper backstack.

What I looked for

I was searching for a method that return DeeplinkResult but not launching activities inside the method, so that the returned DeeplinkResult can be used for general purposes.

Example

val deeplinkResult = delegate.dispatchFrom(activity, intent) // This method returns result, but it is also launching activities internally
if (comeFromExternal) {
 startActivityWithProperTaskStack(deeplinkResult.intent)
} else {
 startActivity(deeplinkResult.intent)
}

Is there any workaround for such usecase please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions