Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone phonegap中的苹果推送通知_Iphone_Html_Cordova - Fatal编程技术网

Iphone phonegap中的苹果推送通知

Iphone phonegap中的苹果推送通知,iphone,html,cordova,Iphone,Html,Cordova,我正在使用phonegap实现一个iphone应用程序。我使用城市飞艇发送推送通知。推送通知工作正常,唯一的错误是通知的标题是index.html。有人知道如何更改此默认标题吗?不要只使用标准警报,而要使用以下列表中的警报功能: 在您的情况下,它将类似于: navigator.notification.alert(theAlertMsgVar, null, 'Your title', null); 尝试将页面标题设置为其他内容。如果我没有弄错的话,index.html来自调用JavaScrip

我正在使用phonegap实现一个iphone应用程序。我使用城市飞艇发送推送通知。推送通知工作正常,唯一的错误是通知的标题是index.html。有人知道如何更改此默认标题吗?

不要只使用标准警报,而要使用以下列表中的警报功能:

在您的情况下,它将类似于:

navigator.notification.alert(theAlertMsgVar, null, 'Your title', null);

尝试将页面标题设置为其他内容。如果我没有弄错的话,index.html来自调用JavaScript警报函数。
navigator.notification.alert(theAlertMsgVar, null, 'Your title', null);