I'm opening a twitter URL with the following code await Browser.OpenAsync(twitterUrl, BrowserLaunchMode.SystemPreferred); in a project that targets Android API 33.
When running this on the emulator Android 13 opens the link in a browser. On the other hand Android 12 opens it with the Twitter app.
Is this expected behavior?
First, you can check the settings / apps / twitter / Open by default, does it open? If it does you can close it, then you can open the twitter in the Browser.
Second, the await Launcher.OpenAsync(twitterUrl); method open the Url in the chrome and the await Browser.OpenAsync(twitterUrl, BrowserLaunchMode.SystemPreferred); method open the Url in the app by using a webview powered by chrome.
Related
I have an MS Teams app with an adaptive card on which there is a button that performs an OpenURL().
The URL is opened correctly but on OS X MS Teams remains in the foreground hiding the browser.
On windows it works as expected: the URL is opened in the browser and the browser is moved to the foreground.
It doesn't seem to matter what the default browser is or what page I open.
I have informed this issue to internal team. Can you also provide the feedback/Report an issue on Teams app. Go to settings -> Help & Feedback.
having an issue with Square POS Web API on Android.
We are trying to implement a kiosk app and the kiosk browser is Android based.
If run in Chrome browser the Square app loads fine with no error however if loaded in an Android browser (eg Dolphin) it fails with the following error.
Point of Sale API must be started with startActivityForResult() in the same task. It looks like the caller either used startActivity() or used startActivityForResult() from a finished activity or with the FLAG_ACTIVITY_NEW_TASK flag.
How can we fix this so the app can be used in kiosk apps that use android browser?
Square POS Web API only works with Chrome intents. Therefore you must use the Chrome browser with your Android device. We are in the process of updating our documentation to reflect this information, sorry for any confusion!
I am working on cordova windows app .After login page submit, there will be an authentication web service, which will redirect to one particular url in my application.
But in my app, after login submit, the redirected page is opening in internet explorer instead of opening in application view itself. The redirected cross domain url is not opening in application view. But it opens internet explorer and opening the page. It should not happen like this.
Since it is opening in internet explorer browser ,instead opening in application view,login is not successfully happening.
Could any one help me on this issue ?
We are using windows 8.1 and cordova version 5.3.0 .
The same problem I faced in android app also .But after I added allow -navigation tag in config.xml (This is part of whitelist cordova plugin), The redirected page opened correctly in application view itself. But cordova white list plugin not supporting windows cordova app.
Install this plugin cordova-plugin-inappbrowser.
When successfully installed, your code should look kinda like this.
Code example:
<button id="login">Log in</button>
var btn = document.getElementById("login").addEventListener("click", login, false);
function login() {
var ref = cordova.InAppBrowser.open(
'link_to_the_website',
'_system',
'location=yes');
}
You have three type of options to load the URL.
_self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.
_blank: Opens in the InAppBrowser.
_system: Opens in the system's web browser.
I'm trying to do what is simple in iOS, redirect from the browser to my app (I am authenticating via a website which then loads the url that switches back to my app via appreferencename:/) in Mango.
Is there a way to switch to an app from a browser via a link?
Thanks!
It's not possible, unfortunately. You are able to link to a marketplace page, but that's only useful if you want to download or update an app.
Open Windows Phone 7 App from URL
Is there a way to open the Windows Phone 7 marketplace from a page being viewed in the mobile browser.
In an WP7 app I can do this:
MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentIdentifier = "3cc99ca6-f0e6-df11-a844-00237de2db9e";
marketplaceDetailTask.Show();
On the desktop I can do this in a web page:
http://social.zune.net/redirect?type=phoneApp&id=3cc99ca6-f0e6-df11-a844-00237de2db9e
Is there a way to do this from a web page in the mobile browser?
The URL format to launch Marketplace on the phone when a user clicks on a URL is:
zune://navigate/?appID={app guid}
So for your app that would be:
zune://navigate/?appID=3cc99ca6-f0e6-df11-a844-00237de2db9e
If you want this hyperlinked in the browser simply wrap with a href tag.
Download Marketplace Search
The browser on Windows Phone 7 emulator doesn't support direct (type -> navigate) application navigation. What Omar is showing won't work if you type it up in the emulator because there are internal restrictions as to what protocols can called directly, and zune is not one of the supported protocols.
It will, however, work from the email application and the browser as a link.
The rules for marketplace links changed and the zune:// links are no longer valid.
The proper format for the deep link is:
http://windowsphone.com/s?appid=the_app_id
The appid is the guid assigned to your app and can be found on the details screen for your app in the app hub.
The advantage of this format is that it is a direct link to the app in the user's localized marketplace.
On a Windows Phone, this link opens the web browser, which immediately launches the marketplace app.