Skip to content

Commit 8fbf1f2

Browse files
committed
feat(sms): add hasPermission method
closes #721
1 parent 685ac5c commit 8fbf1f2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/plugins/sms.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ export class SMS {
6060
phoneNumber: string | string[],
6161
message: string,
6262
options?: SmsOptions
63-
): Promise<any> { return; }
63+
): Promise<any> { return; }
64+
65+
/**
66+
* This function lets you know if the app has permission to send SMS
67+
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if we have permission
68+
*/
69+
@Cordova({
70+
platforms: ['Android']
71+
})
72+
static hasPermission(): Promise<boolean> { return; }
6473

6574
}

0 commit comments

Comments
 (0)