Comments (3)
Thanks a lot for helping @VirtualDOMinic, i was able to get it to work by reading the docs of other SDK's and even older ones like the one you shared too.
Thanks man!
from react-native-onesignal.
Not got all the answers for you as I don't work for OneSignal, but:
The broken link will work if you change the URL to v9 (their previous version) https://documentation.onesignal.com/v9.0/docs/web-push-sdk#addlistenerfornotificationopened . If you're using the latest, this may obviously not be what you want. Note that it's a page for the web SDK though.
There's a similar page in the old docs here too https://documentation.onesignal.com/v9.0/docs/action-buttons#how-can-i-use-the-action-button-to-do-some-work-on-my-page-without-opening-extra-windows
If you're using the latest version of RN OneSignal, though, I'm pretty sure you can do the following:
OneSignal.Notifications.addEventListener('click', event => {
// check the actionId of the notification button that you set via: `event.result.actionId`
// Now you have access to the actionId and can redirect (navigate) accordingly
from react-native-onesignal.
Related Issues (20)
- [Bug]: Onesignal does not show notification when app in foreground android HOT 3
- Incorrect Notification Badge Count on Android Devices with Expo React Native
- [Bug]: Possibly threading issue with willDisplay on Android + documentation clarification
- [Feedback]: Bump to OneSignal-iOS-SDK 3.12.8 / privacy manifest requirement HOT 2
- [question]: Starting a new project in React Native with the new architecture enabled HOT 2
- [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 2
- [Bug]: OneSignal.login() doesn't set the externalId in react native HOT 2
- [Bug]: Push Notification with status FAILED on iOS 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 ⚠️ HOT 1
- [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 3
- [Bug]: addTag could not be invoked HOT 2
- [Bug]: react native App Crashes in Android device Only, works on emulator 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.