How to start a WinRT app from a web application? - mobile

Suppose I have a video hosting site, like youtube. When user clicks on a link on the site, I want to open a WinRT application for a better viewing experience, how would I do that?
How do I pass parameters into the WinRT application, to let it know what video it should stream? I need to be able to go back and forth, so I assume I can introduce a hyperlink to go back to the site from the app.
The other possibility is to embed the application on the site itself. How would that work? Can you still inline an applet style application on the site itself (eg. flash/silverlight)?

It is possible to launch a Windows Store app, given that you know the URI scheme associated with that application. For example, the Games app has the xboxgames: associated with it. If you insert a link with that URI scheme, the shell will pick it up as an internal reference. Read more details here.
You might also be interested in reading more on how to connect your website to a Windows Store app here.

Edit: It is possible to have an associated url: see accepted answer from Den Delimarsky.
Alternatively, a Windows Store app can declare file type associations. So you could make the user download a file (for example "video.customExtension"), which could contain informations, such as the video the app should play. In the same way as it works for Office Live Meeting when you download a meeting file to start a meeting.
If the user download that kind of file from your website, and that he doesn't have the corresponding app installed, he will be prompted to look for an app that can open that file in the store, and he will find your app.
And finally, no you can't embbed an Windows 8 Store app in a webpage.

Related

Is it possible to design a QR-Code that redirects to the Playstore or Appstore depending on the device?

Title basically. Goal is to redirect to the Appstore if an apple user scans the code or playstore if an android user scans it. Any common way or is it just technically not possible?
Edit: I don't care about programming languag etc. Goal is to create something like an ad for my app with a QR-Code that redirects the viewer to the appstore/playstore to download the app. I could put 2 seperate QR-Codes on the ad/flyer for each store but was wondering if it is possible to do it with one

iOS Universal link support in salesforce

We are looking to deep link our mobile application from Web page.
As per apple's documentation it require to have apple-app-site-association json file at root of https://xxx-salesforce.com/
Can anybody tell me how to place apple-app-site-association json file at root of salesforce domain?
We are using a visual force page where we want to put our app links.
Regards,
Manish Kumar
You write that you are interested in deep linking into your mobile application from a web page. As you mention the AASA file, you must be talking about an iOS app and not an Android app. Check this link for a good overview of what is required to set up deep linking to iOS apps: https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9/. Note that you would have to configure your own AASA file and host that on your own domain, not the Salesforce domain. You would then be able to use the deep links you create on Salesforce pages - or any other web pages, for that matter.
If I have misunderstood and you are actually hoping to deep link into an app that has been written by Salesforce, well this is a situation where Salesforce themselves would need to host the AASA file and configure the iOS project to support the deep linking scheme. This is something that only Salesforce is in a position to do.

Is Metro a good fit for apps that access the File System?

I understand that Metro limits the access an app has to the user's computer. Can anybody verify this, as I am considering creating an email client that will work with at least yahoo/at&t.net and gmail. Will I be able to access a user's email (assuming they provide their username and password, of course) with a Metro style app, or will I need to stick with creating an "old-fashioned" Desktop app for this scenario?
Metro applications can access the users Document Library, Picture Library, Video Library and Music Library without user intervention if the developer adds those capabilities to the Package.appxmanifest (double-click on it in Visual Studio and go to the Capabilities tab).
Even without these capabilities the app can read and write in its own local folders. And even with out these capabilities the app can prompt the user to open a file anywhere on disk using the FileOpenPicker. So yes, absolutely Metro can be used for an e-mail client.
For a sample of using FileOpenPicker (i.e. to add an attachment to your e-mail message) see:
http://code.msdn.microsoft.com/windowsapps/File-picker-sample-9f294cba
Metro can easily be used to create email clients. For something like this, you would be syncing data between the mail-server and the client.
Metro apps have limited access to the filesystem. But they can access Application Data Storage and isolatedStorage which can be used to store data pertaining to the application offline. This helper library helps store structured data in isolated storage, and might suit your needs.
For your scenario, a metro application would be a very good fit. However, the reach of metro applications will be decided by how well Windows 8 does after launch.

How to upload files via dropbox or skydrive without browser authentication

I have a big 3d game that lets players build and create interesting and huge worlds and save them to disk on windows phone 7.
The game uses XNA and does many things that are not supported in silverlight or SLXNA hybrid apps.
I want to let the players backup there save files to their skydrive (preferable) or dropbox but after more than a week trying to get some kind of implimentation working I have came up with nothing...
It seems that every single sample for eather is built in (and requires) siverlight and a web browser to work.
Does anyone know of a way to overcome these limitations? I have almost 100,000 people with my game and the most requested feature is cloudbackups...
Thanks!
mmmm i think it wouldnt be difficult.
I worked in a web app project where the server do all the authentication stuff. Of course you always need to open a browser windows to let the user enters its credentials.
When the user enters its credentials, skydrive, dropbox or whatever gives you a TOKEN a then you use that TOKEN to do operations in the name of the user (eg: upload file to dropbox) doing REST (webrequest) and JSON
do you have any experience with REST, JSON, etc?
I think, you will need to use Oauth for desktop (here's google explanation https://developers.google.com/accounts/docs/OAuth2?hl=es)
Did you see un / official sdk?
skydrive: http://msdn.microsoft.com/en-us/library/live/hh826521
dropbox:
https://www.dropbox.com/developers
http://sharpbox.codeplex.com/
Greetings from Argentina
HERNAN
PS: sorry about my awful english :)

Is it possible to deliver digital content to a user's google drive account?

Without using Google Checkout, I would like to provide a link that allows a user to download digital content directly to their Google Drive account. Does anyone have advice on how this might achieved?
We have our own shopping cart system and host my own content.
We simply wish to provide a link to our content that transfers the digital content to the location of the consumer's choosing.
--Charles
We currently don't provide such widgets for web developers. You can however use the REST API to accomplish such a thing.
Please refer to the Drive API Documentation for how to do it server-side. For a client-side application (full JavaScript), you can refer to the StackOverflow answer.
The Drive SDK currently requires applications to be installed in a user's account through the Chrome Web Store; we are actively working on making the story better for users and developers so stay tuned!

Resources