$cordovaCamera - after take photo, apps minimise and display phone's home screen

Hi Ionic team,

We had an hybrid Android app developed using Inonic framework running on IBM MobileFirst Platform v7.1.

We encounter a problem with $cordovaCamera library with Android devices, whenever photo is taken, the library will bring the app to phone’s home screen for a while and then back to the app again. It is not refreshing the app, it just leave the app and then come back to the app again. Users find this behaviour annoying.

Refer to the below video for better illustration:

This only happen on Android devices.

The codes we are using as below:

var options = “”;
options = {
quality: 50,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.CAMERA,
allowEdit: true,
encodingType: Camera.EncodingType.JPEG,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false,

$cordovaCamera.getPicture(options).then(function(imageData) {
$scope[imageHolder] = “data:image/jpeg;base64,” + imageData;
}, function(err) {
// An error occured. Show a message to the user

Any advice we can enhance the Android user experience on this feature?

Thank you.

Managed to solve the problem with IBM advice below.

Replace the theme for the MFP activity in the android manifest(AndroidManifest.xml)
from “Theme.Translucent.NoTitleBar” to “Theme.Black.NoTitleBar”

Thank you.