erikhric / ios2mac

9 stars 0 forks source link

Mac Catalyst - Open NSViewController #1

Open PrashantKT opened 2 years ago

PrashantKT commented 2 years ago

Hi , I have read your awesome article

I have similar requirement need your help In Mac catalyst WKWebview. -I am trying to make voice / video call but it is not working like it is not asking for camera and microphone permission

in iOS and iPad os it is working fine ,

So it might be a bug of Mac catalyst, I have created Mac app to test similar thing where it is also working fine.

my question is is It possible to show NSVIewController which has WKWebview from Mac catalyst app ,

I don't know I have put my requirements clearly or not.

I have attached Mac app with simple WebView , when you try to access the call option it will prompt the permission but it is not asking in the Mac catalyst

WebviewTest.zip

erikhric commented 2 years ago

Hey @PrashantKT, did you try asking for permissions manually before showing web view? I've been using https://github.com/jevonmao/PermissionsSwiftUI and it works great :)