Xcode and database for web service of pass - mysql

Now I can create a web service for updating pass successfully. Next, I want to create an app by using xcode in order to set at the back of pass. I use many locations of companies for locations in pass. The app I will create is the detail of those locations, so how can I use data in company table to show in table view of the app ? I used to use sqlite for storing data for app, but now I already have database from web service, so what should I do to get those data ? How can I connect MYSQL and xcode ?

Related

Push Notification from Firebase using MySQL

My app is sending in-app notifications. using MySQL Tables and listener. but I want to use Push Notification from Firebase. my DB is MySQL.
I want to send a new order notification as soon as an order is created in the MySQL table.
so order gets created in MySQL, if order created successfully, create the record in firebase.
firebase sends a notification to pizza stores within a 1km radius of our customer.
Can anyone confirm this is possible.??
Is firebase capable of doing this???
Backend API coding is in Laravel.
Yes, it's possible! You can use Firebase Functions.
Whenever a record is created in your MYSQL, you can create a record of it in Firestore (see Firesore API) and with Cloud functions Firestore triggers (see Firestore Triggers), you may write whatever logic you need (sending notification to a specific audience in you case) when a firestore record is created/updated/deleted.
Note: Firebase functions use JavaScript and TypeScript.

How to send back data to a server in a PWA website

I've searched and I can only find tutorials to pull info from a server to update the latest info of my PWA app using JSON. But I can't find any way and any example to fetch data back to a server to mantain for instance a Database updated and display that to all users which may use that PWA.
For example, I have a PWA that let me login (client-server communication), then it displays a list of contacts that were stored in a Database. I can delete, modify or add new users to this list from my PWA app, and after doing that, they'll update on my server Database, so if my friend Paul, wants to check the updated list from his account, he'll see the new changes.
How Can I do that? Which language would I have to use, php and Javascript (Ajax)? Which is the most fluid and optimized way to do it according to a Progressive Web App.
I guess you are trying to store user changes back to the server(webservice and then to the data base).
You have to make an AJAX call to your web service and pass the required data needed to store in DB.
Here is an example.
https://www.w3schools.com/xml/xml_http.asp
Depending on the framework you are using, you might have more options to call a web service. Like here is an example for Angular -> https://www.w3schools.com/angular/angular_http.asp

How to show Laravel database data in Ionic

I am integrating an Ionic Framework with Laravel. In MYSQL table there is a option table(master-table) which is having certain options says Table, chairs, suite case etc etc.
I am not getting how can I fetch the data of table in ionic view to display all the options in dropdown.
When I was developing web Application as its in laravel, so in blade view I can directly able to fetch it.But I am not getting an Idea how to do it in ionic view, as I am consuming API services.
Please guide me for this.
For safety reasons it is usually best practice to create a rest api and call the endpoints via the http module to access your database. See the link: https://ionicframework.com/docs/native/http/
If you choose to access the database that means you would have to store credentials in the ionic app which is quite dangerous.

How Can Upload fingure print (Bio Matric) data to mysql server realtime

I want To upload fingerprint machine generated data into mysql database real time or
specific time without any user action (human action).
is there any way to do this.
i search on google i found one touch data update on mysql database device.
but i want to know is there any api to transfer data to mysql database without (human action)
like corn tab..
Why you want to do this. when you registered user on the fingerprint machine then registration id is generated that you can store on server for further processing....

Connecting to mysql database from ios

What is the right way to connect to database from an iphone app? I built a website and now I want to biild an app that can enter and veiw information from the database, like autotrader and rightmove how they get the same information on the website in the iphone app?
You need to create a REST API (PHP) fetch & update data from the centralized Mysql DB.
You can call this through NSURLConnection. Your REST API returns XML or JSON.from you coding u can write coding to parse.