Git Product home page Git Product logo

Comments (9)

KodyKendall avatar KodyKendall commented on July 2, 2024 2

Thanks, @kelbin, I was able to get this workaround working by running rm -rf node_modules, then changing my package.json to be "react-native-onesignal": "~5.1.6", then running yarn install, and resolving to 5.1.3, so my yarn.lock file looked like this:

react-native-onesignal@~5.1.6:
  version "5.1.3"
  resolved "https://registry.yarnpkg.com/react-native-onesignal/-/react-native-onesignal-5.1.3.tgz#2da1819255a329dca6571ddef22184410c26b627"
  integrity sha512-ynHUqN6TaV98xghA05GddwBXF41jgb7BboP2xucvvJljxEw6CICnaiMfcupsxGNNHm74FBLsl5JK3qMuoLpoJw==
  dependencies:
    invariant "^2.2.2"

Then, I ran: cd ios && rm -rf Pods && rm Podfile.lock, and then modified Podfile to be:

...
pod 'OneSignalXCFramework', '5.1.6'
...

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignalXCFramework', '5.1.6'
end

That got it to build on iOS.

from react-native-onesignal.

SagredoIsmael avatar SagredoIsmael commented on July 2, 2024

Same to me 🙏🏻

from react-native-onesignal.

oumaima-khameri avatar oumaima-khameri commented on July 2, 2024

Moi aussi

from react-native-onesignal.

kelbin avatar kelbin commented on July 2, 2024

I found a solution, you need to downgrade your version of library to 5.1.6 (before they announced live activities). It works for me, but anyway that's the temporary solution.

from react-native-onesignal.

KodyKendall avatar KodyKendall commented on July 2, 2024

@kelbin how did you do this? What does your Podfile look like?

from react-native-onesignal.

Chasty avatar Chasty commented on July 2, 2024

@nan-li can u check this issue, it is happening to a lot of users.

from react-native-onesignal.

Chasty avatar Chasty commented on July 2, 2024

Thanks, @kelbin, I was able to get this workaround working by running rm -rf node_modules, then changing my package.json to be "react-native-onesignal": "~5.1.6", then running yarn install, and resolving to 5.1.3, so my yarn.lock file looked like this:

react-native-onesignal@~5.1.6:
  version "5.1.3"
  resolved "https://registry.yarnpkg.com/react-native-onesignal/-/react-native-onesignal-5.1.3.tgz#2da1819255a329dca6571ddef22184410c26b627"
  integrity sha512-ynHUqN6TaV98xghA05GddwBXF41jgb7BboP2xucvvJljxEw6CICnaiMfcupsxGNNHm74FBLsl5JK3qMuoLpoJw==
  dependencies:
    invariant "^2.2.2"

Then, I ran: cd ios && rm -rf Pods && rm Podfile.lock, and then modified Podfile to be:

...
pod 'OneSignalXCFramework', '5.1.6'
...

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignalXCFramework', '5.1.6'
end

That got it to build on iOS.

but they dont have a 5.1.6 version on react-native-onesignal repo.

from react-native-onesignal.

KodyKendall avatar KodyKendall commented on July 2, 2024

from react-native-onesignal.

kelbin avatar kelbin commented on July 2, 2024

I used a unity build (the error same for all platform, except iOS), 5.1.6 exist there.

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.