Hi, Do we have some solution for write Firebase Messaging I mean push notification?
I am currently relying on Cinterop for passing me some swift code to me but isnt there any way to use Swift Packages directly in IOS main in kotlin like rather than manually written the .def and .h files
f
François
12/20/2025, 10:07 AM
Hi,
Swift import is currently impossible on Kotlin.
You need to write a ObjC bridge by yourself using .def file (or using spmforkmp)
s
Soumen pal
12/20/2025, 10:09 AM
Thanks for the Info 👍
Soumen pal
12/20/2025, 3:15 PM
Finally I did it For IOS I use that OBJ + Cinterop uisng def files and h file its working fine,
and anyway we do not have any article related to it?
f
François
12/20/2025, 4:38 PM
No, but that’s why I made spmforkmp to make it faster :)
âś… 1
b
blakelee
12/20/2025, 10:18 PM
I use KMPNotifier for my KMP firebase notifications
s
Soumen pal
12/21/2025, 8:19 AM
HI, I had a followup question do we have some docs related to push notifications and deeplinks?
https://kotlinlang.org/docs/multiplatform/compose-navigation-deep-links.html
I mean as a deeplink it will open the intended screen when the app is also killed or closed, but from a push notification it only works if the app is in foreground/Background not if the app is closed. Do we have a solution?
b
blakelee
12/21/2025, 11:44 PM
I don't have those issue you are talking about. Each platform deals with deep links in a different way. On Android you use onCreate and onNewIntent, for iOS there's another method. Both have their methods for dealing with cold start or warm start. I don't know which framework your using for app state, but a lot of them have ways to handle the deep links after that.