How do i get the instant messaging addresses from iphone contacts in my application ? Do you have a sample code for this, i know how to get the rest of the Data i just have problems whit this
Looking at the documentation here (search Personal Information Properties), you can't. Maybe you will be able to do it when (if) we will get access to the FaceTime API's.
Related
So, a friend of mine told me they have been using Facebook ads to post a deep link to send a whatsapp message and ask for the information about the ad via whatsapp. Bad news: this friend is not very tech savvy so that's all he knows.
Now, the subject actually caught my eye so I started researching. Unfortunately: official documentation states the url scheme for whatsapp is something like:
whatsapp://send?text=WHATEVER_YOU_WANT&abid=RECIPIENT_ADDRESSBOOK_ID
Now: big issue is that the abid (Adress Book ID) is relative to each phone and obeys only to the order each one was added to the specific phone we're talking about. In this case, the contact I want to send the message is 402. But 402 on each of your mobile devices will be any other person. Not the one you want to be.
So I reached the abid by downloading iMazing and sqlitebrowser and making a backup of my iPhone using the iMazing backup tool to then extract the ChatStorage.sqlite from said backup and looking into the sql database. I found that each contact does have an e-mail address time ID named ZCONTACTJID (NUMBERWITHOUT+#s.whatsapp.net) and another id named ZETAG (w:APPARENTLYRANDOMNUMBER;)
Is anyone of you familiar with such ID's or do have a way to make a deep link useful for send a message to a specific number?
Thanks!
For someone like me who is still looking for it, the following link seems to work -
Ping me on WhatsApp
Note: Use the parameter 'phone' and pass the actual phone number value instead of Adress Book ID.
It opens the contact in WhatsApp app, along with the message 'Hello World!' prepopulated in the input text box. The link works even if the phone number is not a valid contact in the phone's contact list.
(Tested this with google chrome on an android phone.)
The WhatsApp ABID is actually the standard iOS ABRecord (source). You can get that programmatically if you're writing a native iOS app, but unfortunately there's no way to access it within the context of a Facebook ad. And in any case, the abid is totally unsupported on WhatsApp Android (source).
A workaround would be to specify the number to send to within the message text, so that the user can enter it manually. Hacky, but maybe better than nothing...
Maybe you should better use the official Whatsapp API mentioned in THIS OTHER ANSWER (because S.O. policies I had to put a link to the solution, no duplicates).
Check this out. This is the updated one...
https://wa.me/<PHONE NUMBER WITH COUNTRY CODE/>?text=<MESSAGE />
For me something else worked:
intent://send/+31612345678#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end
I am developing an App which has a search functionality for user's emails with Gmail Account, But I don't know exactly how to integrate Gmail account into my app and get the list of all emails. And Please let me know if any Search API is available of Gmail for iOS?
You may want to look into this website because there is no API from Google to get you're emails. You need to do this through the POP protocol.
http://www.example-code.com/objc/pop3_gmail.asp
then see the features here for the library
http://www.chilkatsoft.com/email-features.asp
and download the library here
http://www.chilkatsoft.com/downloads_objc.asp
Hope this will get you started with reading emails and listing them, good luck!
as and addition have a look into:
https://github.com/mronge/mailcore
and another addition:
http://www.etpan.org/
Interesting too:
http://code.google.com/p/remail-iphone/
I am having difficult time in importing contact details from MSN/YAHOO/AOL/GMAIL etc. Can someone tell me how to get the contacts from these networks?
Yahoo Address Book API
Google Contacts API
Windows Live Contacts API
One of the ways is to use the open source library SocialAuth.net
It allows you to get contacts from all the three above, with a very simple API.
CloudSponge.com is a platform that gives you access to these sources and more in a single integration. We use OAuth's 3-legged authentication for services that support it so your users never give their password away. And we have tools to make it easy to integrate; use our widget and get up and running in minutes or use our API and customize every pixel of the user experience.
http://www.cloudsponge.com/developer/
is there a way to have a Map/GPS app hook into the iPhones SMS reader so that it can parse the message and map to that area?
Specifically I'm thinking of a situation where I'm looking for someone's house and they text me their address. I would (from the SMS) be able to say "Map This" and that would send the text to the GPS app and get directions from where I am to that location.
Obviously there would be some error handling for situations like misspellings, locale names ("Burger King", "Hell"), and city/state guesses, but much of this is already handled by Google Maps.
Mostly I'm wondering how to tie the App to the SMS without having to copy/paste.
The public SDK doesn't provide an SMS API, so you cannot hook into the SMS messages. If you are building a location sharing app, you might consider having your own messaging transport layer using the Push Notification functionality.
I'm still new to the API and I wanted to ask:
Can you send a text message programmatically?
Can you access the users contact list programmatically?
I'm thinking no. I haven't seen anything about text messaging in the API, and I figure the sandboxing that the iPhone does keeps you away from the phones contact list.
Thanks everyone.
1) I'm afraid you can't send SMS with the iPhone SDK although you can make a link to send an SMS like so:
a href="sms:408-555-5555">408 555 5555</a>
2) You can access the contact list with the Address Book UI framework
one way round the sms/mms problem is to use an external aggregator then you can utilise http between a server and the iphone to send sms obviously there is a cost involved this way to the developer
Yes You can build an app to send SMS.
All u need a server API, which u gonna call through ur code, to send sms.
I am saying this bcoz i am currently working on it.
As soon as i m done with my app,i am gonna share it.
http://shishir.com?from=shishir&to=shishir&message=hi&sandbox=false&username=user&password=pass
u hv to pass values through URL.
will go in deep very soon.
regards
shishir