Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
[Windows] Added a check on activation context existence (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasvarg authored and macdonst committed Aug 7, 2016
1 parent 4cd4ee0 commit 151c8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/PushPluginProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ module.exports = {
onSuccess(result, { keepCallback: true });

var context = cordova.require('cordova/platform').activationContext;
var launchArgs = context.args;
var launchArgs = context ? context.args : null;
if (launchArgs) { //If present, app launched through push notification
var result = { message: '' }; //Added to identify callback as notification type in the API
result.launchArgs = launchArgs;
result.additionalData = { coldstart: true };
onSuccess(result, { keepCallback: true });
}
}
}, function (error) {
onFail(error);
});
Expand Down

0 comments on commit 151c8cd

Please sign in to comment.