Uncaught TypeError: Cannot read property 'OneSignal' of undefined\", source: file:///android_asset/www/js/app

跟風遠走 提交于 2019-12-05 18:20:53

The best way to initialize OneSignal is by adding the code in your controller.js file and make sure its in one of your controllers - it might be login, logout, anything.

in other words you need to add the code inside a set controller that responds to a certain action.

Cant explain it better but try that -..

Good luck

Just try installing your plugin, cross verify for it's availability in the plugins folder. Also confirm the corresponding update has been made in config.xml and fetch.json (in the plugins folder). The error usually arises in case the plugin is not installed properly.

Hope this helps... :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!