Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Raymond Chen <[email protected]>
  • Loading branch information
jonwis and oldnewthing authored Mar 2, 2021
1 parent 252785c commit d53965d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specs/PushNotifications/PushNotifications-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,22 @@ int main()

// Do stuff to process the raw payload

// Call CompleteDeferral as good practise: Needed mainly for low power usage
// Call CompleteDeferral as good practice: Needed mainly for low power usage
pushArgs.CompleteDeferral();
}
else if (kind == ReunionActivationKind::Launch) // This indicates that the app is launching in the foreground
{
// Register an event to Intercept Push payloads
auto eventToken = details.PushReceived([](const auto&, PushReceivedEventArgs args)
{
// Call TakeDeferral to ensure that code runs in low power
// Call GetDeferral to ensure that code runs in low power
args.GetDeferral();

auto payload = args.Payload();

// Do stuff to process the raw payload

// Call CompleteDeferral as good practise: Needed mainly for low power usage
// Call CompleteDeferral as good practice: Needed mainly for low power usage
args.CompleteDeferral();
});

Expand Down

0 comments on commit d53965d

Please sign in to comment.