ajinasokan / flutter_fgbg Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin to detect when app(not Flutter container) goes to background or foreground
License: MIT License
Flutter plugin to detect when app(not Flutter container) goes to background or foreground
License: MIT License
Hi ๐ @ajinasokan, thanks for building this package ๐. Currently, it can detect if the app is in background or foreground state successfully.
However, it doesn't detect if the app is in app switcher state. I also want to detect if the app is in that state.
If you wonder what app switcher is where you can see the recently opened apps (or currently open apps).
Please consider this as a feature request if there is not a way of doing it. Thanks a lot.
this looks like tricky, am not sure if it can detect apps goes back from background and using inside backgounrd service.
What I want to do, is judge inside backgounrd service, if in background then send notificatio when new messages comes in, otherwise not notify since user already on UI.
Could lfutter-fgbg able to do this?
Why i need this is bacause i can not found a good way to control backgroudn services with flutters's widgetBindgObserver
This is very strange ... seems a recent issue after I began using --dart-define in my build phase
I have a null safe flutter project, and my build onto IOS keeps failing.
Even though my pubspec.yaml specified fgbg "^0.1.0", the podfile.lock indicates that "0.0.1" has been installed.
Build to IOS simulator keeps failing with:
flutter_fgbg not found
on this line of the GeneratedPluginRegistrant.m
#if __has_include(<flutter_fgbg/FlutterFGBGPlugin.h>)
#import <flutter_fgbg/FlutterFGBGPlugin.h>
#else
@import flutter_fgbg;
#endif
I'm very confused but I'm going to just point straight to this repo (instead of pub.dev) and see if that changes anything ...
please move to mavenCentral
Hi there,
I'm trying to connect to the stream from 2 different points in my app, It seems like the last one to connect has the stream flowing into it, and the other one does not.
Am I doing something wrong or this is by design?
Thanks
I/flutter (26123): โโโก EXCEPTION CAUGHT BY SERVICES LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter (26123): The following MissingPluginException was thrown while activating platform stream on channel
I/flutter (26123): com.ajinasokan.flutter_fgbg/events:
I/flutter (26123): MissingPluginException(No implementation found for method listen on channel
I/flutter (26123): com.ajinasokan.flutter_fgbg/events)
I/flutter (26123):
I/flutter (26123): When the exception was thrown, this was the stack:
I/flutter (26123): #0 MethodChannel._invokeMethod
package:flutter/โฆ/services/platform_channel.dart:154
I/flutter (26123): <asynchronous suspension>
I/flutter (26123): #1 EventChannel.receiveBroadcastStream.<anonymous closure>
package:flutter/โฆ/services/platform_channel.dart:486
I/flutter (26123): <asynchronous suspension>
I/flutter (26123): โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Hello, I'm using your package on my app. Do you have any plans to support null safety?
Hi,
When I force shutdown of the app the plugin is not detecting app background event.
Is this the expected behavior?
I would like to be able to do a couple of things before the user completely shutdown the app. is that possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.