commit | 1215509c58f6568e06aa6707e389f877513824f8 | [log] [tgz] |
---|---|---|
author | sgrebnov <v-segreb@microsoft.com> | Mon Dec 15 17:52:27 2014 +0300 |
committer | sgrebnov <v-segreb@microsoft.com> | Mon Dec 15 17:52:27 2014 +0300 |
tree | 7dcd973e3bfb0fc421e15503078fe8e5ae85e6ff | |
parent | 6bb3fc38a4d67cf378e1b11839c4af327ebfccd5 [diff] |
CB-8139 WP8. Fix callback for plugins with native ui (capture, contactPicker, BarcodeScanner, other) Unload event could not be used to detect when CordovaView is not used anymore. For example, this event is triggered when we execute command that shows some native elements on new page and then we return back. In this case Unloaded event is called but, but control state is preserved and we should continue to use that Cordova view instance. This commit changes the following: 1. Allows command instances to be garbage collected => fixes corresponding memory leak so that NativeExecution is no more required to call DetachHandlers for each command. This fixes CB-8139. 2. Use Loaded and Unloaded events to add/remove handlers for native events; this makes it possible for GC to destroy CordovaView when it is not required anymore
This repo includes code to build Apache Cordova applications that target Windows Phone 8 SDK.
An Apache Cordova based applications is, at the core, an application written with web technology: HTML, CSS and JavaScript.
Apache Cordova is a project at The Apache Software Foundation (ASF).
>.\wp8\bin\create PathToNewProject [ PackageName ] [ AppName ] >PathToNewProject : The path to where you wish to create the project >PackageName : The namespace for the project (default is Cordova.Example) >AppName : The name of the application (default is CordovaWP8AppProj) >example: >.\wp8\bin\create C:\Users\anonymous\Desktop\MyWP8Proj io.cordova.example CordovaWP8App From here you can open it in Visual Studio: - Launch Visual Studio and open Solution file (.sln) in (C:\Users\anonymous\Desktop\MyWP8Proj) - Built and Run it Or, you can continue with the command line: - >cd C:\Users\anonymous\Desktop\MyWP8Proj >cordova\run