UWP Share - OnShareTargetActivated

Hi,
I'm developing a UWP,Android,IOS Forms app and now i'm setting up Share input of my app PCL.
in UWP i have 2 kind of link:
1.Open With my app
2.Share with my app

Option 1 is performed by method OnFileActivated
Option 2 is performed by method OnShareTargetActivated

in 1 (OnFileActivated) i can InitForm is the common way:
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame == null)
{ Xamarin.Forms.Forms.Init(e));
}
and so on... All is OK

in 2(OnShareTargetActivated) instead i got an Exception while initializing Forms

System.Runtime.InteropServices.COMException: '
Cannot find a resource with the given key: RootContainerStyle.'

Is there a solution? can i init Forms and so use shared pages?
Anyone already develop share in?

Thank you

Tagged:
Sign In or Register to comment.