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 Issue #681

Open
1appstudio opened this issue May 19, 2022 · 2 comments
Open

Notification Issue #681

1appstudio opened this issue May 19, 2022 · 2 comments

Comments

@1appstudio
Copy link

1appstudio commented May 19, 2022

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.

@FvApp
Copy link

FvApp commented May 23, 2022

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.

@slimus
Copy link
Contributor

slimus commented May 31, 2022

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

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

3 participants