Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if 2 or more ionic app running with same port then it create issue for ios #91

Closed
ipehimanshu opened this issue Apr 12, 2018 · 7 comments

Comments

@ipehimanshu
Copy link

Hello

here is my ionic info

@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.6
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 25.2.5
Node              : v8.10.0
npm               : 5.6.0
OS                : Windows 7

Environment Variables:

ANDROID_HOME : C:\Program Files\Android\android-sdk

Misc:

backend : pro

and i have build ios using phonegap build
my main issue is
in ios this plugin create local serve and default port is 8080
now if another ionic app which has same type port then it will conflict and break app .

@revie
Copy link

revie commented Apr 13, 2018

I used to think the same thing, that everyone sharing the same port would likely encounter conflicts. So, when I was working on implementing this into my projects last year, I ran quite a few tests, both on simulators and on real devices, to try to get port 8080 conflicts. I even resorted to running apps side-by-side like you can on iPads to visually see both apps running at the exact same time.

Never once was I able to get things to break. I haven't spent the time to track down the reason, but my gut says that it's likely due to Apple's sandboxing, making it impossible for one app to affect another. I know in theory things should break, but it doesn't seem to work out that way, at least for me.

If you're seeing conflicts somehow, do you mind sharing how you are able to encounter the issue? The latest version of this plugin makes the port configurable, so it's probably moot anyways, but I'd love to finally see a way to get it to break.

@ipehimanshu
Copy link
Author

for me as practically as i have checked
some time when menu shows active in one app wrong
and if click footer menu for one app then it goes to wrong page don't know how but that is truth .

So if i have changed both apps port then it working fine.

@revie
Copy link

revie commented Apr 13, 2018

I've tried it with a number of different combinations and can't get it to break. Strange. I am testing with apps that are similar, having similar routing, though very different content pages. In theory I should be seeing different content, like how you're seeing different routing. Maybe I'm missing something.

Are there maybe other Cordova plugins you may be using that could be assisting WebView in breaking the iOS sandbox and affecting other apps? Do you mind posting your list of plugins?

@joewoodhouse
Copy link

We are also seeing the same issue.

@sathishTkumar
Copy link

+1

@bharathiselvan
Copy link

+1
Me too face the same problem.

@mlynch
Copy link
Contributor

mlynch commented Oct 10, 2018

This is fixed as of 2.2.0. See also #165

@mlynch mlynch closed this as completed Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants