How to write logs in Phonegap App Development? - android

I have developed my app in phonegap. I need to generate log due to some issue. How can I generate it?

If you mean log for debug, just use console.log(<your text>) and open developer tools / Web inspector to see it. Also can be viewed in LogCat

Related

Where .net maui app creates log files? From where and how we can access it?

I have noticed that we do not have access to logging in Maui and need a solution to be able to get to logs within our Maui app.
So here what I'm looking is from where we can access the log files in .Net Maui apps?
I have tried to print the path of log file but that did not helped me. So,want to know by default where maui stores the log files for Android & iOS?
I believe MAUI does not log any logs. You can add your log using .NET tools. There is also a video of Gerald versus the logs:
https://www.youtube.com/watch?v=WicmnH72kf0&t=851s
https://github.com/roubachof/MetroLog

How can I get crash report of Flutter Windows Application

Is there any way to get a crash report of a flutter desktop application that is running on the client's system?
try open event viewer software then see if it show any error that is related to your desktop app.

Remote Debugging can't be remove from Ionic App after Release on Play Store

I am using Ionic to build hybrid application.I already made my publishing version and upload on Play store. But when I inspect that app after downloaded from playstore it show all the code of that in chrome inspect so this is very big security risk.Anyone have any idea about how to resolve it?
I think the only thing you can do.. is to minfied and obfuscate your js code (and also minified your css)... for the HMTL ..one possibile solution is to put HTML teplates in angularCache (so it give you also performance boost) ..cause it's more difficulty to read... i think tehre are not other options

chrome ARC-Welder javascript console plugin not defined

I installed ARC_Welder to test run my android apps. App runs , but I was trying to get logs. I read this article : https://developer.chrome.com/apps/getstarted_arc .
Tried running -- plugin.shell('adbd') in JavaScript console (chrome://inspect/#apps) .
But i'm getting this error :
Uncaught ReferenceError: plugin is not defined
Same thing happened when tried running : plugin.shell('logcat');
I'm not a chrome javascript developer. please help me understand where i am wrong..
I just had the same issue, the instructions on the page you mentioned are correct, but not very clear.
You should:
Open your debug APK in ARC Welder and run it
Open logcat in Android Studio, (or what ever tool you normally use to view logcat).
Open Chrome and type "chrome://inspect/#apps" in the address bar
Hopefully you see your App name listed, click the 'inspect' link for your app.
In the Javascript Console that appears type "plugin.shell('adbd')" and press enter.
Now go back to Android Studio and you should see a load of log messages in the logcat, filter by your app name and hopefully you are good to go.
Are you sure you opened your apps page by clicking the "inspect" link from the "chrome://inspect/#apps" page?
The error you see suggests that you are typing it into some javascript console that isn't for an app view. The "plugin" name is only defined for use by Chrome apps and extensions, and not arbitrary web pages.

Phonegap Android, testing in browser.

I'm building a Phonegap application. I've already made the html application, and tested it in my Windows Google Chrome browser, with no errors. I've cheked it in the navigator of my Android Phone and it is working. However, after Phonegap, I see some things are not working.
Which browser is Phonegap using? Is it not the same as the Android navigator? Can I somehow debug it?
On my Eclipse console I only see errors about Vertext shaders.
Thanks
PhoneGap instantiates an Android WebView component with is not equal to the Android Browser. If your code has console.log statements you should be able to see them in LogCat tab in Eclipse.
If you want better debugging you should add WeInRe to your project for remote debugging.
You can add console.log statements, which can be seen with adb logcat in the Terminal, or with DDMS.
And how about this? What do you think?
https://chrome.google.com/webstore/detail/ripple-emulator-beta/geelfhphabnejjhdalkjhgipohgpdnoc?hl=en

Categories

Resources