Is indexedDB available on Windows Phone 8.1? - windows-phone-8

Maybe a weird question as you would probably say, just Google it but I can't find a clear statement. When I do window.indexedDB or windows.msIndexedDB I get an undefined error. That would imply it's not available.
However, when I look at this page: http://msdn.microsoft.com/en-us/library/windows/apps/jj553412.aspx I get the feeling it should be available. Also when I check here: http://docs.phonegap.com/en/3.5.0/cordova_storage_storage.md.html#Storage it says that indexedDB is available on Windows Phone 8 (no mention of 8.1 though). So it seems to be supported or is it only supported when using PhoneGap? Or was it supported in version 8 and did they remove it in 8.1?

IndexedDB is not yet supported by Windows Phone 8.1, but there is a cordova-plugin-indexeddb shim based on WebSql.
To install the plugin use
cordova plugin add com.msopentech.indexeddb

Their WebSQL plugin works well too. It seems to implement WebSQL pretty well. The only difference I've noticed so far is that they don't support the readTransaction method (only transaction).

Related

native browser plugins alternatives to NPAPI

Hello as you might now NPAPI is deprecated.
What are the alternatives to this? I see skype released now the web version where you need to install a web plugin to make voice and video calls. Looking over what I installed I arrived to the conclusion that on chrome they are using Google Native Client: https://developer.chrome.com/native-client
But this one is not supported on firefox/safari (only chrome).
On Firefox/Safary I'm not sure what they are using.
So what are now the best alternatives for this kind of job where using c++ is mandatory (to extend an existing app and make it available as web plugin)
Silviu
After Chrome drop the NPAPI support, there is no-common technology support by Firefox/Chrome/Safari. You can consider about Firebreath 2.0. It allow you use one C++ implement to support different browser.
It's not released yet... If you like to try version 2.0, you can get source code from https://github.org/firebreath/firebreath (the "refactor" branch)
Note: version 2.0 make huge change, because the call between plugin and javascript are asynchronous! Upgrade from older version required lots of javascript change.

EventHandlerList does not exist on Windows Phone

i bumped into issue when I wanted to use EventHandlerList in Windows Phone application. Errro occured telling me it was not found even though msdn claims it is supposed to exist on WP platform. http://msdn.microsoft.com/pl-pl/library/system.componentmodel.eventhandlerlist%28v=vs.110%29.aspx Do you happen to know what I;m doing wrong?
The link you provided does not mention support of Windows Phone anywhere in the documentation.
Please be aware that Windows Phone 8 uses a subset of the .NET 4.5 framework, so not everything is present.

Clickonce: Appropriate for web site that is only supported in Chrome?

We are looking for an easy way for our users to download and install a small client widget (it is a windows app) used with our (much larger) web app.
Our web app is currently only supported in Chrome.
Our concern is that the clickonce support piece may be missing from most Chrome installs.
The questions:
-- Is clickonce really going to be useful in this situation?
-- What is the best option for "one click" download-and-install for Chrome on windows?
ClickOnce uses NPAPI which is being removed from Chrome. You will need to look at NaCl, Native Messaging or PPAPI instead of ClickOnce. There used to be browser extensions that you could use, however they have been removed from the store (or no longer work).
Using Chrome should not matter, so yes Click once will be useful in this situation.
The only thing you need to worry about is your clients using Windows and the appropriate version of the .net framework. I hope this helps.

Expression<TDelegate>.Compile() on Windows Phone 8

As stated in the doc, this method is not supported on WP8. But I tried it anyway and it works in the emulator. I dont have a test device right now, has anybody tried it already?
Expression.Compile was not supported in WP7, since it depended on Reflection.Emit which was not included in WP7. WP8 however now supports Expression.Compile. The Simple Injector IoC framework for instance, makes use of this internally and supports WP8 and Windows Store Apps.

How many versions of an NPAPI browser plugin do I have to make?

I know that if I write a C++ plugin, then I need to have Linux, Mac, Windows versions at least but what's the full list of combinations? NPAPI is supported by many browsers so does that mean the exact same compiled NPAPI plugin binary/installer/whatever for Windows is ready for use in all those browsers on Windows which support NPAPI? Or do you have to 'compile' the same plugin code separately for each browser in some way?
Yes, a single NPAPI plugin runs in every NPAPI-supporting browser on a given platform, as long as you don't do anything to specifically undermine that (e.g., some people make NPAPI plugins but then add XPCOM code to them, making them Firefox-specific).
Additionally, as you probably saw in the answer to your other question, FireBreath can be used to create a single plugin that can be made to work cross platform on pretty much all browsers, including IE on windows.
FireBreath strongly discourages using things like XPCOM for exactly the reason that smorgan mentioned.