Debugging Cordova on Mobile - android

I'm building a HTML5 Game and deploying it to my Android phone for testing using Apache Cordova.
Is there anyway to debug my application on the device while it's running, such as seeing the JS Console?

Have you taken a look at the debug.phonegap.com?
Another way you can upload the html to a server or localhost and use it. But this only for outside the apk:
https://developers.google.com/chrome-developer-tools/docs/remote-debugging

You can also run your Cordova project via the AppGyver Steroids tooling, which gives you enhanced access to the Safari and Chrome web inspectors.

Related

Angular & Ionic Native Android App

I am building an angular ionic application.
I need to know, when exporting the application will I get a native java/android code, or will it be exported as web pages?
Hey so on the ionic website it says "...Ionic is an HTML5 mobile app development framework targeted at building hybrid mobile apps. Hybrid apps are essentially small websites running in a browser shell in an app that has access to the native platform layer. Since Ionic is an HTML5 framework, it needs a native wrapper like Cordova or PhoneGap in order to run as a native app." So Cordova
is that browser shell or container.
You can generate an apk of your project. No web pages or native code will be generated

How do I deploy an Android app with both Native and Meteor code?

I'm developing an app where the main body of the application is built in Meteor, while some of it uses services that are only available through native development. Once I'm close to deploying this on Google Play I will need to wrap up both of these sub-apps together.
Does anyone know how to do this ?
I have read how to deploy meteor apps here - https://guide.meteor.com/mobile.html
I also know that Google allows multiple APK support - https://developer.android.com/google/play/publishing/multiple-apks.html
But this is downloading different single apks for different configurations. Whereas I would like to combine both the meteor release and the native android release to work together.
Thank you.
Remember first that Meteor uses Cordova internally to wrap the (Meteor) Web App into a Hybrid App (i.e. a Native App that consists mainly of a WebView and a local server that serves your Web App directly from the mobile device).
You have plenty Meteor and Cordova tutorials and resources that explain how to build the Hybrid App for Android (and iOS), for example:
https://guide.meteor.com/mobile.html
Then, remember that once the Web App is packaged as a Hybrid App, it may access more native functionalities than an actual Web App accessed through a mobile browser online, thanks to Cordova plugins that expose native functionalities through a JavaScript API.
If the services you need are already available through a Cordova plugin, then you are good to go, simply add it to your Meteor project and you can use the corresponding JS API in your code (possibly wrapping it with Meteor.isCordova check to make sure your Web App does not crash trying to access an API that will not be available while debugging on a browser).
Your Cordova plugin may even be wrapped as a Meteor Atmosphere package. The syntax to add a Meteor package or a Cordova plugin is slightly different.
If they are not available yet, then you will have to build your own Cordova plugin. You can then specify a local path when adding it into your Meteor project.

Meteor deploy android app on galaxy

I have a beginners question.
I deployed my meteor website on Galaxy. Now I want an android version of my website. I followed every step in mobile docs. Everything is working fine on windows and the app is working as expected in the emulator.
Now if I build my app for production, we need to give a host and port.
What port and host should I use so I can use the same code base as my website?
Here is My domain
I tried:
meteor build ../output --server http://heybuddy.meteorapp.com:80
But without success. Or do I see it totally wrong.
Thank you for any answers!
The host is where your server is accessible, typically the address you use to access the browser-based version of your application / website.
The port is not mandatory.

PhoneGap native app error. "Illegal access"

I am new to PhoneGap app development framework. I created a simple app which picks up user location and plots it on Google map. I am using PhoneGap desktop app, and I am able to run my app on IE and Firefox by pinging the IP. But it throws an error "Error(1): Only secure origins are allowed." when I am running in Chrome browser.
I used PhoneGap cloud build platform and created packages for Android native app. After installation, while running the app I am getting the error: "Error(1): Illegal access."
Can anyone please tell me the way to fix these issues?
Thank you.

Phonegap 5.4.1 icons and build issues

I am developing an app using phonegap 5.4.1, I found out that there is a overall new documentation for adobe phonegap. I have gone through that and I have created the app using CLI as per documentation see the link below http://docs.phonegap.com/getting-started/3-create-your-app/cli/ and it has been created successfully. While running the app I have installed "Phonegap Developer App" in my device and through this app I can run my app. Check below
http://docs.phonegap.com/getting-started/4-run-your-app/cli/
Now my enquiry is, how can I store my app in the device, as its not getting stored anywhere and if I need to send apks to other device how can I accomplish that. Need help. Thanks a lot in advance.
You need to create an apk with the CLI
cordova build android --release
This will create a debug version that can be run on developer unlocked phones.
You'll need to sign it if you intend to upload it to the Play Store: Here

Categories

Resources