Forum Xamarin.Forms

Send notification when something change in Database

Hi, I want to implement logic to my xamarin.Forms application (for android and Ios), which sends notification to user when something new appears in database. For example when other user add an invitation to database, invited user will receive it. Thanks

Answers

  • JarvanJarvan Member, Xamarin Team Xamurai
    edited January 10

    For example when other user add an invitation to database, invited user will receive it. Thanks

    Call the api to send notifications when updating the database. If the database is changed, add the command to call the corresponding api method. The server will parse the post data to obtain the user id and send a notification to the user.

    Database.InsertAsync(item);
    
    //call the api send parameters and notify the server to send a notification.
    

    Check the link:
    https://stackoverflow.com/questions/11151894/how-to-do-push-notification-from-server-to-android-mobile

Sign In or Register to comment.