Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Clipboard copy issue with EO Browser Options
Chidambar DR
Posted: Friday, June 4, 2021 3:55:36 AM
Rank: Newbie
Groups: Member

Joined: 6/4/2021
Posts: 2
Hi All,

I'm facing permission issue on below code with EO Browser,

navigator.clipboard.writeText('some text');

but same code is working with chrome and other browsers.

On EO Browser getting the error as Uncaught (in promise) DOMException: Write permission denied.

Can someone please help me how we can overcome on this issue with EO browser?.

Note: I'm looking with the solution in frontend frameworks like angular.


Thanks,
Chidambar DR
eo_support
Posted: Monday, June 7, 2021 11:31:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,900
Hi,

Please check if you handled WebView.RequestPermissions event. You would need to call e.Allow() inside that event handler in order to allow pasting into clipboard.

Thanks!
Chidambar DR
Posted: Tuesday, June 8, 2021 2:39:52 AM
Rank: Newbie
Groups: Member

Joined: 6/4/2021
Posts: 2
Can you please tell, how we can add this permission in angular?
eo_support
Posted: Tuesday, June 8, 2021 9:56:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,900
Hi,

This has nothing to do with angular. Angular is a JavaScript framework. WebView.RequestPermissions event is an event provided by our component on .NET side. So they are completely unrelated. You could write code to "link" these two completely unrelated things though. For example, you could write code to only grant permission inside your WebView.RequestPermissions event handler (task A) if you detect angular is currently running inside the WebView (task B). But you will need to understand that these are two separate tasks and you are linking them together explicitly through your code. There are no such thing as "adding this permission in angular" anywhere at all.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.