Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/jsActions/mobile-resources-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [12.2.0] Native Mobile Resources - 2026-7-3
### Fixed

- Fixed an issue where the `TakePicture` and `TakePictureAdvanced` actions failed to capture photos on Android.

## [12.2.0] Native Mobile Resources - 2026-7-3

## [5.3.1] BottomSheet

### Fixed

- Fixed flickering issue on Android when opening bottom sheet (both basic and custom render types).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ export async function TakePicture(

function storeFile(imageObject: mendix.lib.MxObject, uri: string): Promise<boolean> {
return new Promise((resolve, reject) => {
fetch(uri)
.then(response => response.blob())
.then(blob => {
NativeModules.MxFileSystem.read(uri.replace("file://", ""))
.then((nativeBlob: unknown) => {
const blob = new Blob();
Object.assign(blob, { data: nativeBlob });
// eslint-disable-next-line no-useless-escape
const filename = /[^\/]*$/.exec(uri)![0];
const filePathWithoutFileScheme = uri.replace("file://", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ export async function TakePictureAdvanced(

function storeFile(imageObject: mendix.lib.MxObject, uri: string): Promise<boolean> {
return new Promise((resolve, reject) => {
fetch(uri)
.then(response => response.blob())
.then(blob => {
NativeModules.MxFileSystem.read(uri.replace("file://", ""))
.then((nativeBlob: unknown) => {
const blob = new Blob();
Object.assign(blob, { data: nativeBlob });
// eslint-disable-next-line no-useless-escape
const filename = /[^\/]*$/.exec(uri)![0];
const filePathWithoutFileScheme = uri.replace("file://", "");
Expand Down