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

"Join" button not working #7

Open
ghost opened this issue Jan 14, 2016 · 3 comments
Open

"Join" button not working #7

ghost opened this issue Jan 14, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 14, 2016

Hey there! :)
I am experiencing an issue as the "Join" button is not working / nothing happens.
To reduce the potential of failure I exactly followed your tutorial / instructions on Git.

  1. Cloned you repo
  2. Changed directory to the project
  3. cordova platform add android
  4. cordova plugin add cordova-plugin-whitelist
  5. cordova plugin add com.ionic.keyboard
  6. ionic run android

App starts, but "join" not working.
I also tried "ionic serve", but same problem here.

After some investigations I had success when changing content security to

but I am not sure if this is the correct way of solving the problem?

Thank you in advance!

@melvin0008
Copy link
Owner

Yes, that is one way to do it. But ionic does this for you if you add two statements in your config.xml

<allow-navigation href="*" />
<allow-intent href="http://*/*" />

This is not advised for production applications since href is set to wildcard and navigation will be allowed for every link.
Read this link https://github.com/apache/cordova-plugin-whitelist#navigation-whitelist to learn more about it.

So the href field to be used for production should have the urls you want to point to.
For this project I would have http://chat.socket.io in the href

Hope this helped.

@dirkaka
Copy link

dirkaka commented Apr 20, 2016

Hey @melvin0008 . I tried adding the code you suggested into config.xml but still the join button does not work.

@sathyakrishna
Copy link

join button is not working

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

3 participants