FSOpenInGmail is a tool for sending mails with Gmail iOS App.
Using CocoaPods:
pod 'FSOpenInGmail', '~> 1.1'
For iOS 9 you have to add the following to your Info.plist
:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>googlegmail</string>
</array>
Check if Gmail app is installed:
if ([FSOpenInGmail canSendGmail]) {
//Gmail app is installed
}
Open Gmail app composer:
[FSOpenInGmail sendEmailTo:@"test@example.com" subject:@"Some subject" body:@"Some body"];
iOS 6.0+ is currently supported.
FSOpenInGmail is available under the MIT license. See the LICENSE file for more info.