ZebraDevs / DataWedge-Ionic-Demo

Demo Ionic application using Datawedge on Zebra mobile devices
Other
44 stars 21 forks source link

uncaught exception in registerBroadcastReceiver #19

Closed vinceweeks-69 closed 3 years ago

vinceweeks-69 commented 3 years ago

(window).plugins.intentShim.registerBroadcastReceiver({ ...

throws

Uncaught (in promise): TypeError: Cannot read property 'intentShim' of undefined TypeError: Cannot read property 'intentShim' of undefined

vinceweeks-69 commented 3 years ago

actually the line is (window).plugins.intentShim.registerBroadcastReceiver({

vinceweeks-69 commented 3 years ago

Sorry - my fault. I missed a step

darryncampbell commented 3 years ago

Hi Vince, yes you will need to install the https://www.npmjs.com/package/com-darryncampbell-cordova-plugin-intent plugin. If you are using Capacitor then the instructions to do this are at https://capacitorjs.com/docs/cordova/using-cordova-plugins

vinceweeks-69 commented 3 years ago

Wow - thanks for getting back to me Darryn. I have followed the Capacitor specific instructions and am no longer getting the exception. I'm still not getting any scan events though. Can I send you a snippet?  On Tuesday, January 26, 2021, 02:52:40 AM EST, Darryn notifications@github.com wrote:

Hi Vince, yes you will need to install the https://www.npmjs.com/package/com-darryncampbell-cordova-plugin-intent plugin. If you are using Capacitor then the instructions to do this are at https://capacitorjs.com/docs/cordova/using-cordova-plugins

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

darryncampbell commented 3 years ago

Sure, maybe send through Dan

vinceweeks-69 commented 3 years ago

As in Dan Silva? He asked that I go through GitHub. This is a quick one - "plugin com.darryncampbell.cordova.plugin-intent requires to add ... to AndroidManifest.xml" I get this message at build even though I've added the intent filter xml.On Tuesday, January 26, 2021, 06:53:51 AM EST, Darryn notifications@github.com wrote:

Sure, maybe send through Dan

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

darryncampbell commented 3 years ago

Sorry, I misunderstood... if you wanted to email files then please do so through Dan but if you are happy to paste in this chat then that may be easiest.

"plugin com.darryncampbell.cordova.plugin-intent requires to add ... to AndroidManifest.xml" I get this message at build even though I've added the intent filter xml

You should not need to make any changes to the manifest, what error are you seeing?

vinceweeks-69 commented 3 years ago

I talked to Dan this morning and we got it running. Thanks for you support, Darryn. On Tuesday, January 26, 2021, 08:22:55 AM EST, Darryn notifications@github.com wrote:

Sorry, I misunderstood... if you wanted to email files then please do so through Dan but if you are happy to paste in this chat then that may be easiest.

"plugin com.darryncampbell.cordova.plugin-intent requires to add ... to AndroidManifest.xml" I get this message at build even though I've added the intent filter xml

You should not need to make any changes to the manifest, what error are you seeing?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.