Hi Don, There is not a specific replacement, but using KeepCallback, you can dispatch multiple results. This may require a change in logic on the JS side.
PluginResult result = new PluginResult(PluginResult.Status.OK, DATA); result.KeepCallback = true; DispatchCommandResult(result); Cheers, Jesse @purplecabbage risingj.com On Mon, Apr 15, 2013 at 9:23 PM, Don Coleman <don.cole...@gmail.com> wrote: > BaseCommand.InvokeCustomScript is marked as obsolete in cordova-wp8. > > My plugin has native code fire a JavaScript event. On Android I do this > with plugin.webView.sendJavascript(command). On WP8, I can't access the > webView, so I use a custom script to fire the event. > > Is there a replacement for BaseCommand.InvokeCustomScript? > > If not, when is it going away? > > > https://github.com/apache/cordova-wp8/blob/master/templates/standalone/cordovalib/Commands/BaseCommand.cs#L75 > > > https://github.com/don/phonegap-nfc/blob/master/src/windows-phone-8/NfcPlugin.cs#L109 > > https://github.com/don/phonegap-nfc/blob/master/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java#L375 >