Repository URL to install this package:
#import "CordovaReadConfig.h"
#import <Cordova/CDV.h>
@implementation CordovaReadConfig
- (void)readConfig:(CDVInvokedUrlCommand *)command
{
@try
{
NSDictionary *settings = self.commandDelegate.settings;
CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:settings];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
@catch (NSException *exception)
{
[self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR] callbackId:command.callbackId];
}
}
@end