I'm currently trying to write a code that utilizes Cortana's Speech Recognition. I want to create a command that launch website for e.g "Mark, Open google page" Mark is the AppName declared in the VCD. I'm currently using:
Launcher.LaunchUriAsync(new Uri("https://google.com"));
But the documentation for LauncUriAsync() states that "The calling app must be visible to the user when the API is invoked." Is there an equivalent API i can use that doesn't need the calling app to be visible?
Related
i have an esri based mapping app which is capable of routing and navigation.
i need to make the system know that my app is capable of routing and navigation when a third party app sends a navigation request and it should list my application among the installed maps app to the user
here is my scenario :
lets say my app is "App A" and a third party app is "App B".
App B has a button when tapped performs navigation,before opening navigation request it launches a selection window in which the system lists the maps app installed in the phone.so the user choose any one.
i need the system to add my app App A to the selection list.
i was able to use intent filters in android to achieve this easily.
what i tried in swift :
1)created a url scheme for comgooglemaps
2)system shows google maps in the app selection window for App B (even though phone doesnt have google maps installed) but opens my app and executes my task as needed
3)if google maps is installed,system opens google maps and my app doesnt receive the callback..
how do i achieve this in swift..
I need my app to be listed here among these Apple and Google maps and handle the request
please help ?
This is something which is not possible in iOS as of now
AFAIK and from the information gathered from other devs you cant let yourself list app among other apps
The only possible way is to create a URL scheme in my app and let the developer of the third party app to talk to my app using the scheme.
How can I create a Chrome extension that:
provides an application icon in the application menu and on the desktop
on click of the icon launches a particular website in Chrome's application window mode
chrome.management API to the rescue. You can create a website-type app programmatically with chrome.management.generateAppForLink.
Please note that the API has an undocumented restriction, it has to be called from a user gesture.
The closest you get to create an icon on the desktop/dock is chrome.management.createAppShortcut.
Display options to create shortcuts for an app. On Mac, only packaged app shortcuts can be created.
This automatically highlights 2 caveats:
It does not do so silently, it shows a dialog to the user
In case of OS X, website apps are not eligible
Note that your app will still automatically appear in the Chrome's App Launcher.
I'm creating a Windows Phone 8 app (Store apps) in which I will have some links for the user to open other apps.
My goal is to hide or show only the links for which I have apps that can handle them.
For instance, I have a link for
mymoneyapp://user=123
and another for
mymusic://user=123
So, if I have an app that can handle the mymoneyapp scheme I want the link to show if not then I hide it.
The only why I found to test this is using
LauncherOptions options = LauncherOptions();
options.FallbackUri = new Uri("http://myfallbackpage.com");
Launcher.LauncherUriAsync(new Uri("mymoneyapp://user=123"), options);
But in this case I get my fallback Uri launched if no app can handle that schema.
Is there any way just to test if an app can launch it without actually do it?
There is no API for this on Windows Phone 8. Windows 10 adds Launcher.QueryUriSupportAsync to allow checking if there is a handler before launching it.
https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.queryurisupportasync.aspx
I have read about Auto-launching apps from another app on Windows Phone. I have a app that shows some videos, these videos are mainly from DailyMotion. Now my Question is if there is any possibility to check, if DailyMotion App is installed on my Phone, than open this video in this DailyMotion app instead of browser.
You can use custom URL to launch the dailymotion app. For example, using the line of code
string dailyUrl = "dailymotion://myurl";
Windows.System.Launcher.LaunchUriAsync(new Uri(dailyUrl));
It will automatically open the dailymotion app if it is installed on the phone, but otherwise it will probably perform nothing. So with the previous answer explaining how you might check if the app is installed, and this piece of code, you might be able to perform what you need :)
You cannot get the list of applications that are installed on the Windows Phone that are published by someone other than the publisher of the calling application.
There is a way, however, to get the list of applications that are installed on the device and are originating from the publisher of the caller ape.
Have a look over here
IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
apps.First().Launch(string.Empty);
I need to create a web application which will be stored in the traybar of Windows, this to prevent users from accidentally close my application (without the need of a pre-close alert message).
I thought that Google Chrome's background apps could be the right way to go, mostly because I don't need cross-browser compatibility and I have to choose which browser my users will use to run this web application.
The only problem is that I don't understand if I can achieve what I need with this feature.
I've found only this example of background app in Chrome countdown app
But this app uses the "background page" feature, that is different from what I'm looking for.
How can I let a Chrome app be minimized in the traybar (or even in the taskbar would be ok) instead of be closed?
Try to use node-webkit (chromium + node.js) for it: https://github.com/rogerwang/node-webkit
It allow to create any web-app and it support tray icons: https://github.com/rogerwang/node-webkit/wiki/Tray
You can download my windows example app here: https://mega.co.nz/#!xQMzgbxD!S58G-V23QLNRDFC10xso41-T2V8OZQVsQEH-lr46R3s
If you want exactly chrome, try this NPAPI plugin example: http://minimizetotray.googlecode.com/files/SourceCode.zip from http://habrahabr.ru/post/73003/
Unfortunately, I don't think you will be able to achieve exactly what you're after. You might be able to combine the two solutions below to nearly achieve your requirements. However, I don't think the type of control you are after is available via Google Apps.
Google App Launcher
The Google App Launcher would fulfill the "stored in the traybar of Windows" requirement.
The Chrome App Launcher is the hub of all your Chrome apps and with it
you have quick access to all of your apps from the desktop. When you
install an app from the "For Your Desktop" collection of the Chrome
Web Store, you get the App Launcher. The App Launcher requires you to
sign in to Chrome to enable apps that need access to your Google
account.
Manage apps
When you download a new app that enables App Launcher, the apps from
your Apps bookmark on Chrome New Tab page will also appear in the App
Launcher. Managing apps in the App Launcher is simple.
Add more apps: Click the Chrome Web Store button in your apps list and explore the apps in the store.
...
Background: Extending Your App's Life
You mentioned background apps in your question but I would recommend you explore it further. It essentially provides the "prevent users from accidentally close my application" requirement that you stated. This isn't foolproof (see bold sentence below) but it is about as close to the requirement I think you will be able to achieve.
As of Google Chrome 10, the background feature lets a hosted app run
as soon as the user logs into their computer—before the user launches
Chrome or the app—and to continue running even when Chrome or the app
has no visible windows. However, if the user explicitly quits Chrome,
the browser and app both exit.