ionic 2 error cordova not available

后端 未结 5 1951
Happy的楠姐
Happy的楠姐 2020-12-03 02:57

I am trying to use the cordova GooglePlus plugin in a new ionic 2 project (latest ionic2 version) but I always run into errors regarding cordova. The plugin is properly inst

5条回答
  •  情书的邮戳
    2020-12-03 03:04

    Using ionic serve disables all the cordova plugins, because it is not running on a device.

    Rather use ionic cordova run android This will start an android emulator that should allow all the cordova plugins to function

    I have also come across the second approach, but the syntax then has to be windows['plugins'].googleplus.login(...)

提交回复
热议问题