codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.71k stars 408 forks source link

REF: send push notification with firebase for Android & IOS library #3060

Open fuadnassar90 opened 4 years ago

fuadnassar90 commented 4 years ago

our developers need to send push notification from firebase to android and iOS devices,

fuadnassar90 commented 4 years ago

some of our developers tried to implement it from native code for android and ios and that work as fine when app in background. but push notification does not work when app in forground. we can provide you a full demo project of that. What should you do ? just fix callback method and create a cn1lib for that, it doesn't need more than 1 day from you.

note: this way doesn't need a pro account to send push notification.

fuadnassar90 commented 4 years ago

@javieranton-zz Thank you to helping, i can see your msg in my email and we will testing that.

javieranton-zz commented 4 years ago

@fuadnassar90 I put it all otgether here have a look https://collaborativegroups.blogspot.com/2020/05/implementing-native-android-ios-push-in.html

fuadnassar90 commented 4 years ago

Wow really you are a strong programmer it's an amazing thing Thank you so much Best Regards

javieranton-zz commented 4 years ago

Thx, learning as I go... just hope this enables the community to create some awesome push stuff that currently is a bit tricky... go CN1

fuadnassar90 commented 4 years ago

Yeb, it would be so nice if this was added to cn1 by @shannah @codenameone

javieranton-zz commented 4 years ago

To be fair CN1's own implementation (with subscription) is fantastic if you're looking for a straightforward implementation that's out-of-the-box. The difficulty lies in that it kind of stops you from implementing it yourself. It kind of makes CN1 a difficult framework to work with when its beauty is the simplification it offers and also lowers the quality of the apps built with it as they can't customize push to their own needs. It was a brilliant idea when push was new and simple but nowadays there are so many use cases. Anyway hope this works for you and for anyone trying to find a way through this