Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Cross-platform webview or easy scheme for callbacks?

Discussion in 'Editor & General Support' started by dmko, Jun 21, 2016.

  1. dmko

    dmko

    Joined:
    Jun 15, 2014
    Posts:
    65
    short version:

    Is there any best-practices or solution for adding a WebView across platforms?
    (specifically - windows, osx, ios, android. editor for testing is icing on the cake)?

    longer version:
    I am trying to add a webview for login/registration forms that work with browser redirects (i.e. not just html rendering) - but nothing more than that. It needs to render custom urls and pages, not necessarily just oauth from the standard providers.

    Unfortunately it seems the various products out there for Web Views break into the following categories:

    1. Easy to use and on asset store, but mobile only [1]
    2. No inherent Unity support (and possibly windows only?) [2]
    3. 32-bit only and unsettling reviews in the wild [3]
    4. Supposedly great but desktop only [4]

    Another alternative I'm okay with is opening a web browser and then hooking back into the app when the finish the flow. It's not the ideal solution, but I'm okay with it. In any event, unfortunately it seems doing this cross-platform is also very tricky, and not really scalable when releasing different apps that are meant to use this same system.

    This seems to me like a very common scenario, and yet I'm having real trouble finding a common solution.
    Any advice?

    References:

    [1] uWebView2 & VoxelBusters:
    https://www.assetstore.unity3d.com/en/#!/content/32461
    https://www.assetstore.unity3d.com/en/#!/content/31086

    [2] CEFSharp: https://cefsharp.github.io/

    [3] Awesomium: http://www.awesomium.com/

    (e.g. their blank page on Unity - http://wiki.awesomium.net/unity/webuicomponent.html and very recent comment from someone "Is Awesomium now dead or what... Unity 5.3.3 & Awesomium Unity Plugin v1.7.4 for Mac doesn't work" - http://answers.unity3d.com/questions/945207/unity3d-v5-awesomium-currently-compatible.html)

    [4] Coherent UI: http://coherent-labs.com/technology/
     
    Last edited: Jun 22, 2016