How to share phone contacts in xmpp smack? - android

I am developing chat application using xmpp smack my problem is how to send phone contact information to another users.I am struct here can any body help me.

you can just send a message stanza containing that contact info. AFAIK there is not any particular XEP present for contact sharing.

A phone contact specification is not currently available in XMPP. Your best bet would be to send the phone contact information in a standard message.
Consider putting some special tokens in place if you want to process these information in a different way than a standard message.

Related

Messaging App using MQTT

I am trying to create a android messaging app using MQTT.
But i just want to know how the existing messaging apps(based on MQTT) work?
I am think of creating a unique topic for each user who installs and setups the app for the first time (providing his mobile no/email id for his topic to receive messages from others).
Once the setup is completed the contacts from users device will be synced with my server to check the available users.
And finally the user can select from the available contacts to send messages(publish messages based on the selected contacts mobile no or email id).
I know we should encrypt the contacts to protect the users privacy but,
Am i going in the right direction?
Thanks in advance.
Typically you set up a topic like
appName/device/[deviceID]
you could then put additional topics under that, like
appName/device/[deviceId]/contacts/contactName
You would then create authorization rules that limit a device to only publish things to appName/device/[deviceId]/# for the specific device id.
You could do a topic like appName/device/[deviceI]/contacts/online to get a list of available contacts... and a reply topic that gave back the results.

Sending a message to a contact on another Android device

While building my first Android app (a simple game), I came across this (most probably newbie) problem:
my app needs to send a message to a contact (chosen from contact list) via my own server.
same app installed on this contact's device, needs to retrieve this message.
The problem I am facing is contact "identification". How can the app identify a contact such that one device sends a message for this "ID", and another device polls for messages intended the same "ID?
Maybe there is some kind of ID associated with a contact having an Android device?
Thanks (and sorry for newbie question :)
You can try push notifications service, by using the google cloud messaging.
From the first device you can send an http request containing message to a server that manages the request and sends message to the second device, or to more than one device.
You can find a tutorial here
https://developers.google.com/cloud-messaging/

Sending SMS in android with Custom Name

I am trying to do Mobile Number Verification just like WhatsApp in my Android App. I'm able to send SMS from my Android app.
But I want to achieve these 2 things:
The Sender name in the receiver's Inbox should be a Custom Name decided by my App, like SMS from WhatsApp has sender name somewhat like WTAPP-5550. Currently its showing my Mobile Number.
Making sure that the SMS sent from User's phone doesn't show up in User's Sent Box. Currently SMS appears both as SENT and RECIEVED SMS. Like in d case of WhatsApp , no SENT Message is present only Recieved SMS is.
Thanks and Regards,
Rahul Soni
See Mr Rahul From your question what I understood is you are sending the sms to the mobile number through your app. That is not a good way to verify the mobile number. What you have to do is you have to send sms through the server. Whats app people will connect to their server and from server they will send sms to the entered mobile number. Thats why it will not appear in the sent box. And to set custom name to the sender number you have to use third party sms services.

Send Text Message To All Contacts

I need to send a text message to everyone on a phone. I have developed an Android application that sends a SMS to contacts, but I'm not sure how to do it for all contacts, especially since the phone I have to do it with doesn't have any mobile plan. Should I develop an Android application, or is there a better way of doing this? I have also tried putting all of the contacts in a group, but I can only send a message to ten people. Thanks for the help.

To send message from one device to another with the help of Html5

I want to send the message or sms from one device to another with the help of html5.The message should be sent on multiple devices in the group.
hmmmm. I think you're a bit confused about what you're trying to do.
if you want to create a chat room in which you send information from one device to many different devices, you want to use PubNub or create your own server to handle C2DM.

Categories

Resources