How can i open any other application from my application like open ucbrowser from my wp8 app.
I think uri schemes works but i don't know how to implement that in c#. I want ucbrowser uri
whatsapp uri.
You can only navigate to the uri scheme if the application has registered it.
The relevant article is here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx
Here are the default app uri schemes:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662937(v=vs.105).aspx
Apps that have exposed and registered for a uri scheme should note it in this page here:
http://developer.nokia.com/community/wiki/URI_Association_Schemes_List
You call the uri like so, if it is available.
var uriSchemeString = AppuriScheme;
Windows.System.Launcher.LaunchUriAsync(new Uri(uriSchemeString));
Related
I need to create an application that should refer an external file for url.
The external file should be manually edited by the user in case of change in URL.
The application should deployed for both ios and android application.
please suggest any other method like create preferences variables that can edited by user
You can create page with a from (with your preferences) and save the date from the form in your localStorage. The localStorage has no expiration date but will be lost when the user removes the app from his device.
The localStorage is a part of Web Storage API which is supported by all modern/major browsers (proof). Since cordova actually serves your app as a web page you can use the Web Storage API as well (cordova documentation)
Documentation info about localStorage can be found here
I programmed a service for the teachers of a school a tool which they can use to automate their classroom.
For easier access, i want to implement authentication via URL. The teacher WLAN is on a seperate subnet than the others.
The URL is a subdomain of a domain I own and added a SSL certificate. Now I am ready to deploy some beacons for test purposes and I noticed that Google Chrome won't show the beacons with my internal URL. URLs like google.com and facebook.com work just fine.
The physical Web browser app recognizes the internal URL.
What should I do?
Unfortunately, you cannot use Chrome to display physical web URLs pointing to a private subnet. Part of the Chrome system is a server-side component hosted at Google that checks the URL, validates that it resolves, and pulls metadata about the page it points to. If the page is not accessible on the open Internet, this check will fail and Chrome will silently ignore the physical web URL transmitted by the beacon.
While you cannot use Chrome to display such URLs, you can display them in your own custom app using detection SDKs like the Android Beacon Library.
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
This is for doing OAuth with the Pocket API, it specifically states that using an embedded webview is a violation of the terms of use, all OAuth examples I can find on WP8 seem to rely on the embedded webbrowser to do the authentication.
Is it not possible to use the default browser in WP8 to do the authentication and then redirect back into the App? I have done this in Android before. Thanks.
Well, if you read their documentation, it says that you need to provide a redirect URL. I am not sure if it will work, but you could try adding URI association to your application and specify callback URL that will return back to your app.
Then, when your application is reactivated from the default browser, you should know that the user has authorized it.
Thus you could use WebBrowserTask for that, but I am unaware if you can call local app-URI from browser.
What are the URI schemes supported in Windows 8 apps? I have seen references to ms-appx: and ms-appdata: and some rare mentions of ms-resource: but I could not find any document that would be a list of the schemes (although I thought I have seen one in the past). I am wondering if URL.createObjectURL returns some other schemes, but I can't see a version of it for XAML apps. http://msdn.microsoft.com/en-us/library/windows/apps/Hh781215.aspx. Are there any other URI schemes supported in WinRT?
I believe the Metro js schemes. apply to xaml as well.
Some of those for xaml apps are listed here: How to Load File Resources (for XAML apps)
ms-resource: for xaml apps is listed here: ResourceLoader.GetStringForReference
URIs available in metro applications:
General form
<scheme>://<domain name>/<path>
Http
http://www.contoso.com/images/logo.png
App Package
ms-appx:
ms-appx:///default.html
ms-appx-web:
Content referenced via this scheme is loaded from the local package,
but runs with the abilities and restrictions of the web context.
File System
Can't be used directly. To use, obtain an IStorageItem and then use URL.createObjectURL
file://
App Data
ms-appdata://
Resources
ms-resource://
Dependent Packages
<domain name>:
URIs for WebSockets
ws: for unencrypted and wss: for encrypted. Used like this:
webSocket = new MessageWebSocket();
await webSocket.ConnectAsync("wss://www.example.com");
There now seems to be an article on Windows Dev Center that is focused specifically on URI schemes.