Victor Sandoval

02/19/2023, 7:23 PM
Hi everyone, I am creating a multiplatform messaging application (android, ios, web) and want to integrate FCM for push notifications. I am using mongoDB as my database and ktor. I am unsure of how much of the code can be shared by all three platforms. I have been searching for resources and examples but haven’t had much success. Can someone point me to some helpful resources, I would appreciate it highly!


02/19/2023, 7:46 PM
what I'd do is have some sort of shared
which has the push message payload as a input, and have all my logic there
and instantiate it in the FcmService on android, and equivalent on ios, so no expect actual, simply two callsites