Comments (6)
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.
Hi, I'll set up a sample project as soon as I can, that's a good idea.
from react-native-onesignal.
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.
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.
@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.
@kennym What version of react native are you using?
Did you try running the supplied example project?
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.