Comments (12)
If you don't want to use CocoaPods and correct follow this 2 steps
- Add OneSignal.framework that is in ../node_modules/react-native-onesignal/ios/Frameworks/OneSignal.framework in YourProject > Build Phases > Link Binary With Libraries
- Add "$(SRCROOT)/../node_modules/react-native-onesignal/ios/Frameworks" in YourProject > Build Settings > Framework Search Paths
from react-native-onesignal.
i have same problem
from react-native-onesignal.
You can fix it by adding the OneSignal library though CocoaPods.
from react-native-onesignal.
Never use cocoapods before, but I'll try
from react-native-onesignal.
Please add the necessary Pod, since it's part of the setup process.
from react-native-onesignal.
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
- Add OneSignal.framework that is in
../node_modules/react-native-onesignal/ios/Frameworks/OneSignal.framework
in YourProject > Build Phases > Link Binary With Libraries- 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.
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.
Here is my screenshot, sorry for very late response, please help @lucasyalap:
from react-native-onesignal.
RCTOnesignal.h already found. Now I have new problem, when using xcode:
While using cocoapod, I had different error message:
Please help
from react-native-onesignal.
If you realy don't want to use pods, you have to remove all about pods
- In left panel remove pods project
- In Left panel remove pods directory
- in "YourProject > Build Phases > Link Binary With Libraries" remove libPods-OneSignal.a
- "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.
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.
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).
- on a clean branch with none of the onesignal work...
- run
npm install react-native-onesignal --save
- run
react-native link
- for iOS follow the podfile instructions (be sure to follow the react native version note carefully)
- for iOS follow the code additions in the instructions
- for android follow the android instructions (most of the code should be there from the link command, but double check everything)
- for android be sure to use
import com.geektime.reactnativeonesignal.ReactNativeOneSignalPackage;
and NOTimport com.geektime.rnonesignal.ReactNativeOneSignalPackage;
(some old documentation had the rnonesignal and that's since been updated) - then complete config and setup and all files
- 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)
- [Bug]: In v5, the Subscription Status does not change to 'Subscribed'. HOT 9
- [Bug]: permissionChange listener is not giving the correct hasPermission value until background/foreground HOT 3
- [question]: getIdAsync is returning null with latest SDK HOT 8
- [Bug]: Dependency problem while adding onesignal to an existing react native project HOT 5
- [Bug]: Incorrectly returning notification permission data until you close and open the app
- [question]: Even though I followed all the instructions, the icon does not change HOT 2
- [Bug]: NotificationClickEvent returning `launchUrl` instead of `launchURL` (on Android) HOT 7
- [Bug]: Incorrect Typing for launchUrl in OSNotification HOT 1
- [Bug]: Erroneous "Usage Duration" for Android subscriptions in SDK 5.2.0 HOT 2
- [Feedback]: canRequestPermission should probably return false on Android versions < 13 HOT 1
- [Bug]: No type or protocol named 'OSUser' and 'OSLiveActivities' HOT 9
- [Bug]: Urgent Production OneSignal some users don't receive notifications HOT 4
- How to add jwtToken to login HOT 1
- [Bug]: Arrays on the additionalData not being parsed correctly on android HOT 1
- [Bug]: Subscription is not set in the dashboard after `OneSignal.login(externalId)` HOT 3
- [Bug]: OneSignal.Notifications.requestPermission returns a boolean wrapped in array instead of boolean on iOS HOT 2
- [Bug]: Setting `OneSignal.Notifications.requestPermission` parameter `fallbackToSettings` to `false` has no effect HOT 4
- [Bug]: OneSignalExtension No such module HOT 6
- [Bug]: App still receives notifications for the previous external ID if I call OneSignal.logout() and OneSignal.login() for other external ID HOT 1
- [question]: Best way to integrate OneSignal to subscribe VoIP push in another native module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-onesignal.