ionic-socketio-chat-client icon indicating copy to clipboard operation
ionic-socketio-chat-client copied to clipboard

"Join" button not working

Open ghost opened this issue 9 years ago • 3 comments

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!

ghost avatar Jan 14 '16 14:01 ghost

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.

melvin0008 avatar Jan 14 '16 17:01 melvin0008

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

dirkaka avatar Apr 20 '16 10:04 dirkaka

join button is not working

sathyakrishna avatar Mar 01 '17 15:03 sathyakrishna