https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

Chetan Sachdeva

06/03/2020, 5:47 PM
Has anyone tried integrating FCM in a KMP project? A reference implementation would help. Thanks in advance 🙂
r

ritesh

06/04/2020, 4:01 AM
And if you don’t want to use
cinterops
then you can also create a thin interface (not actual/expect) which simply defines the firebase sdk apis (the basic ones like get/post/etc) and them implement them on both platforms which returns json/string back and then use KMP to map them and to use it further. I used this approach in a toy project and it worked great!
c

Chetan Sachdeva

06/04/2020, 7:05 AM
@saket these are great but these are for Firestore. I’m actually looking for Firebase Cloud Messaging.
@ritesh I guess I can try that if I don’t find anything. Thanks! 🙂
105 Views