allada / LineaDevice

Linea Pro Device plugin for phonegap (ios / iphone / ipad)
http://webinterface.allada.com/
Apache License 2.0
6 stars 10 forks source link

error in END_ARGCHECKWRAPPER #6

Closed dhavaln closed 8 years ago

dhavaln commented 8 years ago
#define END_ARGCHECKWRAPPER \
        pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsArray:returnArgs]; \
        javaScript = [pluginResult toSuccessCallbackString:localCallbackId]; \
    } @catch (id exception){ \
        pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_JSON_EXCEPTION messageAsString:[exception reason]]; \
        javaScript = [pluginResult toErrorCallbackString:localCallbackId]; \
    } \
    [self writeJavascript:[NSString stringWithFormat:@"window.setTimeout(function(){%@;},0);", javaScript]];

I am getting Expected Expression while calling the above function. It works fine with Cordova iOS 3.8 but fails with Cordova iOS 4.1.1.