I got this idea to create something quite simple as an exercise in Firebase, I want to create a simple App with a couple of views: A "Homepage" / Splash screen which navigates to a couple of different views:
A "friends" list where the user can add other users and monitor their online / offline status as well as send them an invite to a selected group
An "invites" screen monitoring incoming invites
A "groups" list where the user can create, delete and select group(s)
And finally a collaborative list shared between members of the selected group.
A quick use-case:
A user "User1" opens the app and creates a group "TestGroup" and click it to select it as the active group
The user then heads to the friends screen, here they add a friends "User2" and click their name in the list, a popup arrears asking them to confirm whether they want to invite "User2" to join the active group "TestGroup"
"User2" finds an invite on his "invites" screen which he click to accept
Now "User1" and "User2" can both read and write to the aforementioned collaborative TableView list which changes depending on which "group" is active / selected.
Is this something that's possible? I've gone through a few tutorials regarding basic Firebase setup like this: https://www.raywenderlich.com/187417/firebase-tutorial-getting-started-3 which suit my needs quite well, but I don't know where to get started about the "collaborative" list.
Yes it is possible. Structure can be like this:
-MembersForGroups //here you have the groups and the members that are on each group, so when the user chooses a group the members are easily displayed
--Group1ID
---member1ID:true //when the user creates a group, the groupID is create and their user id is automatially added as member
---member2ID:true
-Colabsheets //here you have all the colab sheets with each group containing the posts that users have made.
--Group1ID // Give the sheet the same ID as the group so when you choose a group you can easily load the colab sheet.
---Post1
senderid:""
message:""
timestamp:""
---Post2 ....
Related
I have an apple shortcut that selects the next items from my calender and shows me a list to select from. When I select an item I'm shown the time it takes to get to that appointment and gives me the option to plan a route (using maps or google maps). This works great.
I would like to add a static address to this list to always have a "speed dial" to plan a route to that address (home for example). Is this possible?
I would like to manage the friends I added in my app (with swift and Firebase)
For example , I would like for a user (who have 15 friends) :
To create a group with 5 friends for example (the user could add a name for this group)
To delete if necessary the group
To send a message(textfield) to a group
To send a message (textfield) to a user
I don't know how to do it. Could someone give me a clue ?
Thanks for helping me !
Have a nice day!
There are a few topics that I have found while searching for an answer to this, but nothing that specifically helps my situation. Here's what I need to do and some background.
Web application has a field called "Requested by" that automatically inputs the logged in users name from Active Directory. This cannot be edited.
User selects a store location from the first list, this location is where the requested user will be setup for.
Second list needs to then populate with a list of potential approvers by first seeing which store was selected, then grabbing a list of names from an Active Directory group called "Store Managers"
Example
Bob Jones is requesting a new logon for Sally Smith who will work at Store 1.
Bob selects "Store 1" from the first dropdown list
List 2 populates a list of approvers who are in "Store 1" group AND "Store Managers" group.
Can someone please tell me where to start on this! Any help is very much appreciated!!
Within the function that is called whenever the first drop-down menu changed, ie. a new value has been selected (such as selecting a store), you can have a simple if-else structure that, depending on the newly selected drop-down menu item, checks for any valid values within your Active Directory.
That is as specific as I can be, seeing as you haven't posted any code along with your question.
This is a generic question. My wife has company that has one-of-a-kind products such as the photo showed.
The challenge is, she wants to be able to create something like what is shown without doing it manually. The challenge is the products/photos are constantly changing so the photos that show would have to be dynamic and show the inventory.
Sometimes there are 20 products/photos other times there are 40... it seems to me the challenge would be in the view and changing the amount of photos that show up based on the change in inventory.
Thanks for your thoughts, this is a great community.
What I would do in this case is have a couple of models
1) Client - the peroson whom the product is for this would look like:
id
name
2) Album - this is how we can group all the photos in a collection
id
client_id
name
3) Image - this are the actual images you want to use in the collection
id
album_id
file
display_order
if you are still having question just ask
I will try to build a demo of of this.
Problem:
I am trying to create an app whereby a person can 'click' on tag buttons that are of different sports preferences (ie: "Running", "Involves Bats"), each of which are tagged to certain sports. So, if the user selects the tag "Involves Bats", then the app will generate all associated sports such as "Baseball", which would have "Involves Bats" as a pre built tag.
What I've Done So Far:
I have added the acts_as_taggable gem
I have created a model for "Sports", that has no controller.
I have in seeds.rb created defined the "Sports" model with names of each sport.
I have a Users controller, where someone can submit email which takes to them to the their user page.
What is Left
I need to tag all preferences (ie "Running") to all potential "Sports". I am having a really difficult time doing this.
I also need to on the Users Page, show the tags ("Running") from which to choose.
I need to let User select the tags, and then generate the recommendations of Sports based on the associated tags
I know this is a fairly complex question, but I believe is a fairly common/basic app to build.
Thanks!
You should check out Railscast episode #382 on tagging: it shows exactly what you need!
http://railscasts.com/episodes/382-tagging