authentication-unity icon indicating copy to clipboard operation
authentication-unity copied to clipboard

Android Support

Open cmadh opened this issue 3 years ago • 4 comments

Reading the docs I assume there's no android-support yet? Can you clarify and tell about if it's planned and if there's an estimation on when android support will be available if at all?

cmadh avatar Oct 03 '22 11:10 cmadh

Hi @cmadh , You can implement an Android browser to be able to use the package if you need it immediately. There is no eta currently, but I will implement it asap.

ibrahimpenekli avatar Oct 03 '22 19:10 ibrahimpenekli

@ibrahimpenekli thank you for the quick response. I'll take a look at this when I have some time left, it's not super urgent yet.

cmadh avatar Oct 16 '22 13:10 cmadh

Hi Ibrahim thanks for creating such a great package.

I would like to understand more on how to actually go about starting to implement an android browser. I have read your standalone but still clueless on what all things will be needed for android.

Response would be highly appreciated.

AbhiKana avatar Jul 14 '23 13:07 AbhiKana

@AbhiKana Hi Abhishek, thanks!

Lets say you decide to use CustomTabs browser;

  1. You should create an android package which should contain CustomTabs browser implementation.
  2. Create CustomTabs browser implementation (which calls your android package implementation) on Unity side, using Packages/com.cdm.authentication/Runtime/Browser/IBrowser.cs interface
  3. Done!

But I think you need some configuration to catch browser result on Unity. We do some url scheme configuration on iOS but Im not sure on android platform.

Here is an example; https://github.com/peterhorsley/Unity3D.Authentication.Example

ibrahimpenekli avatar Jul 17 '23 10:07 ibrahimpenekli