Skip to content

The execution stops on 'client.SendMessageAsync(message)' #17

@diegosiao

Description

@diegosiao

Hi! I am trying to use this package on a Web Api project and the message is never sent.

In fact, when forcing the method to run synchronously, the .Result never gets a reference and the execution stops.

The referred block of code below:

                        var client = new FCMClient(AppConfig.GoogleFirebaseApiKey);
                        var message = new Message()
                        {
                            To = destination_user.FirebaseToken,
                            Notification = new AndroidNotification()
                            {
                                Body = mensagem,
                                Title = fromUser.Email,
                                Icon = "MyAppIcon"
                            }
                        };

                        var r = await client.SendMessageAsync(message);

Thanks in advance for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions