GleasonK / android-webrtc-tutorial

Tutorial of how to use PnWebRTC, the PubNub Android WebRTC Signaling API
http://kevingleason.me/android-webrtc-tutorial/
MIT License
276 stars 107 forks source link

No User Is Online #10

Open Adnan-addi opened 7 years ago

Adnan-addi commented 7 years ago

I downloaded the template and managed it to compile and run on my device , i installed it on two devices after puting my own pubnub keys , signed in on both devices but it displays user is not online ??

if i use web api debugging i recieved the call on device but stucks at connecting ... ??

i dont understand where i am making a mistake , how to establish a call between two devices?

RiteshAdulkar commented 6 years ago

@Adnan-addi Did you solve this problem? In my case , Connection is not happening on video call, Every time it shows connecting...

RiteshAdulkar commented 6 years ago

Refer this link - https://github.com/newbie007fx/newwebrtc

martipello commented 6 years ago

i have the exact same issue, if i call myself from the debugger it places the call to either of my devices but just displays connecting, if i call my device from my other device i just get user is not online which is obviously coming from here

               if (occupancy == 0) {
                    System.out.println("User is not online");
                    return;
                }

i just dont know how to rectify it i also notice that the previous log statement in the success callback

   Log.d("MA-dC", "HERE_NOW: " + " CH - " + callNumStdBy + " " + message.toString());

prints this

     HERE_NOW:  CH - 37yntLaKSGPgNVrRs18M9GDRLy42-stdby 
     {"service":"Presence","message":"OK","occupancy":0,"status":200,"uuids":[]}

im not sure but i think uuids should have some values inside which maybe the crux of the issue, any help would be appreciated