in the Cordova “config.xml” • Always put a try/catch at the top-level of your plugin method. An unhandled exception in your plugin method may crash or hang the app. • Do not swallow native exceptions - always propagate the error back to the JS code via the callback context “send error plugin result”. Let the JS code decide what to do with errors, not the native code. • If you see try/catch with an “e.printStackTrace()” in your Android code, you’ve got a problem. • The Cordova plugin API allows you to pass an array of items as a plugin argument. Avoid passing bare primitives as plugin arguments and results, unless that’s all you’ll ever need. Rather than passing an array of primitives, pass a single object argument, with keyed arguments. It makes the code easier to write and maintain on the native side, and allows your plugin to be modified/ extended more easily. • Not this: [“my first arg”, 2, false, “another arg”] • This: [{ message: “my first arg”, count: 2, isSpecial: false, errorMessage: “another” }]