hi I am new to react native but I wish to connect my iOS app with the phpmyadmin database anyone can share the idea how should I do. thanks a lot
You mean MYSQL database. You can use PHP to create and serve a REST API which you can access from React Native with Fetch or Axios. I've done this on many IOS apps and web apps. You can also use existing frameworks or CMS systems that have a built in rest API, like Laravel or Wordpress.
Build your own:
How to write a REST API?
Laravel:
https://laravel.com/docs/9.x/eloquent-resources
Wordpress:
https://developer.wordpress.org/rest-api/
More on REST API's:
What exactly is RESTful programming?
Related
I'm building an app and I'd like to use Wordpress as the backend for my users. For example, I want my app user to be able to login to their account that they registered on my Wordpress site, and then post to and from it from my native application. Does Wordpress have a swift SDK that allows me to do this?
You need to make REST requests and auth too. Take a look here https://wpengine.com/resources/using-wordpress-rest-api-plugin/
On Swift side you can use Alamofire for communication.
Also if you want more API routes you should install some of API/REST WP plugin
Currently i am using django-oscar as my self hosted ecommerce solution to allow for merchants to have standard abilities such as uploading products, inventory management, etc.. on the backend.
The marketplace however will be on our native IOS app (currently live). We are thinking of using django-tastypie to create the API and transfer data back and forth from the admin to marketplace(on the app).
A few questions i have:
How would we go about creating the checkout process, shopping carts and etc? Hosted ecommerce solutions such as Shopify have IOS SDKs to handle shopping carts checkout and etc on the IOS side of things but django-oscar from what I see doesn't have such SDK.
How would even sending the information back to the admin dashboard(from the IOS app) to update our merchants orders, inventory management, etc work? django-oscar only seems to cover how to do so with web based apps but not with a native IOS app.
Nothing around the web seems to explain this particular scenario at all, and I was hoping someone in the development community could lend some insight into this arena, and connect the dots.
*we are using swift for our IOS app
Thank you!
I'd recommend checking out Django oscar API, I think it does exactly what you need!
creating api is the way to do it. django-oscar is having schema for cart that can be reused. With django rest framework, we can easily write the apis for add to cart, delete from cart etc. I would recommend django rest framework (http://www.django-rest-framework.org/) instead of django-tastypie. django rest framework is easily understandable for a django developer, because it is more django like than tastypie. rest framework has web browsable api as well.
So my current task at the company I'm interning with is to create a mobile version (iOS) of a web app written using Flask, HTML & CSS that currently exists and is being hosted on AWS's EC2. Assume I'm a complete noob at AWS and only just learned that EC2 is a cloud computing service.
Essentially, I just want to be able to reflect what's currently on EC2 over to a mobile app in a secure fashion. I guess I'm just trying to avoid rebuilding something in Swift that's already been done. For those familiar with WebView in Xcode, I tried to use that to reflect the web page, but it didn't work (I assume because our web app on EC2 requires login credentials when you open it in a browser?).
I thought that maybe using AWS's SDK for iOS would net me some luck, so I installed cocoapods and setup a pod, but don't know how or which of these AWS services will help me achieve what I'm trying to do (from reading the documentation, it seems like their purpose is for building an app, not necessarily just projecting a webpage with data already in it).
For some more information, some key features that I think would be useful for our clients that would be using the app are:
The ability to persist data on the app when their device is offline
Some sort of temporary logins for the users. This app wouldn't be distributed through the app store; it would probably just have to be locally downloaded onto certain clients' devices
Lastly, I saw this post come up before creating this one: Does REST API for mobile apps hosted on https protocol web app will be slow? and I noticed that the asker of this question said "Lets say I have built a mobile app running on Android and iOS platform and REST API's for these apps lie under https based web application." This possibly sounds like something that could be helpful, and if anyone could explain what s/he meant by REST API's and what they are, I would be very grateful.
Any advice on how to proceed from here, using anything, would be much appreciated. Thanks!
I have a few questions on Google's App Engine Mobile Backend Starter. The starter tutorial gives a sample client app but I am confused on how to build my own application to use Google's app engine mobile backend starter. Am I supposed to extend off the Object C code given in the sample app? Or is this documentation of the API sufficient to start my own app from scratch? Does anyone have any links to tutorials on things like this? The ones provided by google do not seem to be very helpful in these regards.
I used google app engine as my backend server. I watched the google I/O video, and it said it can generate the IOS api library in EndPoints by command line. But I couldn't find the way to do that, and there is no information about it on the Internet. Is there anyone who uses google app engine as their IOS app backend and could answer my question?
Working with GAE, there is no way to generate an API "in objective-c". Google app engine infrastructure supports Java and python, so you need to write your API in one of these languages to deploy it in GAE cloud.
Then, in your iOS application, you will need to communicate with the APIs you just deployed in GAE, this can be done with a so called client library. Here is an example of a client library for Objective-C.
Cloud Endpoints is still under Trusted Tester program.
You can sign up here:
http://endpoints-trusted-tester.appspot.com/
UPDATE Official docs on generating iOS client libs can be found here:
Python
Java