Shuffle iT Forum

Dominion => General Discussion => Topic started by: RosieGirl on 30 October 2017, 01:37:02 AM

Title: Android Compatibility?
Post by: RosieGirl on 30 October 2017, 01:37:02 AM
Does anyone know when playing Dominion on an Android device will be fully functional? We are at a great disadvantage during some games.
Title: Re: Android Compatibility?
Post by: yed on 31 October 2017, 08:29:14 AM
I also hope, that reorder in Android will be fixed soon after Noctrune. It is currently my #1 issue here.

To be clear I don't mean Android app. Just make it work in browser on Android tablet.
Title: Re: Android Compatibility?
Post by: yed on 31 October 2017, 08:31:49 AM
There is a simple solution/workaround:
You click on first card to swap, than on second.
Title: Re: Android Compatibility?
Post by: TimSharrock on 31 October 2017, 07:06:09 PM
unfortunately that "click on one, than another" does not  work for me. Touching a card in the grey "reorder box" makes it fly temporarily to the top-left corner of the box, and fly back as soon as I release it, but I have not found fast or slow touches, in any order make any difference to the final order of the cards. (on a Pixel C tablet, with Chrome, running Android Oreo)
Title: Re: Android Compatibility?
Post by: yed on 31 October 2017, 08:02:07 PM
I meant that as a proposition for solution/workaround. Sorry for the confusion.
Title: Re: Android Compatibility?
Post by: TimSharrock on 31 October 2017, 10:56:02 PM
yes, that would be a useful enhancement
Title: Re: Android Compatibility?
Post by: pregnantbird on 28 November 2017, 04:16:45 AM
Hi, I also try to play Dominion on an Android tablet.

The issues with reordering are there but there is a bigger issue for me which I think could be solved quickly. I know that Android i on the TODO list (http://forum.shuffleit.nl/index.php?topic=2402.msg10741#msg10741) of Stef, I just found some links, which could maybe help for a quick fix.

I tried different Android browsers:
1. Chrome & Firefox:
1.1: Wrong screen size
Most things are fine but some buttons are offset and partially offscreen. I think this comes from using the wrong screen size for for the positioning. The height of the address bar is not taken into account for the calculations. I found a good article about this here Calculating the real screen size tutorial (Javascript) (https://software.intel.com/en-us/html5/hub/blogs/how-to-get-the-correct-android-screen-dimensions)
1.2: No Full screen
The useable screen size is drastically decreased by the address bar which can not be hidden by the settings. Only 580px height of my 800px height screen are showing dominion (30% lost). It would be great if the address bar would be hidden during games, which can be done by Javascript. Maybe this link helps you Full screen tutorial (https://developers.google.com/web/fundamentals/native-hardware/fullscreen/). There are some Firefox extensions to add a full screen button but it did not work. A screenshot of Firefox is attached.

2. Opera:
Only the loading page shows up and the login screen never shows up. It's ok I don't use Opera :)

3. Full Screen browser:
There are some browsers for Android, that work in Full screen mode (Browser in App store (https://play.google.com/store/apps/details?id=com.xyz.fullscreenbrowser&hl=en)). The buttons are not offset in this browser and everything works fine. Except one annoying bug, where you are kicked out of the account as soon as a game is ended. You have to login again with that annoying on screen keyboard. This takes long enough that most players leave the table.

All options have the (partly known) minor additional issues of:
1. The reordering
2. When longclicking on a card to read it it shows but if you can afford it, you also buy it.
3. After writing something in the chat, the onscreen keyboard shows up everytime you click on something.

Maybe only fixing the kicking bug after the game would help me a lot. Enabling full screen in Chrome & Firefox would be amazing :)

Btw, a big general thank you for the otherwise great implementation!
Cheers, pregnantbird
Title: Re: Android Compatibility?
Post by: Ranna156 on 06 January 2018, 10:17:43 AM
I too wish the re-order would work on android devices. Very frustrating when you can't re-order cards on some boards.
Title: Re: Android Compatibility?
Post by: Stef on 06 January 2018, 11:43:01 AM
Quote from: Ranna156 on 06 January 2018, 10:17:43 AM
I too wish the re-order would work on android devices. Very frustrating when you can't re-order cards on some boards.

Thanks to Ingix this now works on dev, so it will be in the next release.
Title: Re: Android Compatibility?
Post by: TimSharrock on 06 January 2018, 02:18:45 PM
wonderful, I am looking forward to it!
Title: Re: Android Compatibility?
Post by: pregnantbird on 07 January 2018, 12:05:05 AM
Thank you!! I'm looking forward to it!!
Title: Re: Android Compatibility?
Post by: Ranna156 on 11 January 2018, 05:03:09 AM
Quote from: Stef on 06 January 2018, 11:43:01 AM
Quote from: Ranna156 on 06 January 2018, 10:17:43 AM
I too wish the re-order would work on android devices. Very frustrating when you can't re-order cards on some boards.

Thanks to Ingix this now works on dev, so it will be in the next release.

great! Thanks for the update!
Title: Re: Android Compatibility?
Post by: pregnantbird on 16 January 2018, 04:42:17 AM
Quote from: Stef on 06 January 2018, 11:43:01 AM
Thanks to Ingix this now works on dev, so it will be in the next release.

When do you plan the next release? I wish i could play on dev :)
Title: Re: Android Compatibility?
Post by: Ingix on 16 January 2018, 10:49:44 AM
Soon (TM). Don't get your hopes up that much, it's a smell step, nothing more.
Title: Re: Android Compatibility?
Post by: pregnantbird on 16 January 2018, 10:52:33 AM
Quote from: Ingix on 16 January 2018, 10:49:44 AM
Soon (TM). Don't get your hopes up that much, it's a smell step, nothing more.

Still smells good!
Title: Re: Android Compatibility?
Post by: pregnantbird on 20 January 2018, 07:13:34 AM
Hi, thanks for the update! I was very excited to try it out and tried to start a new game with a bot.

Unfortunately the update moved the buttons around even more and the "ready" button is now outside of the screen and I can't even start the game. It's in both, landscape and horizontal mode of my tablet and smartphone. Before the update it was barely visible and clickable. Sorry to bug you with it!

Edit: I could start a game in the inconvenient full screen browser which kicks you out of the session after every game. The reordering works good! There is always a orange boarder around the card one to the left of the card i am moving, which might be a minor bug.
Title: Re: Android Compatibility?
Post by: yed on 20 January 2018, 09:37:55 AM
Try selecting "Desktop site" from Android Chrome menu.

It is also sometimes possible to trick Android Chrome into going to fullscreen. You need to zoom in, scroll down and zoom out. Unfortunately it does not work always.
Title: Re: Android Compatibility?
Post by: pregnantbird on 20 January 2018, 12:26:49 PM
Hi :) both of your tips helped a lot! With the desktop site i can find the ready button in portrait and I managed to full screen with your wizardry. How did you find out?
Title: Re: Android Compatibility?
Post by: Ingix on 20 January 2018, 07:06:36 PM
The site not fully showing (and buttons being lost in the area 'below') is a problem. I'm not totally sure why it happens.

About the orange border: That is a fallback mode for the reorder window. In case you have problems moving a card, you can just click/touch it and it will exchange places with the orange card. If you can move the card for more than a few pixels, this border vanishes.