本文介紹了Firefox 11 和 GeoLocation 拒絕回調(diào)的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
Firefox 10.x 一切正常,但升級(jí)到 Firefox 11 時(shí)出現(xiàn)問題.
Things worked okay is Firefox 10.x but with the upgrade to Firefox 11 has thrown up a problem.
我用
navigator.geolocation.getCurrentPosition(success, failure)
但在FF11中,當(dāng)用戶通過選擇Not Now"拒絕共享位置時(shí),不會(huì)執(zhí)行失敗回調(diào).
but in FF11 the failure callback is not executed when the user denies sharing location by selecting "Not Now".
有什么建議嗎?
推薦答案
好的,所以現(xiàn)在的答案是:不可能,F(xiàn)irefox 在設(shè)計(jì)上不會(huì)觸發(fā)失敗事件.圍繞這個(gè)約束構(gòu)建您的應(yīng)用程序."
Okay, so the answer for now is: "Not possible, Firefox by design will not fire the failure event. Build your app around this constraint."
這篇關(guān)于Firefox 11 和 GeoLocation 拒絕回調(diào)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!