Skip to content

Commit 2ab7e5f

Browse files
authored
Merge pull request #96 from jasongaare/master
Add notification support for Android (getPermissionStatus only)
2 parents 99ddde4 + a314122 commit 2ab7e5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ReactNativePermissions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class ReactNativePermissions {
7878
} else if (permission == 'location') {
7979
options = type || 'whenInUse'
8080
} else if (permission == 'notification') {
81+
if (Platform.OS === 'android') {
82+
return Promise.reject(`ReactNativePermissions: notification cannot be requested on Android`)
83+
}
8184
options = type || ['alert', 'badge', 'sound']
8285
}
8386

0 commit comments

Comments
 (0)