테스트 앱을 만들었고 토스트 알림을 통해 앱을 시작할 수는 있지만 실제 앱에서는 작동하지 않습니다. ???토스트 알림에서 활성화하면 실행시 앱 충돌이 발생합니다.
내 메인 페이지에는 2 개의 프레임이있는 페이지로 이동하는 프레임이 있습니다. Toast Notification (토스트 알림)을 클릭하면 두 번째 프레임에 특정 페이지가로드되기를 원합니다.
여기에 그냥 벌금 OnActivated에서 작동하는 내 OnLaunched 코드
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Load state from previously suspended application
}
// Place the frame in the current Window
Window.Current.Content = rootFrame;
}
// Otherwise an action is provided
if (e.Arguments != "")
{
rootFrame.Navigate(typeof(MainPage));
FramePage.Instance.setSecondFrame("Email");
}
else
{
if (rootFrame.Content == null)
rootFrame.Navigate(typeof(MainPage));
}
// Ensure the current window is active
Window.Current.Activate();
입니다. 어떤 아이디어?
Microsoft에 문의 해보십시오. 때로는 휴대 전화와 Windows PC에서 모두 자신의 앱과 관련하여 문제가 있었기 때문에 문의하십시오. –