Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notification icon does not seem to be displaying #107

Open
Chris-CWZ opened this issue Nov 28, 2019 · 1 comment
Open

notification icon does not seem to be displaying #107

Chris-CWZ opened this issue Nov 28, 2019 · 1 comment

Comments

@Chris-CWZ
Copy link

Chris-CWZ commented Nov 28, 2019

I've had no problems setting up notifications, everything is sending properly with the proper subject and body, it's just the icon is still the default bell icon despite the fact that i've set it to be a different one explicitly. Below is my code to generate the OneSignal Message.

public function toOneSignal($notifiable){
        return OneSignalMessage::create()
            ->subject('Your registration has been approved')
            ->body('Login now!')
            ->icon(url('images/push_icon.png'));
    }

The icon should be pulled from the images folder under the 'public' folder in my Laravel app, with the name of 'push_icon.png'. However, the icon is still wrong when I send out the push notifications. Am I doing something wrongly? Thanks for your attention and help.

@metallurgical
Copy link

@Chris-CWZ have you make it work display an image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants