How to gather anonymous data from user using Firebase [closed] - swift

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 4 years ago.
Improve this question
I want to gather anonymous information about my users music library. The information I want to gather is what is the count of rock songs, count of country, rap, jazz, etc etc. Again anonymously.
Lets say a user downloads the app and I have a method that checks if this the first time running. If so, then gather the info and send it to my Firebase console. If not then do nothing. But what if that user deletes the app and then re-downloads it. I don't want duplicate data. (I realize that a persons music library changes over time and I don't really have a good solution for that.)
How can I take the data from user A and assign that data that user and not re gather it whilst still keeping that user anonymous?

I see two variants here:
First to make a unique key for the user. Since you are gathering the anonymous data it could be something that cling to the user phone. Something like this.
Second is that you will save the bool flag that the app has collected the info not into user defaults, but to the keychain. Keychain doesn't clear after the app is removed, so you can check it if the app would be reinstalled.

Related

What is the best way of creating "half-offline" app in flutter? [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
"Half-offline" app in my definition is an app with pre-populated data and the ability to update data.
For example:
Recipe app
Collection of quotes
Short tales
When a user installs the app, it comes with a number of recipes/quotes/tales inside. Then after some time, a user can update the collection manually. Updates can be requested from Firebase or own servers.
So what is the most correct way to pre-populate a SQL/NoSQL database or file assets and what software I should use to pre-populate a database?
From my experience, I prefer to start using Firebase Firestore, they already solved the online/offline structures, and you can do the steps by following this article
If you want to handle it by yourself, you can build and create your own SQLite, you can do that by following this article too, in this stage you can update the data every week, month by calling a single API request from your side.

Get images data and user data from facebook [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 am working on a final year research project which is Intelligent Travel Recommending System. In this work I want use social media data to analyse what type people prefer what type places to travel.So I have to collect travel images posted by users in public and that user's data(age,nationlity,gender etc).I supposed analyse those images and categorize(natural,historical,hiking) them. Then I can recommend a place to a perticular user by using those categorized data and user data.So my problem is can I get those data from facebook now in 2020?
I've read some articles in internet and they've used graph API to acess data as a developer but the problem is fb no longer give acess to others data. If that's the case is there any other way to get public data?I mean can I scrape data from facebook or is there a better way?I am still a university student and I would be grateful if anyone can help me with this isse?
Access to data of people who did not specifically authorize your App is not possible, no matter if public or not. Facebook specifically forbids scraping, so there is no way.
Also, you would not be allowed (or able to) contact specific users without their consent/approval.
I am afraid your idea would only work for people who autorize your App.

Giving users the allusion of a free trial [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 am offering a subscription to users right when they sign up to my iOS app. If the user does not purchase the subscription offer at sign up, I want to give them the premium version of the app for 7 days. Once the 7 days past I want the user to have to purchase a subscription to continue to use the app.
I do not want to do just a basic counter/timer in the app because users' can just delete and reinstall the app to get full access once their time is up.
What is a possible way of accomplishing this?
Apple provides a way to do that. but it supports iOS 11.0+ It's called DeviceCheck
From the docs:
Access per-device, per-developer data that your associated server can
use in its business logic.
You can set two bits data per device and keep in mind that it is dev's responsibility for keeping track of whether a user is entitled to redeem any offer that you provide.
A good way to start

swift get another user location [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 6 years ago.
Improve this question
Hi I was shown an adroid app where parents can see their kids location. I am wondered whether it is possible to do the same in ios. I know you can show your own location but how about showing another person's location. Is it possible? Their kids should not have to do anything the app itself receives child's location
Well that would be if you have a database that everyone can access where you store the positions. Take a look at Firebase for the database part.
So basically:
Get the position from the user
Store the position in the database
Get the position from the database
Parse the result and add an annotation to your mapview
Edit
If your iOS app must keep monitoring location even while it’s in the
background, use the standard location service and specify the location
value of the UIBackgroundModes key to continue running in the
background and receiving location updates. (In this situation, you
should also make sure the location manager’s
pausesLocationUpdatesAutomatically property is set to YES to help
conserve power.) Examples of apps that might need this type of
location updating are fitness or turn-by-turn navigation apps
For more information read this guide by Apple.

How to confirm/validate a users real-life actions in an 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 6 years ago.
Improve this question
I have an idea for an app that rewards users for completing real-life actions (things like recycling, eating healthy .etc) but I want to avoid having a button on every action saying "I did it" because then some users will just click all the buttons to get the rewards.
I have tried searching Stack Overflow for things like "confirming a users actions" and have not turned up any promising results.
Some examples of actions I would like to try and confirm if possible are:
recycling
certain food items the user buys (barcode scanner maybe?)
donations to thrift shops (goodwill .etc)
users energy bills/use
I understand that some of these may need to be trust-based (I.e. With a "I'm done" button) but I would like to minimize the use of this as much as possible to prevent users from cheating the system. Does anyone know of some reliable ways to verify that the user has completed the tasks before offering rewards?
You have to look at the sensors that are available to you on the device. Honestly I can't see a way to do many of the things you suggested. Location based actions may be a good route. Checking in within 1Km of the gym or thrift store for example.
I heard about an app (i forget the name) where you would program in what exercise you are trying to do then the gyro and accelerometer in the phone would determine if you are performing the exercise correctly and verifying how many times you did it.