I am trying to install and use the ChildBrowser plugin https://github.com/phonegap/phonegap-plugins/tree/master/Android/ChildBrowser for PhoneGap and the FaceBook plugin https://github.com/phonegap/phonegap-plugins/tree/master / Android / ChildBrowser . In both cases, I ran into the same problem that calling Javascript to call plugin methods would not work. Debug output shows:
TypeError: The result of the expression 'window.plugins' [undefined] is not an object.
Is there something I can lose to enable plugins in PhoneGap?
Have you included the javascript file in your index.html? Make sure the javascript file has this -
PhoneGap.addConstructor(function() { PhoneGap.addPlugin("childBrowser", new ChildBrowser()); });
https://github.com/phonegap/phonegap-plugins/issues/697 says:
"The addPlugin / addConstructor methods have been reset to 2.0.0. Take a look at the ChildBrowser, TTS or VideoPlayer plugin to learn how to change js code.
Source: https://habr.com/ru/post/1344698/More articles:"System.MissingMethodException error was unhandled?" - c #Data cURL message to asp.net page - phpHow to handle null values ββduring binary search? - nullIs there a way to use ctrl-d as a direct delete in Scala REPL? - scalaPHP: Application Framework Question (up for discussion) - phpFacebook requestwithgraphpath error> facebookErrDomain Code = 10000 "Operation could not be completed. (FacebookErrDomain error 10000.)" - iosHow to send parameters using "Download"? - javascriptnth-child (even) always selects dd, never dt (even and odd lines in dl) - htmlPyusb on Windows 7 cannot find any devices - pythonPowerShell command to replace a piece of text in a file - powershellAll Articles