Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a requirement to write data processing logic at Server-side and based on the outcome of that logic to send notifications to multiple iphones. I want to use Google Firebase to store data. But I am not sure if Google Firebase allows to write some programming logic at Firebase side to manipulate those data. Can someone please advise if I can write code logic at Google Firebase? T
To run server-side logic in response to events happening in your Firebase project, you'll want to look at Cloud Functions for Firebase. With Cloud Functions you write code that runs on Google's servers and that is called in response to activity in your Firebase project, or calls from your client-side app.
The documentation has a page with common use-cases, which includes sending notifications to users when something relevant happens in the database.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have Users table in Firebase. However, users can change our scores, etc. How can i handle this situation ?
Thanks
In general I recommend storing the actual moves that a user has made in the game, in addition to the score they achieved. At the very least you can then replay those moves to see if the score is correct or manipulated. But you can also further analyze the moves to see if they were made by the player or seem synthesized.
You can use Firebase's security rules to validate the moves of certain games. But depending on the game this may be beyond what you're willing to write security rules for. In that case, you should write the (move and score) validation into a back-end process that runs in a trusted environment. This may be a an app server you control, but it also be as simple as a process you periodically run on your own machine.
Some links that cover the same/a similar topic:
Firebase complex validation
Firesafe: Add Complex Security Logic to Your Firebase App
can Firebase be used to backend Unity MMOs?
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 am currently attempting to create a chat app, powered by Firebase. Ultimately, my goal is to allow users to message each other (pretty simple).
However, I am currently stuck on how to accomplish this.
Right now, I am able to create one huge, group chat, where users can post under different usernames. But, for ideal functionality, I would need users to be able to message each other directly, and not in one huge group chat.
Any help would be appreciated!
If you go checkout JSQMessageViewController it is a pod that provides all the functionality of the messages app. They also have an example that is done by fireBase written in swift. That may be a great place to start and finish.
https://github.com/jessesquires/JSQMessagesViewController
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 8 years ago.
Improve this question
we need to create a chat application with a deployment target of iOS 6.
I have the following doubts regarding this,
1.Does apple provide any SDKs for such application.?
2.Is the chat messages pulled from server at real time using repeating pull requests using a timer?? If so , will that effect memory efficiency and app performance??
3.Do we have to maintain a local cache of each message exchanged??
4.From recent research i learned about C2Call framework. Is this a good option to build a chat application.??
I can advice to use XMPPFramework for iOS. It is open source project that implements XMPP protocol.
As it based on XML format it's easy to extend functionally by adding custom tags for storing any addition data you need.
XMPP protocol has implementations for most of platforms (client- and server-side).
For server side you could use Openfire.
Answering on your questions:
No, Apple doesn't provide specialised solutions for chat apps.
XMPPFramework based on sockets (similar to push notifications mechanism).
XMPPFramework provides mechanism for storing chat history in local database (based on CoreData). Also you could load history from server.
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
hi I’m new to IOS development i have developed only one application in iOS now i want to make a polling app in IOS i Google every where i did’t get a proper solution to make a polling app.
In my polling app i want get input poll form the user and i have to store in database and i have to calculate the value for the polling and i have to show the result how many people voted .
so please can any one suggest what is right way to make polling in IOS or is there any alternative way to make this.
thanks.
Assuming you want to store your results on a back end web server with a DB then you would first need to write some web services. I personally would suggest a combination of PHP and MySQL as they're both open source and relatively easy to get to grips with. I also recommend you use JSON as your data interchange format as it provides a human readable structure without the complexity of XML.
Once you have a functioning back end you would need to build an app with the appropriate data fields that you want in either one or multiple views. Personally I would put all of your questions into an array and then cycle through them changing the input controls if necessary. You can then add your answers to an NSMutableArray.
Once you have your complete answer set in your NSMutableArray you can serialise it to JSON and transmit it off to your web service.
There are many guides for getting started with JSON on iOS available, I would suggest you take a look at this one.
Your question is business specific (not to iOS, iPhone & objective C).
So I would suggest you to better try these APIs available in market.
support.polldaddy.com
Poll EveryWhere
TypeForm
Hope that helps.
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
So I know this is a pretty simple question, but I've looked through all of my iOS textbook and can't seem to find out how people do this. I just want to store and edit an array on the internet. That is, let's say all of the data for my application is stored in an NSMutableArray. Ignoring the complications that occur with people editing the array at the same time, how would I allow multiple people to go into my app and then through that app access and edit the NSMutableArray for others to see?
There are a ton of options here, some of which were listed by #Zaph. The most common scenario to share data between a ton of random users is to setup your own server to run an API that you app will be able to communicate with. This is commonly referred to as the "Backend". The solutions here are vast, written in many different languages and sometimes even provided by third parties services. My advice is to pickup a simple, easy to learn server-side setup like Ruby-on-Rails, then deploy test app on Heroku as they provide free accounts to play with.
In addition to the options #coneybeare provided some others include DropBox, Parse and Azure.
Dropbox requires each user so setup an account.
Parse and Azure have rather easy APIs but you will be paying past the free tier.