Coder Social home page Coder Social logo

Comments (4)

AdamEssenmacher avatar AdamEssenmacher commented on September 14, 2024

Meaning, the push notifications are not received until I explicitly run the app once.

Do you mean once ever? Or do you need to run the app once each time the device is restarted?

But I believe similar issue may exist on iOS also.

Why do you believe this?

from plugin.firebase.

gautambjain avatar gautambjain commented on September 14, 2024

I use push notifications to initiate syncing of notes data with the server. And I have widgets also on Android home screen.

After reboot, I want the the above functionality to work without having to run the app. But this doesn't work with Plugin.Firebase.

Why do you believe this?

Because it seems to be initialization issue due to which CrossFirebaseCloudMessaging.Current may be null inside the intent service (MESSAGING_EVENT). That's why it may not be able to trigger the events although the intent service may be receiving the calls.

In order to make it work, I have explicitly write my own intent service (MESSAGING_EVENT) and do the work (syncing notes data) like I did before in Xamarin.Forms.

from plugin.firebase.

AdamEssenmacher avatar AdamEssenmacher commented on September 14, 2024

Because it seems to be initialization issue due to which CrossFirebaseCloudMessaging.Current may be null inside the intent service (MESSAGING_EVENT).

Are you getting specific error messages around this? Why do you think this is the problem?

from plugin.firebase.

gautambjain avatar gautambjain commented on September 14, 2024

Are you getting specific error messages around this? Why do you think this is the problem?

About error messages, I am not able to check easily because after a reboot, the device is disconnected from the debugger. Once I launch the app after the reboot, the push notifications work. I saw the plugin code and it is using CrossFirebaseCloudMessaging.Current object to trigger the events from the intent service (MESSAGING_EVENT).

from plugin.firebase.

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.