I stupidly built my backend with firebase before I realized it can’t handle push notifications in conjunction with expo. So, I also built a rails backend purely to handle pushes. (The app I’m building is just for a class project, so it will never have a large enough user base for this to be an issue.) The idea is, we hit firebase for the token, post the token and message to the rails server, and then Expo sends the push. That all seems to be working–but no notification shows up on my simulator. Am I missing something? Do I need to bundle & eject & run on a real phone before the notification will show up? Any advice would be much appreciated.
I’ve attached some code snippets and a snippet of the server logs showing that the POST request is received and everything looks fine. (Remember, I post the token to the backend, so I don’t need to grab it off my rails server. Hence no need for a lookup or create call.)
And on the frontend:
Any advice? Thanks a lot!