I'm using ejabberd as a chat server for my mobile application.
And in my application we are sending contact list of mobile user to our web server than add all contacts to mobile user's roster list.
To adding all the contacts to roster I wanted to use mod_rest and trigger add_rosteritem command on from our webserver.
However when I add the add_rosteritem to allowed_commands ejabberd doesnt work. I couldnt find any other solution
P.S: I dont want the mobile user to add contact list to user's rosters, I want our webserver to add contacts to user's roster without getting permission from the users
Do you know any solution to this problem?
Thanks
I've found the solution
in mod_rest configuration under
access_commands:
add
commands: all
And that works
Related
I'm having trouble proactively sending messages. I have a bot successfully sent up and I hear all messages sent to me and can respond. I'm unable to get any event when the app is installed. I've been installing the app using the embedded code link that looks like https://teams.microsoft.com/l/chat/0/0?users=**:***************************. All I want is some event send to me on installation so I can then pull all user ids for the team that installed the app. I am trying to use the REST api since I am working in laravel.
The link you mentioned is the deep link that is used to navigate to your bot on click on the link where you can chat with it.
You can use the Manifest file to install the app.
You can use the app setup policy to install your bot to all the users in the organization :-Link.
or you can use Microsoft Graph API which is in beta version to install an all to the users:- Link
Once the bot is installed to the user, the Conversation Update event will be triggered, where you can capture and store the User's Teams Unique ID which you can use to send Proactive messages.
you can also refer to this Link.
Thanks.
I'm designing a mobile application which communicates with an API and I was wondering something.
My app is kind of a social network on which you can have friends and stuff like this. I wanted to add a feature to access phone contacts and see who is not subscribed on the app to invite him, and also ask to access to Facebook's friend list of the user and do the same thing.
I also want to check if a person in your phone's contacts is registered in the application to send him a friend request.
But the way i see it seems pretty heavy, i mean sending your whole phone contact list through the internet so the API can check every phone number and email adress to see if it's already in the database... And maybe unsafe too ?
How can i achieve such a system ?
Currently, I'm developing a iOS/Web App but when testing the XMPP server with iMessage and Adium I see that they request each other to be able to chat. as well a Certificate Acceptance. I haven't start with XMPP development on Web and iOS. Will I still need to follow this steps? there is a way that everyone can chat with everyone?
In XMPP, people request each other to see the others in the contact list and to see the presence.
However, nothing in XMPP prevent a user from chatting from a user that is not in your roster. If you UI allow to start a chat based on a specific user JID, they can chat together.
The default is thus already to let everyone chat with everyone.
I am creating an iOS application.I have to implement a mail sending option as "Tell a friend" inside the application.For that I have to get the contacts list from the user's gmail,yahoo,man,Facebook etc.
I have used XMPP frame work,by using that I got the contact list from Facebook and gmail.
I found that yahoo is not supporting XMPP.I found this link (http://developer.yahoo.com/social/sdk/objectivec/) for yahoo. But I think it will be better to use a single API/SDK for getting the contact list from all the account.
*My doubt is : * Is there any common framework availabele for getting the contact list from all account?
If any body has idea then please help me.Thanks in advance
I want to have one user send a request to play the app with another user but only if the other user also has the app. I have seen this done in snapchat it lets you add (or friend) people who also have snapchat. I figure the user has to grant permission for the app to access contacts but after that I am pretty lost. Does anyone have any links that discuss this?
Thanks
Many apps ask for an email to log in or they ask for a mobile number and then find friends using the contact book with that data.
You request access to their contacts and upload them to your server. Make sure you are clear about what is happening. Path did this without clear disclosure and people got worried.
There is no way to programmatically grab an iPhone's phone number so you have to ask for it.
TLDR:
Ask for email or mobile number
Ask for permission to contacts
Match those on your server and return results.
You could also theoretically use Facebook, but I don't have any experience with that API.