|
@@ -70,6 +70,8 @@ class ReactNativePermissions {
|
70
|
70
|
|
71
|
71
|
return RNPermissions.request(androidPermission)
|
72
|
72
|
.then(res => {
|
|
73
|
+ // For OS versions prior to Android M, request to native module resolve to boolean
|
|
74
|
+ if (typeof res === 'boolean') return res ? 'authorized' : 'denied';
|
73
|
75
|
return setDidAskOnce(permission)
|
74
|
76
|
.then(() => RESULTS[res])
|
75
|
77
|
});
|