Hi, Do we have some solution for write Firebase Me...
# multiplatform
s
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
Hi, Swift import is currently impossible on Kotlin. You need to write a ObjC bridge by yourself using .def file (or using spmforkmp)
s
Thanks for the Info 👍
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
No, but that’s why I made spmforkmp to make it faster :)
âś… 1
b
I use KMPNotifier for my KMP firebase notifications
s
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
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.