I am using Custom Dialog (notifier) and a button to trigger the notifier, which is located in the custom dialog arrangement itself.
When I call screenshot.take screenshot, for fraction of seconds, custom dialog disappears and screenshot event provides me something else (earlier arrangement, from where I have activated the custom dialog) than the current screen i.e. custom dialog.
Please share your Blocks so members can understand what mistake have you done
custom dialog disappears
Let me check…
For quick fix use component to image extension…
Search for it
If you just want to take screenshot of custom dialog then use the extension component to image
Extension ComponentToImage 1.About Using this extension you can convert any view/component to image and save it to storage. The image will be created as per the components same width and height. You can convert Layout, Buttons, Labels …etc Any...
Reading time: 1 mins 🕑
Likes: 33 ❤
It is working fine in the companion but not working in baked apk, when installed.
What can be the possibilities?
I tried in 4 different phones. All were on MIUI 11. (Redmi Note 5pro, 6pro, 7pro & 8pro)
Something is related to Read Write Permissions.
My app is not asking for any permission when installed.
Calling Write Permission solved my problem for now.
ComponentToImage to work properly on all devices.
@OfficialDjJohn for your suggestion and @Soham_Shah for your link to the extension.