Giter Site home page Giter Site logo

Comments (6)

lidanh avatar lidanh commented on July 24, 2024

Hi Emil!

I couldn't reproduce your bug, but I'll describe how it works and I hope it will help us to investigate your issue together.
When the app is closed and you press on an action, the cold start takes 2-3 seconds, until the JS bridge is up and able to handle the action. If I try to call the action handler once the button is pressed, it won't be handled since the JS bridge is still down.

Instead, I store the actions in a native background queue, until the JS bridge is up and ready to handle them. when is it ready? once you call to NotificationsIOS.consumeBackgroundQueue();

[RNNotificationsBridgeQueue sharedInstance].jsIsReady = YES;

from react-native-notifications.

EmilScherdin avatar EmilScherdin commented on July 24, 2024

Thanks for the reply and sorry for my super delayed answer.

I think I have tracked the problem down to the RN fetch that's get a Timeout on my request.
I have no idea why but it only happens when the app is cold started. All the notification actions works as expected after that!

Have you successfully tested with doing requests when pressing a notification action?
Or if you have some clever solution that i could test?

Trying to get some error logs but no success so far. Only have this:
timeout

from react-native-notifications.

EmilScherdin avatar EmilScherdin commented on July 24, 2024

@lidanh ping

from react-native-notifications.

EmilScherdin avatar EmilScherdin commented on July 24, 2024

Okey so i solved my problem by being able to remove the request.

But I was thinking maybe if you call the completed(); before the request is done. It doesn't look like it should matter but it may be worth a shot to wrap it in a promise? It may help someone. What do you think @lidanh

from react-native-notifications.

stale avatar stale commented on July 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

from react-native-notifications.

stale avatar stale commented on July 24, 2024

The issue has been closed for inactivity.

from react-native-notifications.

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.