Prism+Unity and OnShareTargetActivated does not call OnInitializeAsync before RRS feed

  • Question

  • Hello,
    we have written a universal app for windows store 8.1 and windows phone 8.1.
    If the app is started as a share target the method OnShareTargetActivated is called in the app.xaml.cs
    But before there is not called the OnInitializeAsync.

    In the OnInitializeAsync we register the types for unity. If we now try to process the share target request we need certain services which should be registered in unity. But because the OnInitializeAsync method was not called nothing is registered and we get an exception. Also the NavigationService and SessionStateService of prism is not yet created. Navigation to a page is therefore not possible.

    What do we wrong? Why is the OnInitializeAsync method not called before OnShareTargetActivated?

    Wednesday, May 20, 2015 3:19 PM