Hi everyone, I am creating a multiplatform messagi...
# multiplatform
v
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!
u
what I'd do is have some sort of shared
PushRouter
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