在phonegap中为苹果推送通知



我正在使用phonegap实现iphone应用程序。我使用城市飞艇作为推送通知。推送通知工作得很好,唯一的bug是通知的标题是"index.html"。有人知道如何改变这个默认标题吗?

不要使用标准的alert(),而是使用Phonegap API中的alert函数:

navigator.notification.alert(message, alertCallback, [title], [buttonName])

在你的例子中,应该是这样的:

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

最新更新