currently, I’m working on unity mobile app with heavly business logic depends on it, and thinking about implenting webview inside unity.
The business logic functions are these:
payment system
javascript based api calls
sns login
These features are not business logic, but want to know is it possible through webview or unity’s native system:
accessing mobile device’s camera
accessing mobile device’s images or files
Implent those features in web, shows them in unity webivew, and send and recieve data between webview and unity app.
Is it possible through unity’s webview system?
Also, is there any informations on how to communicate between webview and unity?
First of all this is not really a general discussion topic,
but business logic or UI-heavy apps are best not done with Unity…
Whatever your reason for using Unity - consider making a native app or using another cross-platform system and then using Unity just for limited parts as a plugin if required - Add Unity-powered features to your app using Unity as a Library | Unity Blog
You can use asset store plugins for webview and camera access etc. if a minimal part of app. And of course you can access business logic through a php API
It is not a very good idea. Unless I’m missing something, webview requires 3rd party plugin and generally does not work with unity well. To display a web page you need to jump through several hoops.
I’d recommend to use webpage or a normal application instead.