fix(sms): fix callback index when omitting options param

closes #858
This commit is contained in:
Ibrahim Hadeed 2016-12-10 20:05:24 -05:00 committed by GitHub
parent b2d29dbde5
commit 114a74d3ba

View File

@ -58,7 +58,10 @@ export class SMS {
* @param options {SmsOptions} Options
* @returns {Promise<any>} Resolves promise when the SMS has been sent
*/
@Cordova()
@Cordova({
successIndex: 3,
errorIndex: 4
})
static send(
phoneNumber: string | string[],
message: string,