PhoneRTC for ChatApp


#1

Hi Ionites,

I’ve been doing chat application using PhoneRTC but sadly it doesn’t work, does anyone implement this plugin? Anybody can help?


#2

Hi,

What doesn’t work exactly? I’ve successfully added PhoneRTC audio calling to a chat app of mine. If you can outline what troubles you’re having I can try my best to walk you through it


#3

I am finding difficulty in implementing the demo to my ionic app… I follow the steps but not seems to work… all I have is the login and after I login it shows blank screen…


#4

hi, this topic is quite old but i still could not make it work, please help.
i’m using ionic 1 and start adding voicechat feature to my app, in my case, errors raised as i mention bellow
・when i trying to run in browser, error message shows that


→ i have already added turn server info to my config, but no luck

・when i ran on android
app was crashed at step create session
var session = new cordova.plugins.phonertc.Session(config);
do you have any advice?
thanks in advance.


#5

i think you need a turn credential for phonertc to work

example:

var config = { 
        isInitiator: isInitiator,
        turn: {
          host: 'turn:numb.viagenie.ca',
          username: 'webrtc@live.com',
          password: 'muazkh'
        },
        streams: {
          audio: true,
          video: true
        }
      };

#6

i had working turn server ( already tested by this site https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ )
and also had config like yours
but i don’t really know why i could not create RTCPeerConnection (;_;)


#7

@anicacute09 do you have any working source code of this, it’s so great if you can share to me, thanks


#8

maybe something’s wrong with applying codes or installing of the plugin…


#9

it was just the same as the demo codes/sample ionic app that phonertc offer…