Repository: cordova-plugin-device-motion Updated Branches: refs/heads/master 742612271 -> 90ef274ea
Returning an OK PluginResult.Status when starting If a status of `No_Result` is returned the plugin will not work when using `navigator.accelerometer.watchAcceleration` on Windows Phone 8 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/e3530746 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/e3530746 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/e3530746 Branch: refs/heads/master Commit: e3530746c66f65c6533da9c7f8e4d72a914d8f38 Parents: 67f508d Author: John Kalberer <[email protected]> Authored: Mon Feb 2 21:45:59 2015 -0800 Committer: John Kalberer <[email protected]> Committed: Mon Feb 2 21:45:59 2015 -0800 ---------------------------------------------------------------------- src/wp/Accelerometer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/e3530746/src/wp/Accelerometer.cs ---------------------------------------------------------------------- diff --git a/src/wp/Accelerometer.cs b/src/wp/Accelerometer.cs index cba911c..005e4c3 100644 --- a/src/wp/Accelerometer.cs +++ b/src/wp/Accelerometer.cs @@ -147,7 +147,7 @@ namespace WPCordovaClassLib.Cordova.Commands DispatchCommandResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, ErrorFailedToStart)); return; } - PluginResult result = new PluginResult(PluginResult.Status.NO_RESULT); + PluginResult result = new PluginResult(PluginResult.Status.OK); result.KeepCallback = true; DispatchCommandResult(result); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
