Ejabber XMMP Services for iOS App - ios

I'm developing a chat app using Ejabber XMPP for ios. I'm able to connect and Authenticate to the server. i'm able to see online and offline users also. but i have an issue with the below i search alot but not found solutions for that can someone help me on this things asked below:
How to upload logged-in user avatar as a display pic.
How to a person i'm using below method but it is not adding, i'm using simulator to add the user. if i add in android app it is displaying in my simulator.
-(void)addUser:(XMPPJID *)jid withNickname:(NSString *)optionalName;
but how to call the above method
How to disable account temporarily
How to delete account
How to share audio/video/photo files in chat
How to create a group

Related

Retrieve users and groups and creating users and group in Ejabber XMPP iOS

I'm using Ejabber XMPP server with a HOST and port. currently i'm developing the app using simulator. I'm able to get list of user(online/offline) but my requirement is to get list of users and groups at once to display in same screen and groups separately again to display in another screen. i'm using coredata stroage. How to store the contacts added/information in server along with local.
For adding a user i'm using the below method. it is not saving in server only locally it is saving.
XMPPJID *newBuddy = [XMPPJID jidWithString:self.buddyField.text];
[self.xmppRoster addBuddy:newBuddy withNickname:#"ciao"];
For creating Group i tried the below link, it says created but i'm not able to see that list of groups i'm not sure that the group is added or not unless i can retrieve the group info.
XMPPFramework - Create an XMPPRoom
Please help me.
*Note: Android app is already developed, in that i have registered with my credentials to test i'm using same credentials in iOS also. If i add a contact Android app i'm able to see in simulator. If i add a contact in iOS app it is showing in my simulator only in Android app it is not updating.

PFLogInViewController with multiple Twitter accounts

Is there a way to use the PFLogInViewController when there are multiple Twitter accounts on defined on the device?
Currently the login only works when I have a single account but after adding another one the login simply hangs - just showing the loading animation without giving any notification to the user / console.
I've experienced the same problem with only being able to login to one Facebook account. After a lot of research I couldn't find a way! Had to use multiple simulators in xcode to test with users. I think the reason was because it automatically looks in the iphone's Twitter/Facebook account. I believe if you change it in your iphone settings you can use multiple accounts.

Initiate Facebook Group Chat from iOS App

I want my app to create a new Facebook group chat with certain people that opens either on Facebook's site in Safari or in the native Facebook app when the user presses a button. I want Facebook to handle the whole chat and my app only to initiate it somehow in the cleanest and least involved way possible. My app already uses the Facebook SDK to open an active FBSession, so I've already got login credentials.
Looking around online and in Facebook's docs, I can't find anything that suits my needs. The closest thing I found was in this answer containing a list of Facebook app URLs you can connect to that open the Facebook app to certain pages. There's "fb://chat/(initWithUID:)" and "fb://messaging/compose/(initWithUID:)". However, not only is there no explanation on how to use these, but people say that Facebook has changed these URLs (and does not have any documentation on them), so they don't work anymore unless I reverse-engineer new URLs (which could change again). Ugh, so close!
I also found examples on starting chats with the Facebook Chat API, but that involves logging into Facebook using some networking framework then writing my own GUI and model for sending messages, which I am only prepared to do as a last resort. There should be some way to let the Facebook app or website do all that. Does anyone know how I can do this?
I've found something very close, but I still don't see a way to make my app initialize it with the desired group of friends:
The Facebook SDK has a message dialog that can appear for sending messages to friends. This isn't exactly what I wanted but is good enough because it means that all the programming is already done for me by Facebook, and users should be able to see these messages on https://facebook.com and the Facebook apps. https://developers.facebook.com/docs/ios/share#message-dialog

XMPPFramework creating multiple login in iOS app

I have implemented chat using XMPPFramework but a new requirement has cropped up as explained below:-
There should be multiple login using different avatars of same user.Its same as supporting multiple login at the same time from same app where user can chat and switch between his different accounts. I think creating multiple stream and calling connect on them is the solution but i am having doing the same.
Please provide guidance on how to create multiple chat stream and use them in parallel.
UPDATE :- like Xabber android app's multiple account support

iOS >> Ads Conversion Link: Is there a way to "catch" from which site / banner / ad users got to my app in the App Store?

I did some ads to my apps; the only information I get regarding how many people got to my app is from the sites where I advertised (Google, Facebook, etc...); and this is only showing how many people clicked the link.
I want info about the following:
How many people got to my app page - per each ad that I have
How many people downloaded the app - per each ad that I have
Can anyone assist?
What you are talking about is conversion tracking.
There's no easy way because you don't get stats from the app store page itself, so you have to do it like this:
when the user clicks your banner, record their device IP address in your database.
when they launch your app on their iPhone for the first time, make a call to your website using native code in your app and log the IP address again. If you get a match then you'll know that the user who clicked the banner is the same one who launched the app, therefore they must have just downloaded it from the app store.
It's not perfect because it won't work if there's a long time between them downloading and first launching the app (assuming they don't have a static IP), or if they download the app on a PC and then install it via iTunes later. It should work in a lot of cases though.
Some of the standard analytics packages have this capability already, for example Google/Admob supports tracking a user from clicking an Admob ad to launching the app in this way (Assuming you are using Google analytics in your app):
http://support.google.com/admob/bin/answer.py?hl=en&answer=1704628

Resources