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)
- [question]: How to prevent web notifications from showing when tab is being viewed? HOT 1
- [Bug]: Could not create Worker com.onesignal.notifications.internal.restoration.impl.NotificationRestoreWorkManager$NotificationRestoreWorker HOT 3
- [Bug]: react native app is crashing as soon as it installed on my phone HOT 2
- [Bug]: Permission Not Granted (Android) HOT 5
- [Bug]: Push Notifications Not Reaching TestFlight Builds
- [Bug]: Crash "RuntimeException: Could not invoke OneSignal.hasNotificationPermission" HOT 1
- [Bug]: OneSignal.login() doesn't set the externalId in react native HOT 2
- [Bug]: Push Notification with status FAILED on iOS HOT 2
- Can't find any documentation on how to handle the actions buttons in my notification HOT 2
- ⚠️ 5.0.0 to 5.1.0 Deprecated - These version may be blocked or rate limited. Please update to 5.1.1 or newer ⚠️
- [Bug]: Android release APK crashing HOT 1
- [Bug]: External Id is not getting set HOT 1
- [Bug]: Cycle inside SampleProject; building could produce unreliable results HOT 1
- [Bug]: addTag could not be invoked HOT 2
- [Bug]: react native App Crashes in Android device Only, works on emulator HOT 1
- [Bug]: canRequestPermission is not working as expected HOT 3
- [Bug]: Missing API declaration HOT 3
- [Bug]: Can not build at AppCenter HOT 1
- [question]: Issue with Push Notifications in App Store Builds HOT 1
- iOS: Badge not showing 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.