gluonhq / attach

GNU General Public License v3.0
49 stars 26 forks source link

PictureService: Camera doesn't show up on iPhone 13 #326

Closed jperedadnr closed 2 years ago

jperedadnr commented 2 years ago

Follow-up of #322

jperedadnr commented 2 years ago

@molbertz As a follow-up, I've created a PR for this issue: #327, in the very same way we did for the barcode service.

If you have the time, it would be great if you could test it/review it. Thanks!

molbertz commented 2 years ago

Just looked at the changes. Seems a bit more complex than the barcode-scan. I can just check out the branch from your personal repo, yes?

jperedadnr commented 2 years ago

Sure, you can either create a patch from my commit and apply it to your repo, or simply clone my branch, indeed.

molbertz commented 2 years ago

I cloned your repo and compiled barcode-scan and pictures. I'm using the HelloGluon sample to test. So far so good. Unfortunately I just lost the VPN to our macOS machine. I don't know how long that is going to take.

Anyway, I noticed something I missed with the JavaDoc for BarcodeScanService.java.

 * <pre>
 * {@code BarcodeScanService.create().ifPresent(service -> {
 *      service.resultProperty().addListener((obs, ov, nv) ->
 *          System.out.printf("Scanned result: %s", nv.getResult()));
 *      barcodeScanService.asyncScan();
 *  });}</pre>

barcodeScanService.asyncScan() should be service.asyncScan()

jperedadnr commented 2 years ago

Okay, no problem. Good catch, I've just fixed it.

molbertz commented 2 years ago

Taking a picture works on iPhone 13 Pro. Selecting a picture also works.

EDIT: I didn't try the ShareService line from the example though.

jperedadnr commented 2 years ago

Cool, thanks for testing! Share service should work, it is not affected by the nested event lock.

molbertz commented 2 years ago

No problem. Is there already a release planned for 4.0.16 btw?

jperedadnr commented 2 years ago

You can review the PR if you want (even just approve it and comment that you tested it on iPhone 13). We'll do a release with these changes soon.

molbertz commented 2 years ago

Okay, I'll have a look at that.