aim have "view pdf" button allows user view pdf on ipad.
here plugin want add cordova (phonegap).
this code on github.
so far have updated html file run scripts , same function on button click (all in body tag example):
<button id="externalpdf" onclick="app.openexternaldoc();">open pdf</button> <script type="text/javascript" src="../assets/js/index.js"></script> <script type="text/javascript" src="../assets/js/externalfileutil.js"></script> <script type="text/javascript"> console.log("initialize app"); app.initialize(); </script>
i have copied index.js , externalfileutil.js project.
i have linked 2 objective-c file plugin folder (not sure if correct)
and have edited config.xml file run plugin:
<plugins> <plugin name="externalfileutil" value="cdvexternalfileutil"/> </plugins>
it still doesn't seem work though, ideas?
thanks
the plugin needs updating use new plugin signature in order use recent versions of phonegap. js ok, objective-c needs updating.
for example, change:
- (void) openwith:(nsmutablearray*)arguments withdict:(nsmutabledictionary*)options;
to
- (void) openwith:(cdvinvokedurlcommand*)command;
Comments
Post a Comment