-
-
Notifications
You must be signed in to change notification settings - Fork 136
Problem with sharing apps panel #148
Comments
I'm guessing these devices use MIUI. It has an issue on landscape orientations which is why I'm creating my own user interface that you're seeing in landscape orientation. As far as I understand, the only issue here is that some apps aren't included in that user interface but I couldn't figure out which ones were missing since there were multiple screenshots from different devices. |
The screenshot 1 of the post to screenshot 6 are from android 11, that device uses MIUI, there you can see both the custom and native panels and their differences in apps and methods to share |
Does |
yes, I had tried it and I just tried it but only this panel is shown: not even my temporary solution works by removing the from the android manifest. |
The last case doesn't make any sense to me either. Are you sure you're calling NativeShare.Share with the same parameters? With the same files, text, etc.? And BTW you shouldn't remove queries from AndroidManifest, removing it can cause this kind of problem. |
If the native share, I will return it to how I had it because this panel is not optimal and I prefer to use the native one, which is the complete one. -in the post I published part of my code of how I am calling the function and the times that I am adding to it so that it works with landscape orientation -I also managed to capture your panel correctly, which came out after showing the native panel, it seems like two calls were made at the same time and the fastest one would be shown first... |
I haven't provided an option to always use the native dialog for this reason. I'm still confused about the latest screenshots you've provided. Is it possible that your screenshot function is asynchronous and in some cases, it doesn't finish before NativeShare is called and hence, results in different apps in the share sheet? Can you replace NativeShare.aar with this one (unzip first) and see if it resolves the missing apps issue? |
replace NativeShare.aar but this time it doesn't show anything, neither using my solution nor using the tool originally... and in response to the doubt, that is why I added a few times in the code and with those waits is that it manages to show the native panel, since without these waits only the incomplete panel is shown, now the captures are made correctly as shown in the video, and with the wrong panel the capture is also taken well, only as the only test option I have facebook and there only the screenshot is taken to share but not the text (but I understand that it is for a topic of using their own SDKs) |
How about this AAR? Can you also share your MakeSampleScreenShotImage function? |
I just did the test on two devices and it doesn't work again... is there any way to call the native panel in landscape without having to do the rotation that I'm doing by code? |
doesn't work either |
I had removed the custom share dialog completely in the latest AAR. If that didn't work, honestly nothing will :/ |
I understand... that's weird, I'm going to do some custom tests with that last year; If the tests are successful, I'll share the results with you :D |
I found a problem on several devices when executing the "Share()" in lanscape and potrait orientations:
-in potrait orientation only once did the problem appear to me and it is this panel:
Screenshot´s adding a timeout:
Now my biggest problem is with the landscape orientation, since it always makes me this panel which is not good since all the necessary social network apps are not shown:
Screenshot applying the temporary solution:
(we managed to get the previous panel by applying the timeout with portrait orientation in the middle of the screen, being in landscape orientation but with the mentioned flaws)
-Thank you for the time you took to explain my case, and without being more, I would like to know if there is a more complete and precise solution...
PTT:
-the android versions of the devices where this problem was tested are: 7, 8, 8.1, 9pie and 11.
-the screenshots that were presented are from android 11, I attached 3 screenshots of android 9 where the only thing that changed from the panel in landscape is the background that went from a dark color to white, after these I attached 2 screenshots of android 8.1 where in sometimes the panel with problems was shown but this time it was slideable with more apps where it could be shared, but when selecting any application it closed; the panel to share was superimposed in the last application you opened and it worked but without more...
Screenshots android 9:
Screenshots android 8.1:
The text was updated successfully, but these errors were encountered: