Creating Mobile app with MVC4 - asp.net-mvc-4

i need to know that weather i can create a mobile app using ASP.NET MVC4 framework. My concern is not about mobile sites rather apps that can be installed on iphone/android and also can be uploaded to apple store.
If yes then please suggest some reference links to achieve the same.
Thanks
rohit

Yes, sort of.
You can use frameworks like PhoneGap to create an iPhone/Android app with HTML, CSS and JavaScript. PhoneGap will make requests to your server, so that can be implemented in whatever you want. If you want to use ASP.NET MVC, I suggest you return JSON data structures to your mobile app.
You're probably better off writing a Web API than an MVC website for this, actually.

Related

Can I host a full non-Shopify web app on Shopify?

Currently, I have a separate web app and Shopify site. The separate web app is on its own domain and it links to items on the Shopify site. The front-end for the separate web app is vanilla HTML, vanilla CSS and vanilla JavaScript. And the back-end for the separate web app is PHP and MySQL.
We want to move the separate web app onto the Shopify site/domain. Is it possible to build a custom web app with Shopify? I know that you can do some sort of Rails liquid template coding for Shopify, but are there limitations? What about the back-end, would I just have to make REST API calls or can I use SQL database tables?
Either way it seems like I'd have to rewrite most of the app.
You are free to make a Shopify store your own web app, but you will be using Javascript to do so and not PHP/MySQL. The reason is that JS is functionaly part of the web browser whereas your solution is not.
You can inject content to a normal Shopify theme template that potentially uses a PHP/MySQL App, but note that that is going to always be slow due to architecting how those kinds of apps interface.

Hypothetically: Add Blazor Mobile Blazor Bindings to existing Blazor WASM project

I'm about to choose framework for a future project.
As of now I'm leaning to choose Blazor WASM since it looks really promising.
But in the future my customer would like to have push notifications (since it's not currently available through PWA on iOS) and maybe some other platform specific sensor that's only reachable through a native app (or Xamarin...).
In the future, if Mobile Blazor Bindings becomes a LTS, do you see any showstoppers to add a Mobile Blazor Bindings project to a existing Blazor project. If we create our components in a separate component library, independently from the target framework, would this be possible?
I understand that this is hypothetically but what are your thoughts? :)
Thanks in advance and hope you'll have a nice day!
The mobile blazor bindings target native apps so you can't add them to an existing blazor web project.
If you keep your components and logic in separate projects you will be able to reuse them on your new mobile app.
Note, however, that the mobile blazor bindings target native components while you will now be writing web components, so in your future mobile app you will either need new mobile components or you will be stuck in a web view, which might not be optimal. Also, assets for a web view mobile app are vastly different from a real web app.

How can I expose my ASP.NET Core web api to be used without http?

I know this sound strange, but please bear with me. We have a legacy desktop app (DataFlex), and we are developing a new web app. Both apps share the same business logic. We are in the process of moving the business logic to a centralized project that is exposed as an asp.net-core web api, to be used both by the desktop app and the web app.
So far, we have been able to access the new business logic project from the legacy desktop app via COM, but because maintaining interfaces and DataFlex wrapper classes is a pain, we are hoping to find an easier way.
We could access the business logic using the web api via http. But many users are still only using the desktop app, and setting up web servers for all of them is not something that can be done anytime soon. So we want to call the asp.net-core project in a way that resembles the way a web app does it, passing method calls as strings (JSON?)
Is this feasible? If so, how?

CakePHP and RESTful with PhoneGap

I have built a cakephp site with RESTFul calls. Happy to say these calls work when using curl from another php site. (This is all testing at the moment)
The next stage is setting up authorization, from my understand I'd be looking at either basic or digest loging to make RESTful calls.
I'd like to build a phonegap app, that requires login. Would RESTful calls to CakePHP be the way to go. i.e making a RESTful API for my site?
I'd like to provide an API key. How would this key be secured in a phonegap app?
How secure is phonegap in general? If the files for an app are css, html, js can't the app be broken into and the files revealed
Just looking for general advice and a direction to continue researching.
I believe what you need would be a stateless authentication system. CakePHP comes with 2 built in. Take a look at this example

Process Dropbox folders and files from an external app

I'd like to automate a process whereby a client can place lots of files into Dropbox, and then I can read all the files from Dropbox and create database entries for each file/folder within the client's CMS. The CMS is a C# .NET MVC app with lots of client-side javascript. What are my options for tapping into Dropbox from either C# or javascript? Has anyone integrated a C# web app with Dropbox in this way? Can I use the REST api from C# or js?
If this works I'd like to automate the process for many clients, and make Dropbox an integral part of the CMS.
Thanks.
Yes, you can use the REST API from C# and it's the best way to go; you kind of answered yourself.