gpm.unity icon indicating copy to clipboard operation
gpm.unity copied to clipboard

WebView Multi Instance Support.

Open mqasim30 opened this issue 1 year ago • 1 comments

Service

  • [x] WebView
  • [ ] AssetManagement
  • [ ] Communicator
  • [ ] LogViewer
  • [ ] Manager
  • [ ] UI
  • [ ] Profiler
  • [ ] Adapter
  • [ ] DLST

Summary

I am seeking guidance on efficiently creating and managing multiple instances of WebView within my project, each operating independently of one another. Specifically, I am interested in understanding the best practices, techniques, and potential challenges associated with implementing and maintaining these independent instances.

mqasim30 avatar Feb 16 '24 19:02 mqasim30

Hello @mqasim30

Thank you for using GPMWebView. Unfortunately, the function you inquired about is not provided in GPMWebView. If multiple WebView instance functions are supported, it is expected to be done in the following way.

  1. GPMWebView must provide features related to Texture.
    • The buffer of Android and iOS WebView must be passed to Unity texture.
  2. You need to manage instances of multiple WebViews.
  3. If a user wants to use a WebView instance, he or she must access it through Index.

thank you

spin-nhn avatar Feb 23 '24 06:02 spin-nhn