Giter Site home page Giter Site logo

Comments (7)

tbarbugli avatar tbarbugli commented on May 25, 2024

are you sending activities to the notification feed? this is usually using the method activityNotify, if you implemented that, please share the relevant code

from stream-laravel.

Mathias88 avatar Mathias88 commented on May 25, 2024

This is my code:

$feeds = FeedManager::getNotificationFeed($user_ud = 1);
echo '<pre>'; print_r($feeds->getActivities(0, 5) ); echo '</pre>';

And the response is:

Array
(
    [duration] => 22ms
    [next] => 
    [results] => Array
        (
        )

    [unread] => 0
    [unseen] => 0
)

from stream-laravel.

tbarbugli avatar tbarbugli commented on May 25, 2024

perhaps you are not sending data to the notification feed. do you send data there directly or via the activityNotify method?

from stream-laravel.

Mathias88 avatar Mathias88 commented on May 25, 2024

I do not understand. I think this method activityNotify not defined in the package. Could you give an example of use? Because, in the documentation nor is there a clear example. Thank you very much.

from stream-laravel.

tbarbugli avatar tbarbugli commented on May 25, 2024

Did you see this one? https://github.com/GetStream/stream-laravel#notification-feed
In order to send activities to a notification feed you have to implement the activityNotify method in your activity class. The method returns the notification feeds where the activity must be stored.

from stream-laravel.

Mathias88 avatar Mathias88 commented on May 25, 2024

Ooh thx! Now I understand. Thanks for your help.

from stream-laravel.

tbarbugli avatar tbarbugli commented on May 25, 2024

glad it helped :)

from stream-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.