Skip to content

Commit

Permalink
[MOO-1492] LTS Fix schedule exact permission error (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymv-mendix authored Jun 25, 2024
2 parents 20e7d57 + c2a4095 commit 672cd15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions packages/jsActions/mobile-resources-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [4.1.0] Native Mobile Resources - 2024-5-28
- We have fixed an issue with checking blocked permissions on iOS

## [4.1.0] Native Mobile Resources - 2024-5-28

### Changed

- Added CheckGenericPermission and updated RequestGenericPermission to support SCHEDULE_EXACT_ALARM_ANDROID permission for Android (relevant for Android 14).

## [4.0.9] Native Mobile Resources - 2024-4-4


## [4.0.1] FloatingActionButton

### Fixed

- We have fixed an issue where icons within Floating Action Buttons were not properly centered.

## [4.0.8] Native Mobile Resources - 2024-3-29

### Changed

- fixed an Android issue in Download file action.

## [4.0.7] Native Mobile Resources - 2024-2-26


## [2.2.1] Accordion

### Fixed

- Fixed a bug where the accordion state was not updating correctly when the "Collapsed" attribute was selected.
Expand All @@ -38,8 +40,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [4.0.6] Native Mobile Resources - 2024-2-12


## [1.0.3] Gallery

### Fixed

- We've resolved an issue where the loading indicator was triggered when pulling down the list, even in the absence of a pull-down event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
Permission,
PERMISSIONS as RNPermissions
} from "react-native-permissions";
import { getPermission } from "react-native-schedule-exact-alarm-permission";
import { ANDROIDPermissionName, IOSPermissionName } from "../../typings/RequestGenericPermission";

// BEGIN EXTRA CODE
Expand All @@ -31,8 +30,10 @@ function handleBlockedPermission(permission: string): void {
const permissionName = permission.replace(/_IOS|_ANDROID/, "");

if (permissionName === "SCHEDULE_EXACT_ALARM") {
const RNExactAlarmPermission = require("react-native-schedule-exact-alarm-permission");

Alert.alert("", "Please allow setting alarms and reminders", [
{ text: "Go to alarm settings", onPress: () => getPermission(), isPreferred: true },
{ text: "Go to alarm settings", onPress: () => RNExactAlarmPermission.getPermission(), isPreferred: true },
{ text: "Cancel", style: "cancel" }
]);
} else {
Expand Down

0 comments on commit 672cd15

Please sign in to comment.