Communication between multiple user sessions in HTML5 using Windows Azure notification service - javascript

We are building a HTML5 application, we have a need for colloboration between two users the same way as in Google Docs two users can simultaniously edit a document and they can see each others changes.
In our case the document is never stored at server side. And we will only have HTML5 app running in IE10 on XBOX, Windows PC (7 or 8) and Windows Phone (7.5 and 8).
The users will be on same WiFi network.
Where can we find some samples to learn how we can use Windows Azure services/ Mobile services for this scenario.
Thanks,
Navneet

You are probably looking at something like this:
http://laktek.com/2010/05/25/real-time-collaborative-editing-with-websockets-node-js-redis/
For HTML5, you can use Websockets...which can be implemented in Azure using Node.js or using the SignalR (http://signalr.net/) that abstracts websockets/polling in ASP.NET and runs in Windows Azure.

Related

Electron converted to uwp--problems when submitted to the windows store

Here is what microsoft told me.Is it possible to browse the web without using the framework provided by microsoft??
Please take the following action
We reviewed your submission and identified some changes that are needed before we can publish or update the app. Please make these changes and resubmit your app. For more information, contact reportapp#microsoft.com Please include your app ID so we can act quickly.
Capabilities : 10 Centennial Active Presence Check
Notes To Developer
Your app has not been approved for the Centennial program.
Tested Devices: (Win 10 S) Microsoft Surface Laptop, Acer Iconia W700
Capabilities: 10 Centennial Win32 Presence Check
Notes To Developer
Your account has not been approved for the Centennial program.
Tested Devices: (Win 10 S) Microsoft Surface Laptop, Acer Iconia W700
App Policies: 10.2.1 Browsers
Notes To Developer
Because your app browses the web, it must use the Windows Platform HTML and JavaScript engines. You can find information about the platform here:
dge Developer Blog: https://blogs.windows.com/msedgedev/2015/08/27/creating-your-own-browser-with-html-and-javascript/
GitHub Browser Project: https://github.com/MicrosoftEdge/JSBrowser/tree/v1.0
XAML WebView API: https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.webview.aspx
HTML WebView API: https://msdn.microsoft.com/en-us/library/windows/apps/dn301831.aspx
Tested Devices: (Win 10 S) Microsoft Surface Laptop, Acer Iconia W700
here is the screen shot
Store Policy 10.2.1 seems pretty clear on this:
Products that browse the web must use the appropriate HTML and JavaScript engines provided by the Windows Platform.
So no, you can't browse the web without using Microsoft's own framework for doing this.
I can't say how the store detects submissions using alternative frameworks, but personally I wouldn't spend any time trying to find a way around it. Even if there was an alternative way (and I'm not saying there is), I would expect Microsoft to wisen up to it in time and kick out of the store any apps using it.

opencv,node.js and android communication

I have developed a program which detects human in real time(webcam) and displays it to the webpage of the local network. This is done by creating a server and websockets using Node.js and opencv.
Now, I have to develop an android app where i should get a notification everytime when the human is detected from the webcam video of a local host. How can i achieve this using node.js server and android interfacing?
Any suggestions or inputs with code examples would be more helpful.
Try using ionic to convert between webpages and android. Then use push notifications to alert the user.

How to access windows certificate store in javascript?

I want to access the windows certificate store through javascript... I want to develop a web application and wants to validate the login user against the certificate by reading it.
As far as I know it is not possible from a web application without using native bridge (fir instance through some java applet or activeX component).
There is currently a W3C working draft for a Web Cryptography API. Some browser vendors are currently working on this API (Mozilla or Microsoft) but it is far from being production ready.

Is It Possible To Use Push Notification Windows 8 Metro App's With Javascript

We have a Windows 8 application which was developed with JavaScript and HTML.
Now, i want to add push notification functionality to our application. But after i some research i realized that only C#, VB.Net, C++ and XAML applications support this feature.
Also because of some reasons we can't use Azure; so i have to develop server-side and host our Windows Servers.
Is there any way to accomplish this?
For the client side please check MSDN documentation here:
http://code.msdn.microsoft.com/windowsapps/Push-and-periodic-de225603
As for the server side, Pushwoosh.com is planning to support win8 push notifications till the end of September.
Javascript apps on Windows 8 are not incompatible with Push Notifications - you have access to all Windows Runtime functionality from Javascript/HTML5 apps.
For example, see http://msdn.microsoft.com/library/windows/apps/Hh465412 "How to request, create, and save a notification channel (Windows Store apps using JavaScript and HTML)" for how to obtain a push channel notification channel in your JS app.

Can I create HTML 5/JS application that calls windows phone 7 silverlight app

I want to build 1 UI for several phones (windows phone, Android, IPhone, etc).
My plan is to create an HTML5 UI, and use JS to invoke applications that are installed on the mobile device.
For example, I create windows phone 7 application without UI, and invoke functions of this application from the JS in the HTML 5 UI.
Same goes for android, IPhone, etc.
Is this plan feasible at all?
- How can I call windows phone 7 silverlight app/Android from JS?
Calling a native app from the browser is
possible on iOS: Opening Native App. from Safari
possible on Android: Launch custom android application from android browser
impossible on Windows Phone 7
On iOS, you can't create a web app that calls native code, period. You mention that you want the app to have no UI, so I'm assuming you want to have a web app that invokes native code which in turn causes something to happen in the web app, or even causes something to happen on the device. Won't happen. You can use the iPhone's Custom URL Scheme to LAUNCH an application with given parameters so that when it opens it immediately does something, but you will get kicked out of the browser and in to your app. And App Store Guidelines wouldn't let you make an app that has no UI. It also doesn't allow for the creation of apps that are just WebViews wrapped around HTML.
On Android, I would imagine that you could create an app that is nothing more than a WebView that loads your webapp, and in that way you would have access to the native code you wrote for the device, but I don't think that would meet up in the middle the way you want it to when it comes to having the native code manipulate your web app. Plus Android UI's are mostly XML with a little bit of backing code so at that point you may as well be making a native app.
The browser in Windows Phone 7 does not currently support HTML5, though it is expected to arrive later this year. That said, I would extremely surprised if there was ever a public API that enabled a web site to open an application on the host device and I'd be surprised if this was allowed on Android or iPhone, too.
The only application that I'm aware of that exhibits this behavior is the YouTube application. If you visit YouTube.com on the WP7 browser, then it either launches the YouTube app if you have it installed, or prompts yout to download and install it. So, the capability is there, but I doubt very strongly if Microsoft would ever open it up beyond a close partnership for specific applications.
In Windows Phone 7, you can use the WebBrowser control within an application to host/browse web content, and from the application you can call javascript methods exposed by that page as described by Shawn Wildermuth in his Navigating with the WebBrowser Control on WP7 post.

Categories