Giter Club home page Giter Club logo

phonegap-plugin-wizutils's People

Contributors

aogilvie avatar frd49 avatar jrouault avatar sebalagos90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phonegap-plugin-wizutils's Issues

iOS example project causes build errors on Windows when building Android

A symlink in the CordovaLib subproject of the iOS example project causes the Android build to fail on Windows when Cordova attempts to clone the plugin repo. Here's the console output containing the build error:

Discovered plugin "phonegap-plugin-wizUtils" in config.xml. Adding it to the
project
Fetching plugin "https://github.com/Wizcorp/phonegap-plugin-wizUtils" via git clone
Repository "https://github.com/Wizcorp/phonegap-plugin-wizUtils" checked out
to git ref "master".
Error: EEXIST: file already exists, symlink 'D:\Projects\iap_app\plugins\jp.wizcorp.phonegap.plugin.wizUtilsPlugin\example\ios\CordovaLib\Cordova.framework\Versions\A' -> 'D:\Work\Projects\Walks\App\iap_app\plugins\jp.wizcorp.phonegap.plugin.wizUtilsPlugin\example\ios\CordovaLib\Cordova.framework\Versions\Current'
    at Error (native)
    at Object.fs.symlinkSync (fs.js:1054:18)
    at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:76:10)
    at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
    at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
    at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
    at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
    at G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:180:9
    at Array.forEach (native)
    at Object._cp (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:157:11)
Warning: Command failed: cordova build android --release
 Use --force to continue.

[email protected]
[email protected]
[email protected]
[email protected]
Windows 10 Pro x64

Maybe the example projects could be moved to a different repo?

Plugin is not working on iOS6 simulator, (Xcode5, Phonegap CLI 3.3.0)

Resetting plugins due to page load.
2014-02-06 11:56:43.946 CM[46248:907] THREAD WARNING: ['WizUtilsPlugin'] took '43.306152' ms. Plugin should use a background thread.
2014-02-06 11:56:43.947 CM[46248:907] Error in error callback: WizUtilsPlugin1836329244 = TypeError: 'undefined' is not a function
2014-02-06 11:56:43.981 CM[46248:907] Finished load of: file:///Users/vhitdevelopers/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/70BCF4A2-A8D6-422A-8577-C422E47D28C9/CapellaMobile.app/www/index.html

Build failure with Cordova 5.0.0

I tried to add this plugin to my Cordova application build with Cordova 5.0.0 and my failed with this

error/platforms/android/src/jp/wizcorp/phonegap/plugin/wizUtilsPlugin/WizUtilsPlugin.java:33: error: incompatible types
_webView = webView;
^
required: WebView
found: CordovaWebView

ARC forbids explicit message send of 'dealloc'

After upgrading to Xcode5 and Phonegap 3.3.0, I'm getting error below,
Plugins/jp.wizcorp.phonegap.plugin.wizUtilsPlugin/WizUtilsPlugin.m:20:12: ARC forbids explicit message send of 'dealloc'

Could you give us a more detail using method

your example just like that

wizUtils.getBundleVersion(Function success);

but the true way is like that ?

wizUtils.getBundleVersion(success, error);
function success() { ... }
function error() { ... }

I mean is how to show the "detail message" according to these way
Get App File Name、Get Bundle Version、Get Bundle Display Name、Get Bundle Identifier、Get Device Height、Get Device Width、Get Text、Set Text、Restart

window.wizUtils.getBundleVersion as variable

Trying to ge this to return as a variable in my script something like

var bundleversion = window.wizUtils.getBundleVersion(function(result){
    return result;
});

The return is not setting to the "bundleversion" variable but it shows up in console.log

Is the getBundleVersion asynchronous??

some issues feedback to you

issue 1
I use "getText" and "setText" method in Android 4.0.3 and 4.1.1

wizUtils.getText(function(result) { alert("text:" + result); }, function(result) { navigator.notification.alert("error:" + result); } );
wizUtils.setText("mytext", function(result) { alert("the text is:" + result); },  function(result) { alert("error:" + result); } );

in Android,it seem always trigger the "error",the same code in iOS is work well

issue 2
I use "restart" method in Android 4.0.3 and 4.1.1

wizUtils.restart(true)
or
wizUtils.restart(false)

in Android,it will refresh the page (maybe the index.html),but no mater I set true or false,the splashScreen will never show,the same code in iOS is work well

getBundleVersion should return VersionCode, not VersionName on android

VersionCode for Android and CFBundleVersion for iOS have the same meaning,
so are VersionName for Android and CFBundleShortVersionString for iOS.

I think the function "getBundleVersion" should return VersionCode, not VersionName for android.

Maybe it's better to offer two functions for both 'BundleVersion(versionCode)' and 'BundleShortVersionString(VersionName)'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.