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!
Related
i want my app to show data only to those who are listed in my Users sheet list (check the image '2'), then i want it to show only the rows that contain the name of that user.
i tries this but seems that my logique is wrong !
Any Help :) Thanks in advance.
Im creating student list for our library. The student will submit their info (Name and ID) through google form. Once the student submit, I would like to assign each student to different staff (total of 5 staffs) (Column D). Something like screenshot below. Could someone help me get this done? BTW, is it possible to send email too to the assign staff email?
You can use this formula for getting the students information into the dummy tab:
=IFERROR(DGET(StudentDetails!$A$1:$H$25,"Name",{"No";A2}),"")
And then just use this Apps Script tutorial for sending emails.
Reference
Sending emails from a Spreadsheet Apps Script
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 ....
I have successfully posted now. I have successfully set the privacy params and they work fine. Next, I would like to be able to add people tags like you can do in the Facebook website, where it adds to your message such as: with Bill Smith and Joe Blow. I've read the documentation on Post's. There it includes an item called message_tags, but that seems to refer to a location in the message. So, I created a message on the FB website on my wall where I added a couple of friends and the message has the 'with x and y' on the screen. Then, in my app, I downloaded my posts to see what they looked like in the logging view. No message_tags, but two other places, 'to' and 'with_tags' have the friends there. So, I modified my posting code to use each of these and even tried using both. They post with no error, but viewing on the FB website, no mention of the friends.
When I download these posts using my app, no mention of 'to' or 'message_tags' or 'with_tags'.
Any help would be appreciated.
In addition, I have tried to specify a place in the params. I used data taken from a post which I created on the FB website and downloaded into my app, so the data should be valid. Here is the JSON:
place = "{\"id\":\"171321908789\",\"name\":\"City O City\",\"location\":{\"street\":\"206 E. 13th Ave.\",\"longitude\":\"-104.9845\",\"latitude\":\"39.7367\",\"zip\":\"80203\"}}";
When I include this for key: place, I get this:
0 : {contents = "message"} = {contents = "(#100) {"id":"171321908789","name":"City O City","location":{"street":"206 E. 13th Ave.","longitude":"-104.9845","latitude":"39.7367","zip":"80203"}} does not resolve to a valid user ID"}
To post
Hi -- in PLACE with FRIEND1 and FRIEND2
you only need the ids of the place and friends. Try the following parameters :
message : "Hi",
place : "PLACE-id",
tags : "FRIEND1-id, FRIEND2-id"
It works for me in the graph explorer (
http://developers.facebook.com/tools/explorer) with the publish_actions permissions, when I post to https://graph.facebook.com/ME-id/feed
Hope it helps some people and is not too late for you.
A.
Can you import and commit multiple PIM contacts collectively? Currently we are importing and committing each contact individually, which results in the user having to authorise each contact.
This is our code:
PIMItem[] pi = instance.fromSerialFormat(inputStream, "UTF8");
Contact contact = contactList.importContact((Contact) pi[0]);
contact.commit();
Does anyone know how to do this?
You probably want to sign your application so the user gets the option to accept contact updates just once.