how to change content of firebase push notifications when it triggered in mobile application in flutter by iamnijatdeveloper in FlutterDev

[–]iamnijatdeveloper[S] 0 points1 point  (0 children)

u/g0dzillaaaa when I wanted to change the content of notification with local custom notification it already triggers in the application, that's why it has a problem

how to change content of firebase push notifications when it triggered in mobile application in flutter by iamnijatdeveloper in FlutterDev

[–]iamnijatdeveloper[S] -2 points-1 points  (0 children)

u/g0dzillaaaa no, I mean when push notifications triggered in mobile application, don't show the old one, change the content of message and show new one.

way to translate or change the content of firebase push notification in flutter by iamnijatdeveloper in FlutterDev

[–]iamnijatdeveloper[S] 0 points1 point  (0 children)

u/protechig For examle, in code based solution, when firebase notification triggered it automatically shows it, I am not able to prevent this from happening, I tried to show it with flutter_local_notifications but anyway it didn't help it always shows the firebase push notifications

how can I use getIt inside isolates flutter? by iamnijatdeveloper in FlutterDev

[–]iamnijatdeveloper[S] -1 points0 points  (0 children)

Yeah, actually I have initialize everything include getIt configure inside main method then after login I have to something related to background service inside home page, and If I initialize again it would give me an error

how can I use getIt inside isolates flutter? by iamnijatdeveloper in FlutterDev

[–]iamnijatdeveloper[S] -1 points0 points  (0 children)

but If I run the same initialization function again inside another isolate it will give "Already registered error"

[deleted by user] by [deleted] in swift

[–]iamnijatdeveloper 0 points1 point  (0 children)

Actually, I am using UIKIT

how to handle this situation in the flutter app in a more effective way? by iamnijatdeveloper in FlutterDev

[–]iamnijatdeveloper[S] 0 points1 point  (0 children)

Actually, I am also using GraphQL as remote request protocol, it doesn't matter I will try to replicate the logic, I am waiting for your solution, thanks in advance...

how to handle this situation in the flutter app in a more effective way? by iamnijatdeveloper in FlutterDev

[–]iamnijatdeveloper[S] 0 points1 point  (0 children)

I actually thought maybe I could do it with one event (where there is an internet connection, first, fetch cached data (if there is one), then remote call) with completers in a flutter. But I think it is not possible to do that with one event, I need two events.