07-28-2018, 11:52 AM
(07-28-2018, 01:37 AM)Tim Curtis Wrote: There could be some sort of issue with moOde 4.2 and Add to home screen...
...
-Tim
There's more than one thing going on here.
1. There's a difference between saving a shortcut to the home screen and switching players within the moOde UI. In the first instance, the OS (note that this can be done in iOS and in Android) creates some kind of browser launcher "invoker". Captured in it is the URL which was open at the time and also the site icon. This URL likely includes more than the base URL (see various peoples' cries for help on the Interweb). In the second instance, we are feeding the browser just the base URL.
2. There's a difference between opening the browser via the Home Screen shortcut and opening a new page via Tim's switcher code. I don't have the programming chops to say what that difference but from the Android docs, for example, "Each shortcut references one or more intents, each of which launches a specific action in your app when users select the shortcut." It's patently obvious that the intent referenced in our browser shortcuts isn't the primary action just by looking at the state of the browser when it opens. There's none of the regular interface. I don't know how the machinery works to get to the same state with the switching mechanism.
Not surprisingly, different browsers and different OSes yield different results.
I'm not going to try to reinstall earlier releases of moOde (not sure I still have any) but here's the results of some random tests with current moOde.
On my iPad, using Safari I'm seeing the same "open new tab" behavior @FizzyTea reported when I switch players from within a moOde UI opened from a home screen shortcut. I can't figure out how to create home screen shortcuts with either Chrome or Firefox, but in each of them switching among players opens the new player's UI in the same tab.
On my Android tablet I get an interesting variation on a theme using Chrome. First I created a home screen shortcut for my primary moOde player. Then I open it. The primary player's UI opens in the restricted interface. Then I switch to a secondary player from within it. The secondary player's UI opens in the regular interface (but no new tab). Now comes the fun bit. If I switch back to the primary player from within moOde, the primary player's UI opens in the restricted interface again! This is true whether or not I also have already created a home screen shortcut for the secondary player.
On my Linux laptop with Chrome, switching among players occurs within the same tab.
Just my USD0.02 worth.
Regards,
Kent