I would like to have a friend list feature in my App. The idea is to select any contact from your contact list and then that contact would be sent an SMS from the App(via Server), requesting him to click on the link to accept the friend request, if he is already on the App. If he is not on the App, the SMS would send him a download link. How can I achieve this? Any help would be highly appreciated.
EDIT:
So far, when I select the contact, it gets added in my friend list, with an "!" mark that the request has not been approved at the other end. The other guy gets an SMS as well from the App(via Server) to accept the request by clicking on the link. Now when the other guy, clicks on the link(just a demo link as of now), how do I make him accept the request? Any suggestions would be highly appreciated.
You have nearly completed the job at hand.
Here is what you can do to finish it.You will need to maintain a mapping of which number sent which other number a link on the server. I have not understood how a single link for all requests is going to suffice what you need to do(else you will need a way to generate unique links and handle what happens when each is clicked on!). I dont think that is possible. The user onclick on the link could be redirected to new activity which will pull friend-requests from the server from the mapping availabe. The user could accept or reject the requests here. You see a single link will fail to provide functionality of multiple requests the user gets. Once the second user has one this, you can notify the first user of the same(maybe via GCM or by polling from the device(not efficient!)). I hope my interpretation of the task at hand was right.
Related
Bless To all
I am developing an application in which i am implementing instant Messaging,Voip audio call and video call through using opentok/tokbox.I read all documentation it was though easy but not very much.But i am confusing at a point.Lets suppose if i have three user in my android application say A,B,C.
if user A wants to message with user B then how user B will know that he have to receive message from that session that is assigned to user A?how user A will send message that will go directly to user B.
Hope you all understand the question.Would like to hear any suggestion from you.and if anyone worked other plateform for these 3 features(instant messaging,voip audio,video) for free or trial.Please let me know also.
Thanks in advance
Your server will need to coordinate users and sessions using logic that you implement yourself. This will vary greatly depending on the server side language you use and the type of application you're creating.
Based on your example, your server side implementation needs to pair user A and user B together and give both users the same session ID so when they initialise and connect to that session, they can see each other.
If you've already read all the guides found at https://tokbox.com/developer/guides/ then make sure you also take a look at the sample applications https://tokbox.com/developer/samples/ They don't match your use case exactly but demonstrate how to create a 'room' that both users can visit to retrieve the same session ID.
The way opentok Sessions are structured is more like a conference call than a direct phone call which is what makes it confusing. But it's still possible to get the behaviour of a phone call. There are a couple of different ways you can do this.
You can create a session for every user. Then if user A wants to message user B, they connect to User B's session and send a signal. This requires you to keep track of which sessionId applies to each user.
Everyone is connected to the same giant session. When user A wants to message user B they send a signal to user B's connectionId. You can use the connection data property to put eg. usernames in the connections to help you keep track.
You can use a 3rd party service for messaging and just use OpenTok for the audio/video part.
Hope that helps.
It's possible to have a button in my web page, for sending pre-filled messages to specific number?
i'm trying with
intent://send/+391234567890#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end;whatsapp://send?text=
nothing result.
have a solution? Thanks
Firstly, write the country code without +
Message me in WhatsApp
Sadly this does not work unless the number is already in your contacts list! Making it useless.
Here's what happens for me: I get a modal dialog saying the user is not on WhatsApp and I can either Invite or SMS. This is a mistake - they're DEFINITELY on WhatsApp, but not in my contacts because I've deleted them for testing.
Workaround idea
Offer vCard to save to Contacts
Since the phone number has to be in the Contacts list first, let's get it there. Track the site visitor to see if it's the first time she tapped on Contact me on WhatsApp (a cookie?). If it's the first time she tapped, make the link download your vCard
href="johnsmith.vcf"
The user now has to open the downloaded vCard with the People app, and add you to her Contacts.
Android intents URI FTW
When she returns, assuming she added you, make the button work with the intent:// URI scheme.
href="intent://send/391234567890#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end"
She taps on it and is magically transported to a WhatsApp chat with you.
Keep track of which href to present
Hopefully you can use the cookie you set to track her so you don't have the button offer the vCard AGAIN. There's no other way to know if your number is in her Contacts list unless you ask. But then it's not a button anymore, it's a form.
Same goes for Telegram. Security implications are probably the ones keeping Instant Messaging not so instant.
I am trying to build a functionality where a notification can be send by the user from my application to one other friend from his friend list. I tried to implement this with a request, but the picker allows the selection of multiple friends.
I know I can get a list of all the friends of the user, but I do not know hot to send a notification to a single friend the user selects.
So I was wondering if there is a way to either limit the requestdialog to select a single friend or to send a notification to a specific friend.
I'm not sure if this is an acceptable way to share your content, but you may want to try just sending a message. The latest API has support for Message Dialogs
I hope this is helpful in answering your question, but I understand that it may not be.
Happy coding! I hope this helps, leave a comment if there's anything I can help you with.
Hi my app lets users post/share photos, and comment. App and server communicate via JSON. I'm looking for an effective way to let users know if there are new comments and mark as read after they read them.
I have a comment table on the server, do I add a column with tinyint as 'read' boolean? And how do I automatically set a comment record to true when they are accessed/selected?
Thanks.
Since your app nature shows that you need to save read/unread status on server side (also other desired information). So whenever your server get to know that some User A has posted a comment for some User B you will send a push notification to B telling the app that a new Comment has been posted. When user click the comment to read it just send a notification to server telling him that this comment has been read and server will mark it read in its database. Thatz it
Can anyone help me in creating multiple contact groups like business, personal etc programatically. I need these groups and their contacts to be maintainable through an app.
This would be a large task to ask someone to do for you. I can push you in a good direction though with a list of great video tutorials. I followed these tutorials when I first started Android development and I know for sure that your question would be covered in these tutorials.
Click here to begin Android Development!
Just very simple, collect the mail ID s of groups you want to post in one click. Go to your regular mail box, gmail or yahoo mail etc, prepare your post in a mail, copy paste all the IDs you have collected, provide a coma or semicolan between each as required by the mail client to separate each mail ID. Attach the files or Photos, send, over. You will find your post in all groups. If the groups dont have a mail ID, ask them to create one, its just 1 minut work and very simple.