0

我正在尝试通过使用名为LINKStatusBarNotification的 Phonegap 插件在 android 模拟器设备上显示通知消息,我按照该词的说明进行操作,但是当我部署我的应用程序时,状态栏中没有显示任何内容,

让我感到困惑的是我不知道在哪里放置我的通知语法调用,即:

window.plugins.statusBarNotification.notify("Put your title here", "Put your message here");

我应该怎么做才能解决这个问题?

4

1 回答 1

5

那这个呢:

<a href="#" onclick='window.plugins.statusBarNotification.notify("Put your title here", "Put your message here");return false;'>Click me!</a>

将此代码放入您的网页中。

于 2012-02-22T21:56:05.260 回答