This has led people to incorrectly believe that it's not possible in CIQ 4+ to use makeImageRequest in a background process and somehow pass the image back to the foreground process, since Storage.setValue() is the only conceivable way to do this in a CIQ 4+.
Note:
- makeImageRequest returns a BitmapReference on CIQ 4+ devices, BitmapResource on earlier devices.
- Background.exit() does not work with a BitmapReference (and you can't change the BitmapReference into a BitmapResource, in the background process.).
I would love to post the example code, but the forum is codeblocking me as per usuge. Here's a pastebin: https://pastebin.com/BEecnzCa
I will post a screenshot in the comments.
The example code works fine (the foreground process is able to call Storage.getValue() and draw the bitmap), so it's clearly only an issue with the type checker.