From 8fbf1f2b34fa8d31595a6e4e585d84f1a9a20d33 Mon Sep 17 00:00:00 2001 From: Ibby Date: Thu, 27 Oct 2016 08:14:47 -0400 Subject: [PATCH] feat(sms): add hasPermission method closes #721 --- src/plugins/sms.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/plugins/sms.ts b/src/plugins/sms.ts index c1b996e376..b674ae00fa 100644 --- a/src/plugins/sms.ts +++ b/src/plugins/sms.ts @@ -60,6 +60,15 @@ export class SMS { phoneNumber: string | string[], message: string, options?: SmsOptions - ): Promise { return; } + ): Promise { return; } + + /** + * This function lets you know if the app has permission to send SMS + * @return {Promise} returns a promise that resolves with a boolean that indicates if we have permission + */ + @Cordova({ + platforms: ['Android'] + }) + static hasPermission(): Promise { return; } }