Detect the underlying OS in a Chrome Packaged App - google-chrome-app

Since packaged apps can run on different platforms, is there any way to distinguish between Windows and Mac ?
I would like to show some help vis-à-vis keyboard shortcuts and being able to detect the OS would help in for example showing Command ⌘C or CtrlC accordingly.

You can also use the new chrome.runtime.getPlatformInfo API (https://developer.chrome.com/apps/runtime.html#method-getPlatformInfo, available since Chrome 29).

You can use window.navigator in JS. Typically that will have the information you're looking for. Probably in window.navigator.platform.

Related

Making Chrome web app standalone desktop program

Google announced that they drop support for web apps in Chrome.
Basically, web app is a local HTML/CSS/JS app that runs in a separated custom "standalone" Chrome window.
Is there any way (preferably easy), to convert this web app to a real desktop app that not depend on Chrome in anyway? Using maybe NodeJS? If yes what is the right way to do it?
Thanks.
You could try one of these tools:
https://applicationize.me/
https://www.bzgapps.com/coherence
https://fluidapp.com/ (for Mac only)
Don't know about "easy", but it seems to me that the natural evolution is to Electron or NW.js, and both of these are mentioned in the Google blog article on this subject. (I'm moving to Electron.) Both have advantages over Chrome Apps, mostly that they are true desktop applications. To cite one example, you can now manipulate the menu bar, something out-of-bounds for Chrome Apps.
Pure JavaScript code in your Chrome App, such as anything to access the internet, should move over directly. Same for much UI stuff, as you're still using a browser window for the UI. The app will, however, have to be restructured.
Added Note: Chrome Apps ran on 4 platforms: MacOS, Windows, Linux, ChromeOS. Electron and NW.js apps won't run on ChromeOS. So, the ability to write a four-platform completely binary-portable app is going away.

WinJS.UI.DatePicker in Universal App

Apparently WinJS.UI.DatePicker since WP 8.1 is no longer supported in WP os, while it is in W8.1
Honestly, to me, this makes no sense at all, but in VS the debugger simply rejects the arguments, so it's pretty clear I can't use it.
Since I was trying to develop a Universal app, how can I make a Universal DatePicker, without building it programmatically myself?
I can't believe Win ecosystem does not provide anything like that...
At the current time the DatePicker control is not supported on Windows Phone 8.1 for WinJS applications, see this documentation (http://msdn.microsoft.com/en-us/library/windows/apps/dn632432.aspx) for more details.

Open with Google Chrome app

Is it possible to make a Chrome app handle certain types of extensions?
For example, setting a Chrome app to be launched when you double click a .txt file, instead of launching the Chrome app first and browsing for the file.
Yes, on ChromeOS via file_handlers. On other operating systems, not yet.
The bug to track this work on Windows: https://crbug.com/130455
Linux: https://crbug.com/138665
I'm not sure if / where there is a mac bug but it is also planned.
This should help you : http://www.computerhope.com/issues/ch000128.htm
Especially the part at the end of it.
In the future - Google it, it was like the 2 result.

MobileESP for Joomla

I can't seem to find a good answer to this anywhere. When using the "none / custom" mobile app service in the configuration for MobileESP in Joomla! it seems like you are required to enter the "device detection functions used".
Instead of entering every mobile device specifically (windows phone 7 os, ios, blackberry etc), isn't there a single setting that covers "all" mobile devices? I haven't been able to find that, but kind of expected it to exist. If not I'd be pretty disappointed...
I have not installed the Weever App, because the only thing I need is to redirect to a mobile site and support mobile devices to also view the full version (by adding a url parameter like "?full=1").
Any help will be appreciated! I have very little PHP experience, and even though I know you can add this functionality with a bit of PHP code in the header I'd rather just use a plugin for now.
Have you contacted the Weever folks yet? That would be the best place to start first.
I'm the founder and maintainer of the MobileESP code library. However, I'm not familiar with how Weever has integrated MobileESP support into their plugin.
If you were interested in MobileESP all by itself, then I would suggest you use one of the generic detection methods, depending on your goals. Specifically:
DetectIphoneTier(): Use this only if you want to detect modern touchscreen smartphones like iPhone, Android, Windows Phone, etc.
DetectMobileQuick(): Use this if you want any mobile phone, including old BlackBerry and Symbian smartphones as well as feature phones.
Links:
Weever on Joomla: http://extensions.joomla.org/extensions/mobile/mobile-apps/17890
MobileESP API reference: http://blog.mobileesp.com/?page_id=53

iPhone Browser Live Testing

I'm using win7.
and i have website which i want to test it with iPhone browser environment.
which it's use most flash (jISFR).
this is the website i talking for,
http://www.hamuranalodge.com/
may you can see menu navigation is using flash jSIFR, which it's seems not work in iPhone, and want to fix it. of course i need iphone Testing for it.
Is there somebody know how i can test it with iphone browser?
may there is a software can do it?
or a website give service like that?
Thanks
Not a perfect solution but you might be able to test it on the Android browser instead. The SDK runs on all major OSs and is free to download and install. Just make sure that flash support is turned off. I'm pretty sure iPhone and Android both use WebKit so you should get similar behaviour on both.
You could use the iPhone simulator if you have access to a Mac.
There are sites like this:
http://www.testiphone.com/
but this one doesn't work very well, at least not for this particular request. Go there and point it at www.worldsbk.com - it renders the Flash block on the top right hand side just fine on my desktop computer (Firefox3 Mac OS X), but have a look here:
http://www.flickr.com/photos/bigiain/5037577763/
to see a screen grab of that page from my iPhone... Note the big grey block where the flash bit should be...