簡體   English   中英

科爾多瓦1.8.1升級到科爾多瓦3.6.3導致問題

[英]upgrade of cordova 1.8.1 to cordova 3.6.3 causing issues

我有一個示例應用程序,並將該應用程序的cordova庫從1.8.1升級到了3.6.3,現在當我單擊該應用程序的登出按鈕時,它什么也沒做。 這是我單擊“注銷”時從日志中找到的內容

登錄3.6.3

10-02 10:39:39.897: D/com.abc.company.net.DefaultHttpConnect(622): (POST Url)https://cola.myserver.com:9486/sso/SSOServlet
10-02 10:39:39.977: D/CordovaActivity(622): Paused the application!
10-02 10:39:39.977: D/CordovaWebView(622): Handle the pause
10-02 10:39:39.977: D/CordovaActivity(622): Resuming the App
10-02 10:39:50.707: W/IdleConnectionHandler(622): Removing a connection that never existed!

這就是我從Log for 1.8.1中找到的

10-02 10:12:38.002: D/com.abc.company.net.DefaultHttpConnect(622): (POST Url)https://cola.myserver.com:9486/sso/SSOServlet
10-02 10:12:38.042: D/DroidGap(622): DroidGap.startActivityForResult(intent,-1)
10-02 10:12:38.112: D/DroidGap(622): Origin to allow: http://127.0.0.1*

沒人知道為什么它沒有在cordova3.6.3中調用startActivityForResult還是我的庫中缺少任何內容?

通過從android清單文件中刪除android:launchMode="singleTop"行,可以解決此問題。 什么是launchMode以及應如何使用? 此處提供更多說明http://www.intridea.com/blog/2011/6/16/android-understanding-activity-launchmode

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM