Skip to content

[question]: How to enable Data / Silent notification with no permission on OneSignal 5.x #1853

Open
@danielesegato

Description

@danielesegato

How can we help?

On the documentation page for data notifications here: https://documentation.onesignal.com/docs/data-notifications

it say, and I quote:

Android Data Notification Setup
The OneSignal SDK is set up to only send data notifications to subscribed users. If you want to target unsubscribed users with data notifications, you will need to follow this workaround.

Data notifications are handled within the NotificationExtenderService - This can be set up to receive data notifications when your app is not running, or to override how notifications are shown in the notification shade.

Except the workaround linked is for iOS SDK.

In OneSignal 4.x there was a method to call (as specified on issue 1538):

OneSignal.unsubscribeWhenNotificationsAreDisabled(false)

that was enough to enable silent notifications when no permission was given.

Can you please update the documentation to add full information on how to manage data notification in Android?

Thank you

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions