How can I set setNotificationOpenedHandler method in flutter app?

Issue In order to use push notification I used onesignal.When user taps the notification,It should navigate to screen.For doing it I need setNotificationOpenedHandler method.However it is missing.I can see OneSignal.Notifications.addForegroundWillDisplayListener((event) { }) method but not OneSignal.shared.setNotificationOpenedHandler((OSNotificationOpenedResult result) { print(‘"OneSignal: notification

Continue reading

How can I set setNotificationOpenedHandler method in flutter app?

Issue In order to use push notification I used onesignal.When user taps the notification,It should navigate to screen.For doing it I need setNotificationOpenedHandler method.However it is missing.I can see OneSignal.Notifications.addForegroundWillDisplayListener((event) { }) method but not OneSignal.shared.setNotificationOpenedHandler((OSNotificationOpenedResult result) { print(‘"OneSignal: notification

Continue reading

Wants to send push notification using one signal when new document is added in the flutter app.Should I use launchUrl() method for it?

Issue Below is the AddNewDocument.dart file. Whenever I add any document it should show new push notification to the user and should navigate to document details page. Is there any method to implement this? import ‘package:AtDocHUB/Controller/DocumentController.dart’; import ‘package:AtDocHUB/Model/Document.dart’; import ‘package:AtDocHUB/View/Document/DocumentPage.dart’;

Continue reading

Android/Java: How to get the userId in the new OneSignal 4.0.0? (idsAvailable is deprecated and getPermissionSubscriptionState doesn't work)

Issue I upgraded onesignal by adding implementation ‘com.onesignal:OneSignal:4.0.0′ and now some piece of code doesn’t work. Old code deprecated that doesn’t work anymore: OneSignal.idsAvailable(new OneSignal.IdsAvailableHandler() { @Override public void idsAvailable(String userId, String registrationId) { } }); New code that doesn’t

Continue reading