How to test IsMobileDevice - visual-studio-2013

Build a site and using IsMobileDevice.
But how can I test without publish my site and browse to it with my mobile?
Have tried http://www.responsinator.com/ and others and it only looks at size.
Any ideas?

You can use Ripple Emulator or you can use the User Agent Override feature of Chrome Developer Tools to change your user agent. You can also find many other Chrome or Firefox extensions which help you change your user agent. IsMobileDevice works by checking the user agent, so this should help you get what you want.

Related

"App not found, Please verify..." when launching from Visual Studio, but installs normally from Developer Portal

I'm currently learning Teams development and I just installed the Teams Toolkit extension. Following the quickstart guide, launching the app opens my browser with the Teams web app and the message
App not found, Please verify the app and it's[sic] access
permissions.
Fortunately, this app can still be launched when selecting the "Preview in Teams" option in the Developer Portal.
Quoting the GettingStarted.txt:
If you Start Debugging in a browser and Teams shows the message "App not found, Please verify the app and it's access permissions", it means the app hasn't been uploaded to Teams Dev Portal. To resolve this, follow the steps in the Quick start section above. The Project > TeamsFx > Configure for SSO menu command will do this step for you.
Except it was successfully uploaded to Dev Portal.
What I did
Did this "Configure for SSO" thing. No problems with that and the app was successfully added to the Developer Portal.
Where I searched for an answer
VS Marketplace page for Teams Toolkit (Reviews, Q&A)
Github page (issues) for Teams Toolkit
This very site - Stack Overflow.
Obviously, I'm not 100% sure that I haven't missed anything.
Temporary solution
In the meantime, I set the "launchBrowser" property to "false" in launchSettings.json. However, it's a waste of time to constantly go back to the Developer Portal to launch it, especially when the functionality is there.
Visual Studio 2019, Microsoft Development Account.
Thanks in advance.
We tried to repro this issue at our end and it is working fine for us. Could you please make sure app is opened in same tenant with which you configured for SSO. Also please remove all credentials from cache to make sure its not taking another credentials and try again.
Assuming nothing else was changed from the new project template, there are a few things you can try to narrow down the issue.
Open your browsers web dev tools and watch the console after clicking the Add button (before you see the error message). Sometimes a useful error message from the developer portal helps identify the issue.
Verify that when Visual Studio launches the URL, the correct tenant is loaded in Teams.
Run the project in VS, then manually navigate in your browser to the endpoint of your tab that you expect to work. It would be something like https://localhost:44357/tab by default (the value is in the manifest.json). The sample won't work completely because it's not running inside Teams, but you should be able to verify it's working locally.
If none of that helps, please log an issue on the GitHub page and we can investigate a bug.

Android management api - Setting default apps in work profile

I have a requirement to make Chrome the default browser in the work profile created with Android Management API. Currently the chrome app gets installed in the profile automatically on work profile provisioning. But it is not made the default app.
I have looked though the https://developers.google.com/android/management/reference/rest/v1/enterprises.policies document but have not come across any such settings.
Any guidance on how to achieve this would be appreciated.
Thanks
Persistent preferred activity management can be used to set up your default browser but unfortunately there is a related internal bug with the said functionality

How to run mobile joomla on desktop browser?

I need to see the output by mobile joomla plugin in my regular browser, to be able to style and tweak things easily.
In older versions of mobile joomla ther was an option ('Mobile Always') that would output mobile views all the time. But I can't find it current version (1.0.3)
You can always install User Agent Switcher for Firefox. It gives you the ability to change to a mobile user agent and also a few others things such as IE6 and IE7. You can also add others. Hope this helps. Regards.

Possibility to activate addons in Firefox 10 ESR without user permission?

i'm working in a company there we would like to deploy 'Firefox ESR'. For our developers, we need to integrated some addons e.g. Firebug. The problem i'm having right now is, that Firefox will not activate addons without the explicit permission from the user.
So here's my question: Is it in some way possible to deactivate this behavior, so that the addons will be installed and activated properly?
To make this clear, i'm not trying to do something bad here! I'm just searching for an elegant way to integrated and activated the addons, so that the user do not need to do this.
Thanks in advance!
I assume that you are referring to the extra dialog that appears asking the user to reconfirm the add-on installation.
How exactly are you installing these add-ons into the user's Firefox?
There is a preference called extensions.autoDisableScopes which you can adjust which will change Firefox behavior with regards to confirming the install of these add-ons.
You can get more information about this preference here:
http://mike.kaply.com/2012/02/21/understanding-add-on-scopes/

Debug --> How to simulate no flash player installed?

Is there a way to simulate not having flash player installed, so I can see what users who visit a page without the plugin see my page?
Thanks!
I recommend downloading MS Virtual PC or VMWare Server (both free) and create a VM to test this functionality. Its the only way to be sure. Also gets you the flexibility to test a lot of browser versions.
In Firefox , Tools -> Add-ons -> Plugins -> Shockwave flash -> Disable
Doesn't require you to restart the application. The name of the plugin can vary. It's how it's called in my Linux box.
IE - Disable the flash player plugin (Tools, Manage Add-ons)
Firefox - install the NoScript plugin
Chrome - install the FlashBlock extension
Other browsers, there's usually a way to temporarily disable any plugins you don't want.
In chrome, inside the URL bar, write: chrome://settings.
In the new page, click on disable under the Flash plugin
Get Virtual PC and download the IE Test environments.

Resources