Giter Club home page Giter Club logo

flutter_fgbg's People

Contributors

ajinasokan avatar rexios80 avatar roeierez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flutter_fgbg's Issues

Is there a way to detect if the "app switcher view of an iOS device" is open?

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).

  • On iOS devices with home buttons (for ex: iPhone 6,7,8 etc): if you double tap the device's home button on the bottom, it shows the app switcher view of iOS.
  • On iOS devices with full size screen (for ex: iPhone X,11,12,13 etc): if you swipe the bottom screen handle up and wait for a while, it shows the app switcher view of iOS.
  • Similar things apply on Android devices too. It can be opened either with tapping the square shaped virtual button or swiping the handle up.

Please consider this as a feature request if there is not a way of doing it. Thanks a lot.

hi, does it work inside a background service?

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

Wrong version installing on Mac M1

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 ...

Is only one subscription allowed?

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

Exception when using the plugin

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): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Migrate to Null Safety

Hello, I'm using your package on my app. Do you have any plans to support null safety?

is shutdown detected?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.