0

I need to know, in the Application context, what launched my app (specifically, was it a natural launch -click on icon-, was it launched by a third partie app or through deep link, or was it from a Firebase push). Is there a way to know that ?

Laetan
  • 879
  • 9
  • 26

1 Answers1

1

Is there a way to know that ?

No.

I need to know, in the Application context, what launched my app

Then IMHO you have put too much in the Application context. You are going to need to find some way of pushing the scenario-dependent logic into appropriate scenario-dependent entry points.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Well, I am creating an SDK and I wanted to initialize it in the Application class (as I seen other SDK do), but I think i'll do it in the launcher activity if I can't. – Laetan Oct 27 '16 at 15:07