Git Product home page Git Product logo

Comments (6)

kennym avatar kennym commented on August 21, 2024

Can it be that this code in AppDelegate.m is the culprit:

  self.oneSignal = [[OneSignal alloc] initWithLaunchOptions:launchOptions
                                      appId:@"ID-REPLACED"
                                      handleNotification:nil];

Should I set handleNotification:nil to something else? In the README it's omitted, but XCode says it requires that parameter.

Any ideas?

from react-native-onesignal.

avishayil avatar avishayil commented on August 21, 2024

Hi, I'll set up a sample project as soon as I can, that's a good idea.

from react-native-onesignal.

avishayil avatar avishayil commented on August 21, 2024

As i'm setting the projects I see I forgot some things in the documentation.
I'll upload it soon and update the documentation as well :>

from react-native-onesignal.

avishayil avatar avishayil commented on August 21, 2024

Repo updated. Please try the examples.
According to your question - I can't see any need for this handleNotification, since it's already being used on the module itself, so you don't need to include it in your AppDelegate.

from react-native-onesignal.

kennym avatar kennym commented on August 21, 2024

@avishayil thanks a lot! That's really helpful

XCode keeps asking me to provide a handleNotification parameter, even if I am passing it nil... any ideas of how to get rid of that message, as you seemingly don't get that one?

Let me know of this is out of the scope of this issue.

from react-native-onesignal.

avishayil avatar avishayil commented on August 21, 2024

@kennym What version of react native are you using?
Did you try running the supplied example project?

from react-native-onesignal.

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.