cordova - Plugin preferences in config.xml -
i'm developing plugin cordova , need let user store settings somewhere after installing plugin. thought best place config.xml file. there core plugins (like statusbar). ok on ios not find way access values of config.xml file android native code.
all have in andorid native code access static config instance return nothing config values.
on ios possible access value of key inside config file done here: https://github.com/apache/cordova-plugin-statusbar/blob/master/src/ios/cdvstatusbar.m#l77
which accesses dictionary populated values of config file here: https://github.com/apache/cordova-ios/blob/master/cordovalib/classes/cdvviewcontroller.m#l36
is there way access same data on android too?
so found solution. on android of preferences tags added extras intent, can data intent this:
cordova.getactivity().getintent().getstringextra("name-of-preference-tag");
Comments
Post a Comment