I am following this https://csharp.christiannagel.com/2016/11/15/deeplinking/ to support deep-linking in my UWP app.
Everything works fine if I click the link from some other app(my UWP app is automatically launched on the click of the link) but if I click the link from the browser, it stays on the browser itself.
I need a way to navigate to my app from the browser just like it is done in apps like Microsoft Teams etc
Microsoft teams example:-
user receives email
when the user clicks on the link
Related
I'm opening up a specific page from my web app via a shortcut (a url the user saves and can send/email). When the user opens the shortcut, I need to connect the opened window to the main web app if they have it open. I can check a cookie to see if the main web app is up, but I'm not sure how to actually establish a link between the two windows without redirecting/closing the new window. Im using .NET framework 4.7.x
I would like my app to link to other installed apps on the users phone, such as facebook. Once they click the icon/button it should switch from my app to the selected app, the code should check that app is on their phone. If it is open the app, if it is not open the store page, for that app so they can download it.
Is there a way to link or to navigate to the app? or store? (c# and XAML).
Thank you in advance for your help :)
All you need is URI for the app. It will open the app for you and if the app is not available. It will automatically take the user to the store so that he can download it. This will only work if that app has a Uri available.
Here and Here is a list of apps that support Uri scheme
For example, You can open Facebook App by this code
Windows.System.Launcher.LaunchUriAsync(new Uri("fb:"));
I'm developing winrt (or windows store) application. I would like to navigate to another (installed) application, but I didn't find solution for it. E.g. I have twitter section with tweets and after clicking on some tweet user should be redirected to windows store twitter application directly to clicked tweet. I read How to launch the default app for a URI but there is not what I need. Do you have some experience with this issue please?
So i'm making this app for Windows Phone 8, and what it basically does is redirect to a webpage, how do I do so? Because what I did is add the code and when I start the app, it redirects to the browser and webpage, but if i press the back button, it goes back to the blank "MainPage.xaml". How do I remove the main page from appearing? Such as once the browser is launched, the app auto-quits
Two options:
Use the WebBrowser control (the default when you use the Windows Phone HTML 5 App template). In this case, you're not redirecting, you're hosting the browser as part of your app, and can then also take advantage of other platform features within the app.
Use Application.Current.Terminate in Windows Phone 8. For instance, the following opens the app, immediately starts up the browser, and then quits the XAML app leaving the browser on the screen.
// Constructor
public MainPage()
{
InitializeComponent();
Launcher.LaunchUriAsync(new Uri("http://www.cnn.com", UriKind.Absolute));
Application.Current.Terminate();
}
Though this is possible, it doesn't seem all that useful and I'm doubtful it would pass certification since all it does is launch a browser (but I'm presuming this is just part of where you're going with this app?)
Say I have a mobile optimized website which runs with a lot of javascript on it to create awesome effects, and a user enters the website via a mobile browser which doesn't have javascript activated.
Is it then possible to (through a button click) redirect that user to his/hers browser settings?
You need to have JavaScript activated in order to browse this site properly.
Click here to change your settings
In principle, you can create an intent: URL that references an ACTION_SETTINGS Intent, though I have not tried this. Off the top of my head, the simplest way to construct that URL is to generate a scrap Android project and call:
Log.d("Something", new Intent(android.provider.Settings.ACTION_SETTINGS).toUri(Intent.URI_INTENT_SCHEME));
then check LogCat for the URL that you would put in the Web site. Of course, this URL will only work on Android devices.
I only know Windows Mobile (and there, only up to v6.1), but I would guess your clients would have to have some app of yours prior installed to access features of the device itself.
If websites could access a device's features, it would be viewed as a virus.