Chrome ARC-Welder javascript console plugin not defined

I installed ARC_Welder to test the launch of applications for Android. The application works, but I tried to get the logs. I read this article: https://developer.chrome.com/apps/getstarted_arc .

I ran running - plugin.shell ('adbd') in the JavaScript console (chrome: // inspect / # apps).

But I get this error: Uncaught ReferenceError: plugin not defined

The same thing happened when trying to start: plugin.shell ('logcat');

I am not a javascript developer. please help me understand where I am going wrong.

+8
android google-chrome google-chrome-arc
source share
2 answers

I had the same problem, the instructions on the page you mentioned are correct, but not very clear.

You should:

  • Open your debugging APK in ARC Welder and run it
  • Open logcat in Android Studio (or what tool is commonly used to view logcat).
  • Open Chrome and type "chrome: // inspect / # apps" in the address bar
  • We hope that you will see your application name, click the check link for your application.
  • In the Javascript Console that appears, type "plugin.shell (" adbd ") and press enter.
  • Now go back to Android Studio, and you will see the log messages loading in the logarithm, filtering by the name of your application, and I hope you are good to go.
+7
source share

Are you sure you opened your apps page by clicking the check link on the chrome: // inspect / # apps page?

You see an error that you enter in some javascript console that is not intended for the application. The name "plugin" is defined only for use by Chrome applications and extensions, not arbitrary web pages.

+1
source share

All Articles