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

Research and implement push notifications for React Native with Elixir backend #22

Open
mdshamoon opened this issue May 18, 2023 · 6 comments

Comments

@mdshamoon
Copy link
Member

Is your feature request related to a problem? Please describe.
At some point we will need to send push notifications on the app for various things like errors or events happening

Describe the solution you'd like

  • When a notification is send from the server it shows notification bar on the mobile even if the app is not open
  • Research on how we can do this with an elixir backend
@ajaman190
Copy link
Collaborator

@mdshamoon I would like to work on this issue. Please assign it to me?

@ajaman190
Copy link
Collaborator

We can use expo notification: https://docs.expo.dev/push-notifications/sending-notifications/

image

@ajaman190
Copy link
Collaborator

But in this approach, there will be an intermediate Expo backend that we may not want?

@mdshamoon
Copy link
Member Author

We definitely don't want the expo backend.
Just check these and see if it can work for us:
https://github.com/codedge-llc/pigeon
https://docs.expo.dev/push-notifications/sending-notifications-custom/

@ajaman190
Copy link
Collaborator

@mdshamoon I have implemented the code in the Elixir backend, which have two end point

  1. register the user's device token and device type, and
  2. send push notifications directly to any device using FCM and APN.

However, the problem is occurring on the frontend side. Actually, Expo is restricting us for using the Expo Notification package, which relies on Expo Server as an intermediate server. This is because, for direct implementation with FCM and APN, several configurations need to be done in different native files of Android and iOS, which are only available in a React Native CLI project.

@mdshamoon
Copy link
Member Author

Sorry got a little late responding here. Let me check on these and will get back to you.

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