cyril23 commented on issue #411:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/411#issuecomment-1128486429

   > Thanks to @cyril23 . We had the same problem on a Honeywell device with 
Android 10. We use cordova-plugin-camera 5.0.2. Cause of the problem was the 
incompatibility between snapdragon camera and cordova. The open camera 
workaround has helped us.
   
   This workaround only works until Android 11, because Android 11 does not let 
you select your default camera app anymore.
   
   See https://9to5google.com/2020/08/18/android-11-default-camera-app-changes/
   
   > On an [official issue tracker 
thread](https://issuetracker.google.com/issues/162643544#comment6), Google 
confirmed (via [Android 
Police](https://www.androidpolice.com/2020/08/18/android-11-camera-apps-chooser/))
 that Android 11 is ditching the default camera app selector. Instead of being 
able to download a third-party camera app from the Play Store and use that as a 
complete replacement, users will be stuck with whatever is pre-loaded on their 
device in many scenarios.
   
   Further links:
   - https://android.stackexchange.com/a/232306
   - 
https://android.gadgethacks.com/how-to/android-11-changelog-full-list-all-50-new-features-0258964/#jump-14youcantchangethedefaultcamera
   
   However, the **Snapdragon** camera worked again once we've changed our 
`config.xml`:
   
   `<preference name="AndroidLaunchMode" value="singleInstance"/>`
   
   to
   
   `<preference name="AndroidLaunchMode" value="singleTask"/>`
   
   See 
https://developer.android.com/guide/topics/manifest/activity-element#lmode
   This allowed us to continue usage of this camera plugin together with 
Android 11 and the Honeywell EDA52.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to