esl / MongoosePush

MongoosePush is a simple Elixir RESTful service allowing to send push notification via FCM and/or APNS.
Apache License 2.0
108 stars 24 forks source link

When hit MongoosePush API nothing to show in web browser #195

Closed masterhydra closed 4 years ago

masterhydra commented 4 years ago

same as below issue:- https://github.com/esl/MongoosePush/issues/26#issuecomment-453896716

I am using CentOS-7, My MongoosePush Container is run and Now I Check 8443 port is up in my CentOs-7 Server, by netstat -tunpl command.

Now I am trying to hit MongoosePush API in my webbrowser to show some output but it is shown blank page, I did inspect element in inspect element -> network error 500 is display, after that I just put command curl localhost:8443 it will show curl: (52) Empty reply from server Kindly Guide me where I am wrong.

masterhydra commented 4 years ago

Hello All,

I have found mongoosepush API and hit on browser which is https://localhost:8443/swaggerui and I have found push url via this API which is mention below for development. curl --insecure --header "Content-Type: application/json" --request POST --data '{"service":"apns","mode":"dev","alert":{"title":"New Message","body":"Welcome to iOS 7 Push Notifications"}}' https://localhost:8443/v3/notification/device_token