getstream-io

How to filter out previously seen and read activities while retrieving notifications?

折月煮酒 提交于 2021-02-10 19:00:46
问题 In my app We have notification feed for users, with grouping formula {{ verb }}_{{ time.strftime('%Y-%m-%d') }} When User1 notifications are retrieved, it is having 1 notification for a “like” action. “Like” notification is having 3 activities, means three users have liked user1’s post. So Notification text displayed is: 3 users likes your post User1 notification are marked read and seen, After that 2 more users like user1’s post. Now when user1 retrieve notifications, He will get 1

How to filter out previously seen and read activities while retrieving notifications?

∥☆過路亽.° 提交于 2021-02-10 18:54:31
问题 In my app We have notification feed for users, with grouping formula {{ verb }}_{{ time.strftime('%Y-%m-%d') }} When User1 notifications are retrieved, it is having 1 notification for a “like” action. “Like” notification is having 3 activities, means three users have liked user1’s post. So Notification text displayed is: 3 users likes your post User1 notification are marked read and seen, After that 2 more users like user1’s post. Now when user1 retrieve notifications, He will get 1

How to filter out previously seen and read activities while retrieving notifications?

安稳与你 提交于 2021-02-10 18:53:48
问题 In my app We have notification feed for users, with grouping formula {{ verb }}_{{ time.strftime('%Y-%m-%d') }} When User1 notifications are retrieved, it is having 1 notification for a “like” action. “Like” notification is having 3 activities, means three users have liked user1’s post. So Notification text displayed is: 3 users likes your post User1 notification are marked read and seen, After that 2 more users like user1’s post. Now when user1 retrieve notifications, He will get 1

Push notification preferences

a 夏天 提交于 2021-01-29 04:48:11
问题 We need to allow a user to set specific preferences for receiving push notifications. Examples: mute specific channel send push only when @mentioned (global and chat specificly) docs https://getstream.io/chat/docs/#push_ios doesn't cover it at all. Seems only turn on/off all notifications is possible? 回答1: At the moment this is not supported by Stream Chat, improvements to the Push capabilities are added regularly so extended support for mutes and mentions will also come up soon enough. In

Are stream hierarchies possible in Getstreams.io?

我的梦境 提交于 2021-01-28 07:34:49
问题 We're building an application in which user can upload lists of pages, can leave notes on those pages, and people can discuss these notes. A user may choose to get notified for all replies on all notes on a page, which could all be separate activity streams. Or for all discussions on all pages in a list of pages (which can be many.) Would it be possible to let a list follow all its pages, and a page all its notes, so that a user can follow a page or a list and receive all the relevant updates

Timezone bug when retrieving “time” field?

怎甘沉沦 提交于 2021-01-27 04:48:49
问题 The manual specifies that uniqueness is based on foreign_id and time fields. I have an activity where a user joins a specific event. The event has its own start date which I want to display in the timelines, therefore I am submitting it as extra data (as well as name and location etc, but I omitted those here to prevent clutter). I submitted the activity with the following activity array to a user feed. Notice I am in Amsterdam, which is (at the moment) in a timezone of GMT+0200: Array (

How to use Getstream Rest API to get response in Postman?

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-17 09:42:17
问题 I am trying to implement Stream chat Rest APIs ( by following this link : https://getstream.io/chat/docs_rest ) provided by GetStream. So, I put the baseUrl and expected headers in following ways : Request Url : https://chat-us-east-1.stream-io-api.com/channeltypes These are the values which I put in Headers section of Postman : Authorization : <Getstream token (generating from setUser function) from backend> Stream-Auth-Type: jwt api_key : <Getstream API key> But I am getting this response

getstream-io: Using getActivities with an aggregated feed id

我是研究僧i 提交于 2020-05-24 04:26:26
问题 I have an aggregated feed ID in the format 46702136-5b7a-11e9-8080-80007f00215c.verb:id_2019-04-10 . When I call client.getActivities with this ID, I get an error "Invalid activity ID". I've tried just using the first part of the ID but this fails to return anything. Is there a reason this doesn't work, or an alternative? 回答1: The get activities endpoint allows you to retrieve individual activities, not aggregated activities. This is because aggregated activities are specific to individual

Does Stream.io for Swift have a “ReactionViewController” that works similarly to DetailViewController?

谁说胖子不能爱 提交于 2020-04-16 05:47:46
问题 While working with Stream.io for Swift I've found that Activities have reactionId's associated to them. You can view the reactions to an Activity using the DetailViewController. I've shown a picture below as an example: While testing it, I found that users can have reactions to reactions for example in the image you see "2 more replies". If you try to click to see those reactions nothing happens. I've figured out how to get the reactionIds of the Activity in the DetailViewController. But I

url signature missing or invalid getstream

瘦欲@ 提交于 2020-03-04 07:22:27
问题 var client = stream.connect('my-client-id', null, '7723'); var user1 = client.feed('flat', 'my-client-id', 'NuAW6yHVQ2sr9RQvBE-cCuewUlo'); // What is this token param (3rd one)? How is this generated? var acticity = { actor: 'QUXdERFPto', tweet: 'Hello world', verb: 'tweet', object: 1 } user1.addActivity(acticity).then(null).catch(function(e) { // Error object is // code: null // detail: "url signature missing or invalid" // duration: "10ms" // exception: "AuthenticationFailed" // status_code