input-samples icon indicating copy to clipboard operation
input-samples copied to clipboard

Cant support the FB messenger

Open Colibrow opened this issue 9 years ago • 2 comments

I tried it in FB Messenger and I found that the judgement is acceptable but the doCommit is wrong. So the FB could not receive the photo I shared.

Colibrow avatar Jan 18 '17 03:01 Colibrow

Hi, I also have the same issue.Please intimate me if your issue is cleared.

gowthamidommeti avatar Jun 29 '17 06:06 gowthamidommeti

@gowthamidommeti sorry to find this now, finally i solve it by a tricky way { i replace the contentUri with the Uri.from local file } for example:

if (Build.VERSION.SDK_INT < 25 && getCurrentInputEditorInfo().packageName.equals(Messengers.FB_MESSENGER)) { contentUri = Uri.fromFile(file); } else { try { contentUri = FileProvider.getUriForFile(getContext(), AUTHORITY, file); } catch (IllegalArgumentException ex) { return; } }

hope it can help you

Colibrow avatar Nov 21 '17 06:11 Colibrow