gorush
gorush copied to clipboard
Notification Issue
Hi,
My Development System is Apple M1 chip.
I have a react native application which supports both Android & IOS notification. Currently I am using firebase to send notification to my device android & IOS device.
Now I am willing to integrate your code, So I have followed the steps you provided on the document
- git clone https://github.com/appleboy/gorush.git
- cd gorush
- go install
Added PATH variables also to run "go"
After the steps, I ran the command to check the server is working or not .
And check the default api in safari browser

Now, I wan to change config.yml file with my API KEY android, so I modified the file (project directory/config/testdata/config.yml).
Close all the terminal, Reopen the server and checking status in browser. Finally I ran the push api in postman with body content.

But notification is not received on my device, if I am using firebase to send push, it will receive.
Can you please help to move further.
I got success by did the following way.
- Download go language and install on my Mac.
- brew install wget
- Download the precompile version using wget https://github.com/appleboy/gorush/releases/download/v1.15.0/gorush-v1.15.0-darwin-amd64 -O gorush
- Make the downloaded file executable
- Check gorush command using ./gorush
- copy the config file from (project directory/config/testdata/config.yml).
- Add android key to send push
Happy Coding.
@1appstudio you modified the wrong config file. You can run gorush with option -c /path/to/config.yaml
to set your own configuration.