In Firebase, How do I prevent memory-modification cheats (iOS) [closed] - ios

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?

Related

Create a chat like in Ada in Swift [closed]

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 2 years ago.
Improve this question
I'm new to programming, so please be patient. I'd like to implement in my current app a chat, but not with other users, but rather with the app itself. In the app called "Ada" the way user interacts with the app is through various buttons that he presses, after which the app gives the answer. So, as far as I understand what I try to create has nothing to do with machine learning, so I'd like to avoid such services as DialogFlow or the same service provided by IBM, as I don't want to pay for the additional features that I will never use (I don't want my users to use keyboard input to interact with the app, I want them to use only buttons). But I'd like to create a page, which looks like a chat. The only app that I know that has implemented exactly what I need is Ada. The problem is that there is literally no page on that topic on the Internet, so I don't know where to even begin. As I don't know where to even start, I have no starting code to provide you with.
Here is a simple example of what I mean:
On the right the app gives the user a test, as user pressed "begin" button
Hope that you understand what I need and you'd help me a lot if you would explain exactly how to create such a chat.
It looks like there is a Udemy course on this very subject:
https://www.udemy.com/course/simple-ios-chat-app-in-swift-4-firebase-4/?LSNPUBID=VkwVKCHWj2A&siteID=VkwVKCHWj2A-wV3kGNSueSCVcV8Oj.3Qxw&utm_source=adwords&utm_medium=udemyads&utm_campaign=DSA_Catchall_la.EN_cc.US&utm_content=deal4584&utm_term=_._ag_95911180068_._ad_436639626698_._kw__._de_c_._dm__._pl__._ti_dsa-402185414521_._li_9059739_._pd__._&matchtype=b&gclid=EAIaIQobChMI-uSro4KM6gIVCYizCh3XiwKLEAAYASAAEgL81PD_BwE

When offline, how to manage data? IOS [closed]

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 5 years ago.
Improve this question
I would like to know what are the best practices regarding, Modeling data when no network connection available, if the app you are building is cloud computing based, but still you want to be able to have basic functionality and I guess some persistent data?
PD: I am kind of new to IOS development
UserDefaults is okay for small bits of data that don't change often, but as it has to rewrite the entire user defaults dataset to a file each time a change it made, it is not robust enough for anything of volume or with frequent changes. For that you would want CoreData or a third party open source solution like Realm.io.
You can try to using the 'cache' where you store temporary data.
One way to achieve this is NSUserDefaults where you set a variable (let's say users profile photo) and when the user opens his app again, the image will be loaded even if there is no internet connection since its cached. Hope this helps!

How to store data on the internet for an iOS App [closed]

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.

How can we import data coming another erp? [closed]

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 8 years ago.
Improve this question
I have a question concerning the impact of companies acquisition and its impact on the global
information system harmonization. as an example, let's take a company A using ABS ERP
and acquiring:
- Company B using Blue cherry ERP
- Company C using Styleman ERP
How can we harmonize and give company A real time access to data from it's affiliates ERPs?
Thank you !
You can either use ETL to move data from one database to another, and have the same schema but this would be an overkill.
Another option would be to create services which sit on top of one ERP to extract data, and then custom development would be required to be done to the other system to integrate to these services. When data is viewed, data would be picked up from one of the ERP's database, and from the web services of the other.
Or else try to merge the companies using the same system, having a period of time with the systems running in parallel on both systems to make sure everything is running smoothly. Cross checks would need to be done to make sure data is OK.

Secure a Cocoa Touch Library with Remote Server, Local Script, and License-Key [closed]

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 7 years ago.
Improve this question
Background
I want to create a Cocoa Touch library where others will be limited to a finite number deployment builds using said library. However, there should be no limitations on the number of development builds.
I was considering a remote server which generates license-keys each associated with the library and a number of permitted deployment builds on the library.
When the user of the library builds for deployment, I need to check against the keys on the remote server.
Question
Does this seem like a sound approach for what I want to accomplish? If so, how does one check only for deployment builds while preventing the user from tampering with the script/binary that does the checking? If not, what would make it a sound approach?
Imagine the joy and rapture if every library you used was making calls to some random server, affecting your customers, hurting their experience. Making your development of your product a living hell for testing and distribution. Yea, that'd be a hoot.
Get a lawyer, get a solid contract, reserve the right to audit their sales, etc. Companies have had such arrangements for years, and actually abide by them with little more than a piece of paper and couple of signatures.

Resources