我正在使用HTML5,jQuery mobile,CSS和Xcode创建iPhone应用程序。我想在Google地图上显示用户当前位置。当我使用这个功能时
navigator.geolocation.getCurrentPosition
在确认提示中显示应用网址而非应用名称。
请指导我如何在提示中显示应用名称。
答案 0 :(得分:0)
它使用应用名称在ios警报中工作。
$(document).ready(function(){
$(function(){
document.addEventListener("deviceready", onDeviceReady, false);
})
function onDeviceReady() {
navigator.geolocation.getCurrentPosition(onSuccess, onError);
}
});