-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
direct share suggestion feature not implemented for Huawei (P9) #6
Comments
Hi, This might be a nice enhancement, but a complicated and time consuming to implement. |
@zawadz88 It was a challenging, ...but i finally managed to reach it. it appears that android system is able to handle it. when creating then bingo! it worked like a charm! 😃 i got the solution same day i created the issue, but since i have a lot to work on, didn't have time to get you back :p i peeked the android source code, these extras looks the keys for such result:
but to reach same behavior, you might need higher minSDK support (API 24), so better to stick with ShareCompact (works for minSDK 15 in my case). here is the code i'm using for now, giving me the best results i could imagine: here is the code that i'm satisfied with:
Im just posting it here for fun, (i like challenges :p ) and also because you marked it as enhancement. Thanks again! ;) |
it's known that the Nexus share intent add some suggestions for direct share.
Unfortunately, this feature is omitted by Huawei Share.
so from that, i tried your library, so get the same behavior in Huawei devices. but it didn't show the suggested direct share feature.
this could explain: (this is the normal
Intent.createChooser()
behavior in my phone)Wanted Result: https://ibb.co/vVJFxH8
result i'm getting: https://ibb.co/qYMWFPt
could you make that as feature?
The text was updated successfully, but these errors were encountered: