MVC 4 Mobile Razor Views not being rendered when deployed on Windows 7 IIS - asp.net-mvc-4

I am working on an ASP.NET MVC 4 website which has both desktop and mobile views. For example I have a desktop view named Home/Dashboard.cshtml. I then created a mobile layout view with the name Shared/_Layout.Mobile.cshtml and then added a mobile version of Dashboard view with the name Home/Dashboard.Mobile.cshtml.
I run the application from Visual Studio with IIS Express and tested the mobile version by overriding the user-agent from Google Chrome to iPhone and it works perfectly until I published and deployed the same application on IIS (verssion 7.5) of Win7, it doesn't rendered the mobile version of Dashboard view. What is strange here is that it does render the mobile version of Layout which is Shared/_Layout.Mobile.cshtml but not the rendering the mobile version of Dashboard which is Home/Dashboard.Mobile.cshtml.
Note that I also tested the IIS deployed version on Samsung Galaxy S (Android) but same result.
Why IIS is not rendering the mobile version. Anyone faced the same situation? Any ideas?

OK I figured it out. Build Action was somehow set to 'None' instead of 'Content' for Dashboard.Mobile.cshtml so it was not being published to IIS. My bad that I overlooked it.

Related

ASP .Net Core 5 web application crashes in Fully-kiosk app

For the first time, I'm using fully-kiosk on a PROVX Android, version 9
I set up the website that I want to open when the user starts up the device but the page crashes.
The website is an ASP .Net Core 5 web application, published in Azure and it works perfectly on any other device and browsers (Google Chrome, Mozilla Firefox, Microsoft Edge...). I don't get any error messages from the browser.
I wanted to know which browser uses the PROVX to load the setup website, so maybe I will adapt the application to load up correctly.

How to Launch/Open any other external app from hybrid app? [duplicate]

I have a requirement to open the native version of the hybrid app (.ipa/.apk/.appx) when the hybrid app is requested in a device browser.
I am able to detect the environment using WL.Client.getEnvironment(); method, if it is found to be Android/iPad, I want to launch the respective .apk/.ipa file in the device. Any help is appreciated.
Re-reading this question and the comments several times... I still do not understand the actual scenario... it'd be best to rephrase it.
Scenario: How to open an app from the web browser:
If you have added the following environments to your Worklight application:
Mobile Web
Android
iPhone
And when visiting the Mobile Web version of your app, you want to display a message like "For the full experience, open the full application by clicking here".
Then:
It is implied that the user already has the application installed.
If it is not installed, you need to take care of that somehow
The way to handle this scenario is to use URI schemas:
For Android: How to implement my very own URI scheme on Android
This means that after adding the custom URI schema to AndroidManifest.xml, you could then detect the device OS the Mobile Web app is currently running on and display a custom link: myapp://<the URI schema you've defined>. Tapping it will open the app installed on the device.
For iOS, in a similar fashion: https://coderwall.com/p/mtjaeq
Also see: http://wiki.akosma.com/IPhone_URL_Schemes
Alternate solution: If you are not sure if the app will be installed or not, then instead of using URI schemas you can always point to either Google Play or Apple App Store, to the app page; the user will then have either a "Open" or "Install" link.
Scenario: How to open an app from my own app
If you have a Worklight Hybrid application (Mobile Web is not a Hybrid application), and you want to open another application from within it, you can:
Use the same approach of URI schemas, or
Use Cordova plug-ins
I have created this Worklight 6.1.0 project to demonstrate:
Android - How to open, for example, the Android Settings app from your Worklight Hybrid app
iOS - How to check if Waze is installed and open it, and if it is not installed then to open Apple Maps instead.
See instructions.txt in the apps\test folder.
Are you asking that if the user via their device browser hits the webapp version of your app on the internet, the website will ask the user to fire up the native app on their device? kind of like what ebay does?
if that is what you want check out these pages
android:Launch custom android application from android browser
IOS:
iPhone - Open Application from Web Page

Windows 8 app load web app from url

I've developed an Android app who loads a web app from an url in fullscreen and caches it with application cache. That works fine, so I would do the same for Windows 8. Is this possible? How it's done?
To load any WebSite/WebApp in your windows-8 app, you can add WebView control in your ApplicationPage.
You can find more details/Information regarding WebView control here
and find Code samples for Adding WebView in your app here
For detailed answer, you have to elaborate your question more.

iBeacon mobile web application development

Are there any custom APIs for iBeacon access from mobile web applications? Probably it could be a mobile safari extension.
Thanks in advance.
Unfortunately, no.
You could write a native iOS app that looks for iBeacons in the background and launches a specific web app URL on mobile Safari. You could even pass ranged beacon info in query parameters.
But you would still need a native app installed on the phone to do this. And once the Safari page is launched, getting further updates is impossible, unless you use a complex web service proxy to the native app.

Appcelerator Titanium: How to enable Mobile Web App development?

So I'm getting started using the Appcelerator Titanium Mobile framework. I wanted to try out the ability to deploy a mobile web app. However, I can't find any documentation on it. I just installed Titanium Studio and created a new project, but the "deploy to mobile web" checkbox was disabled. There was also a message that said "incompatible Mobile SDK for the Mobile Web support" even though I have the latest version (1.7.2).
What do I need to do in order to enable this feature and get started using Titanium for mobile web app development?
Update:
I found the link to the Titanium Mobile Web documentation.
Turns out the Mobile Web feature is still in beta, which means it's currently only available to paying customers. So I signed up for the indie subscription since it includes a 30-day free trial. I have tried restarting, signing out and signing back in and Titanium Studio still doesn't give me the option to deploy to Mobile Web. What do I need to do now?
I found some additional information on the Titanium Mobile Web SDK. The reason it doesn't work with Titanium Mobile 1.7.2 is because it doesn't come bundled with Titanium Mobile 1.7.2. You have to download the 1.7.0 RC1 SDK from their Amazon S3 account and manually add it. The link above explains how to do it. I couldn't figure out how to to deploy to an emulator, which kind of defeated the purpose. Also, deploying to Firefox does not work, so don't even try. It only works in Safari and Chrome.