Giter Site home page Giter Site logo

Comments (7)

aytunch avatar aytunch commented on September 6, 2024

@cemozerr Have you found a solution? If not, have you tried this fork?:
firebase/flutterfire#4023 (reply in thread)

from flutter-apns.

szotp avatar szotp commented on September 6, 2024

Hi have you seen Troubleshooting section?

Perhaps you managed to fix it, as I just merged your #41
What was the issue then? I'll add it to FAQ.

from flutter-apns.

intoxicated avatar intoxicated commented on September 6, 2024

I'm facing same issue that onMessage does not get called when app is on background. I don't know why but onMessage get called at some random point when the app is on foreground.. (after get push)

from flutter-apns.

lordgreg avatar lordgreg commented on September 6, 2024

Hi @intoxicated - Can you please provide more information:

  1. flutter_apns version
  2. flutter version
  3. code where you've registered on onMessage

Thank you.

from flutter-apns.

horam-deriv avatar horam-deriv commented on September 6, 2024

I have the same problem, and these are the versions:

  1. flutter_apns 1.5.1 (also i have faced it in 1.5.0)

  2. flutter version 2.2.0

  3. code:
    ` final PushConnector connector = ApnsPushConnector()
    ..configure(
    onLaunch: _onLaunch,
    onResume: _onResume,
    onMessage: _onMessage,
    onBackgroundMessage: backgroundMessageHandler);

    connector.token.addListener(() async {
    if (_apnToken == null && null != connector.token.value) {
    _apnToken = connector.token.value;
    }
    });

    connector.requestNotificationPermissions();

    if (connector is ApnsPushConnector) {
    /// display notification in foreground.
    connector.shouldPresent = (_) => Future.value(true);
    }
    ......

    Future _onMessage(RemoteMessage message) async {
    // This is called while the app is on foreground.
    logger.log('onMessage: ${message.data}');

    await onMessageHandler(message.data, message.notification);
    }
    ......`

from flutter-apns.

horam-deriv avatar horam-deriv commented on September 6, 2024

@lordgreg any updates on this?

from flutter-apns.

christofkost avatar christofkost commented on September 6, 2024

Closing due to not being able to reproduce. Can you double check with the example app? Perhaps certificate setup is not correct.

from flutter-apns.

Related Issues (20)

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.