KhadkaRabindra / simple-android-instant-messaging-application

Automatically exported from code.google.com/p/simple-android-instant-messaging-application
0 stars 0 forks source link

Message was not able to send #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Hello,

    The feature provided by the app all are working smoothly except the sending message. Please help me regarding this issue or provide me some hint so that i can move further.

Original issue reported on code.google.com by graj...@gmail.com on 10 Jul 2013 at 7:31

GoogleCodeExporter commented 8 years ago
like the other "message was not able to be sendt" issues, this is because of 
the sendmessage function, the sendmessage function tries to send your message 
directly over the TCP protocol to the "friend", so it works IF you do not have 
any firewall or something.

so the messaging is a "direct call" endpoint to endpoint.

this should work fine with 2 Devices in one private wlan^^

Original comment by d.pirngruber@gmail.com on 10 Jul 2013 at 7:39

GoogleCodeExporter commented 8 years ago
k i will try and let you know before that in the video as you demonstrated you 
have used two emulators how did it worked..?

Original comment by graj...@gmail.com on 10 Jul 2013 at 8:45

GoogleCodeExporter commented 8 years ago
Hi there,

    i have tested on two devices no luck still show's the same message.

Original comment by graj...@gmail.com on 10 Jul 2013 at 11:33

GoogleCodeExporter commented 8 years ago
hmm should work but i haven't testet the wlan thing yet

yeah for 2 emulators you have to modify the 
line of //IP=10.0.2.2 in sendmessage function in imService 
just delete the 2 "//" in front of it

and then while running the emulator you have to setup port forwarding
let me give me an example for instance user1 logins the emulator-5554 with port 
number 12345 and user2 logins the emulator-5556 with port number 54321

then issue these commands

adb -s emulator-5554 forward tcp:12345 tcp:12345

adb -s emulator-5556 forward tcp:54321 tcp:54321 

Original comment by d.pirngruber@gmail.com on 10 Jul 2013 at 12:40

GoogleCodeExporter commented 8 years ago
Hi, i tried with either ways it dint worked for me. need help please....

Original comment by graj...@gmail.com on 11 Jul 2013 at 7:31

GoogleCodeExporter commented 8 years ago
When i run this line on the browser its showing me a single zero  
http://192.168.0.47/android_im/index.php?action=authenticateUser&username=goutha
m&password=qwerty

does it means my application is not working..?

Original comment by graj...@gmail.com on 11 Jul 2013 at 9:40

GoogleCodeExporter commented 8 years ago
no it means you have to add "&port=12345" in the url request...
i thought you can successfuly sign in?

at the point where you issue the adb -s emulator commands you'll have to use 
the ports your running the app with (you can find the actual ports for each 
user in the db while running)

Original comment by d.pirngruber@gmail.com on 11 Jul 2013 at 2:22

GoogleCodeExporter commented 8 years ago
Hey i've just uploaded the preview APK with the Fix for the send/receive "bug", 
try it out!
http://code.google.com/p/simple-android-instant-messaging-application/downloads/
detail?name=AndroidIMu2.apk&can=2&q=

I think i get the source ready till tomorrow, you'll find it under downloads.
Update 2

Original comment by d.pirngruber@gmail.com on 13 Jul 2013 at 2:01

GoogleCodeExporter commented 8 years ago

Original comment by d.pirngruber@gmail.com on 13 Jul 2013 at 4:00