Giter Site home page Giter Site logo

Comments (12)

lucasyalap avatar lucasyalap commented on May 23, 2024 1

If you don't want to use CocoaPods and correct follow this 2 steps

  1. Add OneSignal.framework that is in ../node_modules/react-native-onesignal/ios/Frameworks/OneSignal.framework in YourProject > Build Phases > Link Binary With Libraries
  2. Add "$(SRCROOT)/../node_modules/react-native-onesignal/ios/Frameworks" in YourProject > Build Settings > Framework Search Paths

from react-native-onesignal.

algosubi avatar algosubi commented on May 23, 2024

i have same problem

from react-native-onesignal.

francocorreasosa avatar francocorreasosa commented on May 23, 2024

You can fix it by adding the OneSignal library though CocoaPods.

from react-native-onesignal.

radiegtya avatar radiegtya commented on May 23, 2024

Never use cocoapods before, but I'll try

from react-native-onesignal.

avishayil avatar avishayil commented on May 23, 2024

Please add the necessary Pod, since it's part of the setup process.

from react-native-onesignal.

radiegtya avatar radiegtya commented on May 23, 2024

Aleready did this, but still error.

On Friday, 29 July 2016, lucasyalap [email protected] wrote:

If you don't want to use CocoaPods and correct follow this 2 steps

  1. Add OneSignal.framework that is in
    ../node_modules/react-native-onesignal/ios/Frameworks/OneSignal.framework
    in YourProject > Build Phases > Link Binary With Libraries
  2. Add "$(SRCROOT)/../node_modules/react-native-onesignal/ios/Frameworks"
    in YourProject > Build Settings > Framework Search Paths


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#19 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACD71lMgJ_q_VZoENrHdVAFxmobcH4F4ks5qag7mgaJpZM4IJK96
.

from react-native-onesignal.

lucasyalap avatar lucasyalap commented on May 23, 2024

Please can you show us :

  • Screenshot of code error (again)
  • YourProject > Build Phases > Link Binary With Libraries
  • YourProject > Build Settings > Framework Search Paths

Because normally if did what i said it works.

from react-native-onesignal.

radiegtya avatar radiegtya commented on May 23, 2024

Here is my screenshot, sorry for very late response, please help @lucasyalap:

onesignal_1

onesignal_2

onesignal_3

from react-native-onesignal.

radiegtya avatar radiegtya commented on May 23, 2024

RCTOnesignal.h already found. Now I have new problem, when using xcode:

onesignal_4

While using cocoapod, I had different error message:

onesignal_5

Please help

from react-native-onesignal.

lucasyalap avatar lucasyalap commented on May 23, 2024

If you realy don't want to use pods, you have to remove all about pods

  1. In left panel remove pods project
  2. In Left panel remove pods directory
  3. in "YourProject > Build Phases > Link Binary With Libraries" remove libPods-OneSignal.a
  4. "YourProject > Build Settings > Framework Search Paths" remove "$(PODS_ROOT)/OneSignal/IOS_SDK/Frameworks"

If you have any other errors please send screenshot

from react-native-onesignal.

radiegtya avatar radiegtya commented on May 23, 2024

THanks a lot @lucasyalap, now all the error had gone.
And the user already registered on onesignal users list.
But ios simulator can't receive the push notif, I'll test tomorrow on real device and share with you if fail or success. Btw why don't author of this package suggest those simple step by step like yours rather than using pods? Regards

from react-native-onesignal.

jakeatwork avatar jakeatwork commented on May 23, 2024

i'm on react-native 0.37 and here's how i was able to get this to work (i think the readmes/documentation are slightly behind react native).

  1. on a clean branch with none of the onesignal work...
  2. run npm install react-native-onesignal --save
  3. run react-native link
  4. for iOS follow the podfile instructions (be sure to follow the react native version note carefully)
  5. for iOS follow the code additions in the instructions
  6. for android follow the android instructions (most of the code should be there from the link command, but double check everything)
  7. for android be sure to use import com.geektime.reactnativeonesignal.ReactNativeOneSignalPackage; and NOT import com.geektime.rnonesignal.ReactNativeOneSignalPackage; (some old documentation had the rnonesignal and that's since been updated)
  8. then complete config and setup and all files
  9. hopefully that does the trick for you...please reply if you have any issues as i spent some time on both android and iOS over a few branches to get this to work.

YMMV if you are using something lower than v0.37 of RN. good luck.

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.