question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic Server doesn’t shutdown gracefully using Cordova

See original GitHub issue

Description: I have to build an ionic cordova app. So I prepared my macOS with all needed utilities. First I have to create the app on the browser platform. Therefore I start the process with “ionic cordova run browser”. After testing I just want to shutdown the server with crtl+c, but even a node process will be left. So every time I would have to kill the process using the command line tool “kill”. It isn’t really comfortable.

I found out if I run only the command “cordova run browser” without an ionic build the server is shutting down correctly. The same thing, if I run “ionic serve” without using cordova

My ionic info:

cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:
cordova (Cordova CLI) : 8.0.0

local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : browser 5.0.3
Ionic Framework : ionic-angular 3.9.2

System:
ios-deploy : 1.9.1
Node : v8.10.0
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b

Environment Variables:
ANDROID_HOME : not set

Misc:
backend : legacy

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
marxidecommented, Mar 28, 2018

Thanks @dwieeb, that is exactly what I’m looking for. I have no intention of deploying a browser target (yet) so I was only using the browser platform to get around the Cordova plugin issue. I would much prefer to use ionic serve as you describe.

I look forward to trying it out when available.

0reactions
imhoffdcommented, Jul 30, 2018

Closing in favor of https://github.com/ionic-team/ionic-cli/issues/3043, please subscribe to it for updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic Server doesn't shutdown gracefully using Cordova
I have to build an ionic cordova app. So I prepared my macOS with all needed utilities. First I have to create the...
Read more >
Ionic app doesn't hit on server when using cordova
My Ionic app works fine when running with ionic serve but when i use the command ionic cordova run android --livereload it doesn't...
Read more >
Alpha Anywhere | Getting Started with Mobile Apps
Cordova CLI offers the most flexibility for building cross-platform mobile iOS and Android applications. While Ionic Appflow is built on Apache Cordova, the ......
Read more >
Android Anti-Reversing Defenses - OWASP MASTG
Create a large (16 bytes or longer) random number on your server using a ... A successful attestation doesn't necessarily mean that the...
Read more >
Window.location.href(url). how to catch the success event for ...
Featured post · Not able to get output · Apache Cordova missing cordova. · Updating JSON files in an ionic app · Not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found