Phonegap 3.0.0: BarcodeScanner Plugin

前端 未结 5 1185
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-08 08:39

currently I\'m trying to install the BarcodeScanner Plugin for Phonegap Version 3.0.0. I can\'t find any working documentation on how to install it correctly an

5条回答
  •  余生分开走
    2020-12-08 09:21

    i think,the documentation has a mistake.

    Change the "Class' from NSObject to PGbcsViewController

    After you add the .h,.cpp and .mm files to the project; if you search for 'PGbcsViewController' ,you can't find anything . (at least mine version of barcode plugin.) I corrected it as 'CDVbcsViewController' and i am using barcode scanner plugin without problem at ios,too.

    So parent class of view is important. You should check that.

提交回复
热议问题