Skip to content

Commit

Permalink
Start application when activated by ToastActivation (#5850)
Browse files Browse the repository at this point in the history
* Start application when activated by ToastActivation

* Change files

* Start application for all ActivationKinds
  • Loading branch information
ryfow authored Aug 27, 2020
1 parent 63d3ac7 commit d3114e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "prerelease",
"comment": "Launch application for all ActivationKinds",
"packageName": "react-native-windows",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-08-27T13:37:21.576Z"
}
2 changes: 1 addition & 1 deletion vnext/Microsoft.ReactNative/ReactApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ void ReactApplication::OnActivated(Windows::ApplicationModel::Activation::IActiv
if (e.Kind() == Windows::ApplicationModel::Activation::ActivationKind::Protocol) {
auto protocolActivatedEventArgs{e.as<Windows::ApplicationModel::Activation::ProtocolActivatedEventArgs>()};
react::uwp::LinkingManagerModule::OpenUri(protocolActivatedEventArgs.Uri());
this->OnCreate(e);
}
this->OnCreate(e);
}

void ReactApplication::OnLaunched(activation::LaunchActivatedEventArgs const &e_) {
Expand Down

0 comments on commit d3114e0

Please sign in to comment.