GithubHelp home page GithubHelp logo

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. about fetch HOT 10 OPEN

ryancode-commit avatar ryancode-commit commented on June 15, 2024
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

from fetch.

Comments (10)

OmidNejadabbasi avatar OmidNejadabbasi commented on June 15, 2024 4

@shreyaag1 @ryancode-commit @557711

I managed to fix the bug by copying and pasting the code into my own class file and corrected the PendingIntent flag.
Here is the link to my code : https://gist.github.com/OmidNejadabbasi/ccda264acc68a65be6004199344d168f

Remember that you should instantiate and pass this object to setNotificationManager() method.

from fetch.

OmidNejadabbasi avatar OmidNejadabbasi commented on June 15, 2024 2

@shreyaag1 @ryancode-commit @557711
I managed to fix the bug by copying and pasting the code into my own class file and corrected the PendingIntent flag.
Here is the link to my code : https://gist.github.com/OmidNejadabbasi/ccda264acc68a65be6004199344d168f
Remember that you should instantiate and pass this object to setNotificationManager() method.

I can't paste it Make a new class or edit DefaultFetchNotigicationManager?

Yes, you should create your own .java file and paste my code and then use that class. I have tested it and it works!

from fetch.

sanjaysingh1990 avatar sanjaysingh1990 commented on June 15, 2024 1

This fix worked for me as well after some fixes like string and drawable resources linking.

from fetch.

sanjaysingh1990 avatar sanjaysingh1990 commented on June 15, 2024 1

replace these drawable and string resources with your local resources.

from fetch.

557711 avatar 557711 commented on June 15, 2024

Kindly Solve this issuse Owner of library

from fetch.

shreyaag1 avatar shreyaag1 commented on June 15, 2024

Please update the library!

from fetch.

sanjaysingh1990 avatar sanjaysingh1990 commented on June 15, 2024

Thank you for this fix

from fetch.

ryancode-commit avatar ryancode-commit commented on June 15, 2024

@shreyaag1 @ryancode-commit @557711

I managed to fix the bug by copying and pasting the code into my own class file and corrected the PendingIntent flag.
Here is the link to my code : https://gist.github.com/OmidNejadabbasi/ccda264acc68a65be6004199344d168f

Remember that you should instantiate and pass this object to setNotificationManager() method.

I can't paste it
Make a new class or edit DefaultFetchNotigicationManager?

from fetch.

ryancode-commit avatar ryancode-commit commented on June 15, 2024

@shreyaag1 @ryancode-commit @557711
I managed to fix the bug by copying and pasting the code into my own class file and corrected the PendingIntent flag.
Here is the link to my code : https://gist.github.com/OmidNejadabbasi/ccda264acc68a65be6004199344d168f
Remember that you should instantiate and pass this object to setNotificationManager() method.

I can't paste it Make a new class or edit DefaultFetchNotigicationManager?

Yes, you should create your own .java file and paste my code and then use that class. I have tested it and it works!

For import net.omidn.fetchme.R.drawable and import net.omidn.fetchme.R.string
Do you use library? Or what?

from fetch.

ryancode-commit avatar ryancode-commit commented on June 15, 2024

Thank you so much.

from fetch.

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.