0
I've upgraded the plugin to latest commits from GitHub
Just still not able to include it in the project <br/>
Just two questions <br/>
  1. How to add it to config.xml correctly (if below is correct)
<feature name="ChildBrowser">
><param name="ios-package" value="ChildBrowserCommand" />
</feature>
  1. Any other things I should keep in mind.
Ecko123
  • 308
  • 1
  • 4
  • 16

2 Answers2

0

I got ChildBrowser plugin to work with Phonegap 2.9 by following steps according to this thread. ios phonegap Child Browser plugin setup.

PS. Your "feature" setup in the config.xml is correct.

Community
  • 1
  • 1
0
<feature name="ChildBrowserCommand">
    <param name="ios-package" value="ChildBrowserCommand" />
</feature>

Do remember to get the latest plugin code , since phonegap has changed the way parameters are passed to native .m file For ex :

- (void)showWebPage:(CDVInvokedUrlCommand*)command 

and in .h file

@property (nonatomic, strong) ChildBrowserViewController* childBrowser;

-(void)showWebPage:(CDVInvokedUrlCommand*)command;
Ecko123
  • 308
  • 1
  • 4
  • 16
  • Do you have still the link for the latest plugin? I'm also stuck of this build error for `ChildBrowser` plugin. I followed this link: https://github.com/andreassolberg/jso/blob/master/README-Phonegap.md but it seems not updated. When I try to build in xcode, I got this error: `Property 'supportedOrientations' not found on object of type 'CDVViewController *'` – JunM Dec 03 '13 at 09:04
  • Which phonegap version you are using – Ecko123 Dec 03 '13 at 14:11
  • I'm using phonegap 2.9. Anyway, I started implementing now using the `InAppBrowser`, hopefully I don't have any issues consuming an OAUTH2 api using this plugin. I am not really sure if `ChildBrowser` is deprecated or it is still effective for accessing protected resource for hybrid apps. – JunM Dec 04 '13 at 00:25