我是Cordova和Phonegap的新手,我正在尝试开发一个提醒应用程序。我使用了cordova-plugin-local-notifications(https://github.com/katzer/cordova-plugin-local-notifications)。 我使用安装命令
安装了插件cordova插件添加https://github.com/katzer/cordova-plugin-local-notification
然后我尝试在浏览器上运行该应用程序,浏览器控制台出错:
错误:找不到:: LocalNotification :: deviceready
的exec代理
不确定我做错了什么。
问题:
提前致谢,抱歉我的英语不好。
答案 0 :(得分:3)
The plugin is simply not supported on the browser platform.
See the docs as of 10th of April, 2017:
Supported Platforms
The current 0.8 branch supports the following platforms:
- iOS (>= 8)
- Android (SDK >=7)
- Windows 8.1 (added with v0.8.2)
- Windows Phone 8.1 (added with v0.8.2)
- Windows 10 (added with v0.8.3)
Your browser console states that it can not execute the plugin, since it supports only the mobile OS stated above.
答案 1 :(得分:-1)