Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm a web designer.
I have a site like to a forum.
so I want to create a app for my user.
The app just show and insert my website date(mysql).
normal function
member login
member reg
post topic
reply topic
search topic
a message box function (user send user)
admin user will delete topic
maybe function
maybe I need mobile phone push message function, maybe user's topic anyone reply
I know phonegap has PushPlugin
that plugin can do that?
.
My skill just php,mysql,html,css, a little js
I can create function 1-7 in mobile version website. But I don't know how to make to a apps.
These are my case
You have any suggestions?
I should learn native app or phonegap?
if native I need learn ios and and android, I need ios version and android version
Phonegap can do the trick for the mobile app.
But since you're new to apps development, keep this piece of advice in your mind.
Data storage based apps never use direct storage on mysql, a hacker can revert your code and extract your database password and you're done for that.
always think of using API for reading data and Authentications like oAuth2 for insertions.
Good luck !
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am new in world of development. Newly I got a project where I need to implement a chat application on it. There might over 1000 users may concurrently interact with this chat app at peek. The chat application should work in all browsers, IOS, Android.
I am using laravel as php framework.
Looking for your help. Thank you!
You can use Laravel with socket.io to create a real time chat application.
Here is a small that kind of demo which I made few days ago:
https://github.com/xparthx/Larevel-echo-with-socket.io
(It is not exactly a chat application but it is a real time feed)
You can get the basic idea from it.
I am using firebase for real time chat app
you can even use Pusher
here is the link use to create real time chat app with pusher linknado and search laravel real time
Use firebase by google. It is very straightforward.
A simple architecture can
Each chat will be called a thread.
A thread will have messages
A message will have content, author, time and other details
Firebase is a realtime database, it is non relational,
Querying is very each, but complex queries will give bottlenecks
{
thread1:{
cdate: created_date,
messages : {
message1:{
author:you,
cdate : whenSent
},
message2:{
author:him,
cdate : whenSent
},
}
}
}
For a live chat all you have to do is listen on the thread1 object in firebase using their web apis.
You can send new messages from either client(web apis) or using php in the backend using firebase-php
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have just fineshed an apprenticeship in a little company for which I have developed management web application hosted in ARUBA together with mysql DB. Now for my "Mobile application" course I would like to realize an iOS app as a mobile version for that web application: pratically I could create a new frontend as an iOS app. I am supposed to use Swift and I am totally new to iOS development. So I would like to ask if you can give me some tutorials about how to use swift and php to connect to a database and perform CRUD operations. Before suggesting this idea to my teacher I would like to make some practice and see if I am able to create this kind of app.
What do you say?
This course looks promising, though I haven't done it myself, so I'm not sure.
Think of this project in three parts:
Creating your MySQL database
Developing your PHP API to "talk to" the database - this is the mediator between the client and the database
Developing the client code
It sounds like you've done some web development, so can I assume that you know how to do number 1 and 2 above? You can create the PHP almost exactly like you would for a website, and it has a great function (json_encode) to put everything you're sending to the client in JSON. There is a class called NSJSONSerialization to deal with the JSON received on the client end.
Do know that this is a big project; developing all the PHP and Swift code in addition to the database is no small feat.
To accomplish number 3, I would recommend reading up on NSURLSession. This tutorial and this tutorial may be useful.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a website that I've created using PHP, Mysql, and other (HTML, CSS, etc) and I'm looking into converting the website into a native Iphone App for the app store. I know quite a bit of Objective-C and have used X-code for a couple years but I'm confused about one aspect of it. I've never worked with databases from an app. The database that we have set up is just a good old fashion PHP and Mysql that we connect to. It holds all of the site's users and other information.
Therefore, what should I do about accessing this database on the phone? Is there a way to use Mysql or is there something else that I can use that would interact with the database separately? I know there is SQLite but does that work with Mysql or not?
Any tutorials or guides you could point me to also would be great. Thanks.
The simple answer is: don't connect an iOS app directly to the database. Think about it: you'd be embedding a username and password somewhere in the app's code, which some nefarious user will find a way to extract and exploit.
Much better way to do it: create a simple API on your website, then pass requests from mobile users through the API. Then your server handles all database connections, authentication of users, and so on, and you haven't put your database credentials in the hands of lots of unknown individuals.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
My team is going to make application in android having quizzes on mobile whose questions,options would be entered from my website. I want to be able to enable the new quiz from website end.
Going to code website in PHP. I'm good at wordpress so just wondering if I can do this in that only or not as I don't in what form I have to convert my data so that android can get it and use it in "native app"(not browser!!).
my job is only the website part I know how to make pages but don't know in what form I have to give quiz data and how to control enabling and disabling the quiz in mobile app
thanks for the help in advance...
There are several ways you can transfer data through different applications/technology.
Some ways that appear to be straight ahead to me:
The Android App can parse your generated HTML file directly and extract the questions and the options parsing the HTML tags.
The Android App can also connect to your website DB and get the information directly from that.
You can also expose your data creating a services using WebServices or ODATA, for example.
I have to say I've only ever dealt with Cordova for writing apps but if Cordova can do it...
In the app I wrote for an internal application I used an AJAX call (Cordova uses JS + HTML as its interface). My PHP server then returned a response my app could use (in my case, JSON) It sounds like this is what you want to know. Now your app team will have to tell you what format to send your response but it's possible to have apps do this.
This would have to be done in PHP(EDIT: or any other technology as such) since your team is working in PHP already. To enable/disable the "new quiz", the app would have to query the server for this information, which would come from the Database.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
i have an android app that sends data to my web server (data is processed by php and stored in mysql db). for security reasons, i need to verify that the user sending the data is who he/she says he/she is.
i do not want to verify login/password, i would rather use the phone's registered (account manager) google account with something like federated login. i played around with nick johnson's example for GAE, but it is specific for GAE based apps and does not permit integration with my own server API's, therefore authentication does not work (i get a google authToken, but it is meaningless for my server API).
from what i understand, the safest+simplest solution would be to use OAuth.
but i am completely stumped trying to understand OAuth (i understand its concepts, but have not been able to find any example that i could implement).
does anyone have anything like a functional example that i could play around with and tweak for my needs? thanx in advance!
when ever a user login or use your app first time , you should capture his/her device mac address, and store it to the database, and you can easily authenticate user using this mac address