2013-09-25 56 views
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. 如何將它添加到正確的config.xml中(如果下面是正確的)
<feature name="ChildBrowser"> 
><param name="ios-package" value="ChildBrowserCommand" /> 
</feature> 
  1. 任何其他事情,我應該牢記。
+0

爲什麼你應該使用ChildBrowser插件?是否有在應用程序瀏覽器avilable on phonegap api –

+0

當您嘗試加載URL時,應用程序瀏覽器不允許您在應用程序中進行remian。 不要急於downvote如果你canthelp – Ecko123

+0

對不起,我不能downvote你 –

回答

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

千萬記得要獲得最新的插件代碼,因爲PhoneGap的改變參數傳遞到本地.m文件 對於離的方式:

- (void)showWebPage:(CDVInvokedUrlCommand*)command 

和.h文件中

@property (nonatomic, strong) ChildBrowserViewController* childBrowser; 

-(void)showWebPage:(CDVInvokedUrlCommand*)command; 
+0

你還有最新的插件的鏈接?我也被卡住了ChildBrowser插件的這個構建錯誤。我跟着這個鏈接:https://github.com/andreassolberg/jso/blob/master/README-Phonegap.md,但似乎沒有更新。當我嘗試建立在Xcode中,我得到這個錯誤:'住宅「supportedOrientations」不是類型的對象CDVViewController *'發現' – JunM

+0

哪個版本的PhoneGap您使用 – Ecko123

+0

我使用的PhoneGap 2.9。無論如何,我現在開始使用'InAppBrowser'實現,希望我沒有任何使用這個插件使用OAuth2 api的問題。我不太確定ChildBrowser是否被棄用,或者它對於訪問混合應用程序的受保護資源仍然有效。 – JunM

相關問題