Cordova 2.1.0を使用していて、ステータスバーに通知を追加しようとしています。
関連するjavaファイルとjsスクリプトをプロジェクトに含め、config.xmlに次の行を追加しました
<plugin name="StatusBarNotification" value="com.phonegap.plugins.statusBarNotification.StatusBarNotification"/>
私のhtmlコードでは、headタグに次の行を追加しました
<script src="cordova-2.1.0.js"/>
<script src="statusbarnotification.js"/>
コンテンツdivページの下部に、次のスクリプトを追加しました
<script>
window.plugins.statusBarNotification.notify("Message Header", "Message details");
</script>
ただし、Android 4.0のエミュレーターで実行すると、エラーが発生します。
Uncaught TypeError:未定義のプロパティ'statusBarNotification'を読み取れません
誰かが以前にこの問題に遭遇したことがありますか?