FSOpenInWhatsApp is a tool for sending messages with WhatsApp iOS App.
Using CocoaPods:
pod 'FSOpenInWhatsApp', '~> 2.1'
For iOS 9 you have to add the following to your Info.plist
:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>whatsapp</string>
</array>
Check if WhatsApp app is installed:
if ([FSOpenInWhatsApp canSendWhatsApp]) {
//WhatsApp app is installed
}
Open WhatsApp app composer:
[FSOpenInWhatsApp sendText:@"Nice app"];
iOS 7.0+ is currently supported.
If you need to support iOS 6.0 you could use pod 'FSOpenInWhatsApp', '1.2'
FSOpenInWhatsApp is available under the MIT license. See the LICENSE file for more info.