spot icon indicating copy to clipboard operation
spot copied to clipboard

Enable push notification

Open dshukertjr opened this issue 4 years ago • 10 comments

Using FCM

dshukertjr avatar May 26 '21 16:05 dshukertjr

Hey @dshukertjr can I work on it? Thanks

Rohithgilla12 avatar Jun 02 '21 13:06 Rohithgilla12

Hey @Rohithgilla12 !

I am so grateful that you are willing to implement this! Apologies for the messy repo. I haven't really made it organized, so I'm sure it's hard to work with.

I actually haven't added Firebase config files to this app yet(I know, no analytics right now lol), so let me quickly add it quickly! Then it should be easier to add FCM! Thank you so much for helping out!

dshukertjr avatar Jun 02 '21 23:06 dshukertjr

In the mean while, there are other issues that are not related to firebase that can be worked on if you are interested!

dshukertjr avatar Jun 02 '21 23:06 dshukertjr

@dshukertjr Sure will check on other issues in the meantime

Rohithgilla12 avatar Jun 03 '21 02:06 Rohithgilla12

@Rohithgilla12 Sorry, that it took so long. Every single time I add Firebase to a Flutter project I encounter new bug... But I added firebase to the app! If you are still willing to work on this issue, it would be awesome!

If you have any question or feed back about the code, please don't hesitate to ask! Also please don't hesitate to mention me to discuss the specifics about the implementation of this!

dshukertjr avatar Jun 06 '21 06:06 dshukertjr

@dshukertjr Sure I will enable the push notifications on the application side. How do I create my dev environment? Should I create a new supabase project and copy-paste the configuration? Thanks

Rohithgilla12 avatar Jun 06 '21 06:06 Rohithgilla12

Thanks @Rohithgilla12

I think just being able to receive FCM and show a notification banner when the app is in background or terminated would be good enough for now.

There is an dev environment Supabase ready to be used if you just hook up your device and run it!

Also, I have been unable to run the app locally on iOS (release build succeeds, so am able to verify all the functionality though testflight), so it might be better to just use Android.

dshukertjr avatar Jun 06 '21 07:06 dshukertjr

Screenshot 2021-06-06 at 12 36 54 PM Having a problem running this, should I run any command to generate files?

Rohithgilla12 avatar Jun 06 '21 07:06 Rohithgilla12

@Rohithgilla12

This happens to me as well sometimes and I don't know why. There are no code generation here actually. For me, shutting down VS Code and reopening fixes it. Also, I am using Flutter 2.2.0 just in case you were wondering!

dshukertjr avatar Jun 06 '21 07:06 dshukertjr

Sorry, couldn't properly tag in the previous comment @Rohithgilla12

dshukertjr avatar Jun 06 '21 08:06 dshukertjr