Skip to content

Commit

Permalink
feat(sms): add hasPermission method
Browse files Browse the repository at this point in the history
closes #721
  • Loading branch information
ihadeed committed Oct 27, 2016
1 parent 685ac5c commit 8fbf1f2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/plugins/sms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ export class SMS {
phoneNumber: string | string[],
message: string,
options?: SmsOptions
): Promise<any> { return; }
): Promise<any> { return; }

/**
* This function lets you know if the app has permission to send SMS
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if we have permission
*/
@Cordova({
platforms: ['Android']
})
static hasPermission(): Promise<boolean> { return; }

}

0 comments on commit 8fbf1f2

Please sign in to comment.