Android App Not Responding on Ionic Emulator - android

Upon running the Ionic Android Emulator, my application appears as expected (although very zoomed in, a separate issue). However, when I try to click a button within the app, there is no response (for example, all that appears is the app's homepage and I cannot click anything to move on to sign-in page).
I've run a template ionic app on the same emulator and it works perfectly, so there must be something wrong with my app itself. However, when I run 'ionic serve' so that the app appears in my browser, all functionality is available.
Does anyone have any suggestions of how to approach this issue? Thank you in advance.
UPDATE:
Fixed it! fixed it! i ran ionic emulate android --livereload --consolelogs --serverlogs1, which suggested that i run ionic plugin add cordova-plugin-statusbar, and it's been fixed!

Answering my own question in case others come across this issue in the future:
Run:
ionic emulate android --livereload --consolelogs --serverlogs1
Which will prompt you to run:
ionic plugin add cordova-plugin-statusbar

Related

Ionic 2 Android release app not working

I am facing a really weird problem with my APK release.
First ionic Deploy it's always undefined, it seems that is not injected.
Second, if I open and close the app several times I get a messages saying that cordova it's not loaded.
The most weird thing is that happens only with the android release, but it works perfectly with android debug.
Any help? Please? Thanks.
check your main actvity and xml are of same name and make sure that it has been declared in your manifest properly.
now 1. clean your project once
re-build your project
now generate your apk.
Guys I found the issue.
If I run this command he apk works perfectly
ionic build android --release
but if I run
ionic build android --release --prod
the size of the apk it's different and gave me that problem.
The problem for me seemed to be with the "pageName.component.ts" file that is created when you use the "ionic generate page" command.
Create your pages manually and run it (ionic run android --prod) or (ionic run android --prod) again.
it worked for me.
Home they fix it soon.

ionic android build succeeded but app stopped working

When I am trying to run app on android device using ionic run android, it is showing the build and launch as successful.
On device, it is showing
app_name stopped working
I searched a lot and tried installing plugins again, not working. I'm not using ionic-keyboard plugin. Any help would be appreciated.
UPDATE: When I'm using ionic serve --lab, it is showing perfectly on browser with some of the plugins not working because browser doesn't support all the cordova plugins. That's fine.
ionic platform add android shows at the end
saving platform to package.json file
believe something to do with ionic-keyboard. can you try installing keyboard plugin once and checking the app if it works or not. Thus we will have some RCA.
Can't run Ionic on Android: class not found exception IonicKeyboard

Ionic Build or Ionic Run builds the wrong app

I am trying to build or run an Ionic Cordova App. But it always builds a default app with playlists.
OS is Windows 10
I do the following from my command prompt:
c:\users\martijn\documents\ionic start testapp blank
c:\users\martijn\documents\testapp\ionic run android
now it is building a different app then in my app directory. When I do ionic serve I see the right app in my browser. Can't figure out why running or building gives me a different app, I think it is a default example app.
Can somebody help?
See link here:
https://github.com/driftyco/ionic-cli/issues/1283
Appears you may have to delete the the last apk file from platforms\android\build\outputs\apk

Ionic Android apk no access to internet

I'm building an app for Android with Ionic/Cordova. The app works fine in the emulator and works fine in the Ionic view app.
The app connects to an API in our internal network and everything works fine.
The problem is, when I build the cordova app to Android and install the apk, it doesn't connect to the internet. I can't seem to find what the problem is and why it is not connecting, even though it does work in the emulator and Ionic view.
Does anyone know what the problem would be and why it doesn't work?
It seems I had to install the Ionic whitelist plugin: http://docs.ionic.io/docs/cordova-whitelist
Now it is working! Thanks for your help guys
This plugin saved my time:
cordova plugin add cordova-plugin-whitelist

phonegap/android: changes to index.html not being regarded when building the app

I'm making my first steps in phonegap. I've been able to set up a project, install a plugin and build the app on my phone without errors. However, now, when I try to change the layout of my www/index.html in the project's root platforms/android/assets/www/index.html stays untouched whenever I (re)build the app.
I'm basically working in eclipse, only for html and javascript I use sublime. I've searched now for a couple of hours for a solution. The most promising approach was this thread: Changes to HTML files not showing on built phonegap 3.0 app ... but even that didn't work.
What can I have done wrong? There's no error, no warning (none resulting from the build process) and I don't know how I could debug the issue. I'm currently using phonegap/cordova 4.2.0
Any clue? Thanks
I still don't know the reason for my problem. However, installing the app via cordova CLI rather than eclipse seems to have solved the problem:
$ cordova prepare android
$ cordova run android

Categories

Resources