gorush icon indicating copy to clipboard operation
gorush copied to clipboard

Notification Issue

Open 1appstudio opened this issue 2 years ago • 2 comments

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

  1. git clone https://github.com/appleboy/gorush.git
  2. cd gorush
  3. go install

Added PATH variables also to run "go"

After the steps, I ran the command to check the server is working or not .

Go-1

And check the default api in safari browser

Screenshot 2022-05-19 at 4 17 10 PM

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.

Screenshot 2022-05-19 at 4 20 56 PM

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.

1appstudio avatar May 19 '22 10:05 1appstudio

I got success by did the following way.

  1. Download go language and install on my Mac.
  2. brew install wget
  3. Download the precompile version using wget https://github.com/appleboy/gorush/releases/download/v1.15.0/gorush-v1.15.0-darwin-amd64 -O gorush
  4. Make the downloaded file executable
  5. Check gorush command using ./gorush
  6. copy the config file from (project directory/config/testdata/config.yml).
  7. Add android key to send push

Happy Coding.

FvApp avatar May 23 '22 15:05 FvApp

@1appstudio you modified the wrong config file. You can run gorush with option -c /path/to/config.yaml to set your own configuration.

slimus avatar May 31 '22 15:05 slimus