I would like to find out which Chrome flags I can use in my version of Electron. In Chrome I can just go to chrome://flags or about:flags and see a list. That does not work in Electron - it gives this error:
Not allowed to load local resource: chrome://flags/
Is there a way around this?
Related
Does anyone know how to view console.log() from the Xcode simulator using capacitor? I am aware that you can view the system logs via iOS Simulator > Menu Bar > Debug > Open System Log (How can I get the console logs from the iOS Simulator?), but this does not show any of the console.logs when using capacitor to run an ios application.
I couldn't get the Ionic instructions to give any output via Safari's dev tools.
However, Capacitor's solution is its built-in Console API https://capacitorjs.com/docs/v2/apis/console
The Console API automatically sends console.debug, console.error,
console.info, console.log, console.trace and console.warn calls to the
native log system on each respective platform. This enables, for
example, console.log calls to be rendered in the Xcode and Android
Studio log windows.
I was able to see the logs in Xcode's logging as long as the build isnt broken in some way.
I am not able to see one of the Chrome browser flag - "Enable Silent Debugging" in latest updated Chrome browser. Please let me know if this flag has been changed to something else.
This flag got removed after version 79. You can still activate it using command option chrome.exe --silent-debugger-extension-api
chrome.exe --silent-debugger-extension-api
For macOS users,
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --silent-debugger-extension-api
I have an ionic cordova app, on ios platform , i want to open some links in edge browser rather than the inappbrowser or the default browser.
i have gone through a number of articles, and have tried a lot of things but nothing seems to work for me.
I have also made changes in info.plist of project and added the urlschema. the code i'm using to open link is mentioned below
:
const browser = window.open('microsoft-edge:'+ 'https://google.com' ,'_blank');
But you could try the following
https://github.com/apache/cordova-plugin-inappbrowser/releases
OSX Quirk
At the moment the only supported target in OSX is _system.
So if device system browser set to edge
I am trying to debug an application written in Ionic 2 (Angular 2) on device via Safari remote dev tools. When the app is open and I connect the iphone to the Mac it shows up under Safari > Develop menu, but as soon as I connect to it (and the dev tools do show up) it disappears from the Safari > Develop menu and in the just opened dev tools I am unable to execute anything in the console nor expand any node in the Elements panel.
When I unplug and replug the device it shows up in Safari > Develop again but the devtools window is gone, and as soon as I open it up again... Same thing.
Any help?
You wouldn't believe what solved the issue....
Running Safari.app through terminal by executing /Applications/Safari.app/Contents/MacOS/Safari it opened up Safari as usual, but for some strange reason it didn't disconnect my device when connecting to it via remote dev tools.
I finally managed to get it working in two steps :
First I used to get some debugging console working using ios-webkit-debug-proxy on a linux machine (https://github.com/google/ios-webkit-debug-proxy) (You need to compile from sources including tools from libimobiledevice to get it working with iOS >= 10)
Then it helped me to notice I had many errors like Refused to load the script 'http://xxxxx' because it violates the following Content Security Policy directive: "connect-src ... that where not occurring while remote debugging with android and chrome. Fixed them by adding the appropriates rules in the <meta http-equiv="Content-Security-Policy" content="..." line in index.html . Don't know exactly which one fixed it but is suspect connect-src wss://s-usc1c-nss-128.firebaseio.com http://my_local_ip:4200 https://maps.googleapis.com ws://*; did the trick
I've installed the console.log plugin "$ cordova plugin add org.apache.cordova.console" to my phonegap 3.0 project.
When I do console.log("xxx") in xcode, it work fine without any problem / error.
However when I test it in a web browser. The error "http:localhost/!gap_exec 404 NOT FOUND" appeared in the web browser console. When I comment out the console.log("xxx"), this error is disappear.
I just wonder whether it is really work fine in xcode. coz sometime xcode won't display javascript error.
Is there any debug tools for develop phonegap apps for ios / android?
Any cordova(phonegap) plugins is not for the web browser. when we install the console plugins it works on actual device because deviceready event fires but in case of web browser deviceready does not fire thus plugins are not working so, if you are doing so then please remove cordova.js file from your html and try in web-browser. but when you are ready with device include that file it is mandatory.
http:localhost/!gap_exec 404 NOT FOUND errors simply means that cordova(phonegap) does not find the actual device environment.