Back to All

JSBridge is not defined at addCommand

After integrating the GoNativeJSBridgeLibrary file into my project and attempting to utilize its available methods, I encountered an issue. The problem arises when calling the addCommand function, specifically in the last line where JSBridge.postMessage(data) is written. The error states that JSBridge is not defined. I am unsure what JSBridge refers to and whether it is a separate library that needs to be added or installed. I am wondering what step or point I might have missed in the process.

getting the following error.

gonative.js:83 Uncaught (in promise) ReferenceError: JSBridge is not defined at addCommand (gonative.js:83:3) at gonative.js:20:4