Skip to content

[Bug]: PermissionsActivity does not follow app theme #2203

@michael-winkler

Description

@michael-winkler

What happened?

If we request any permission with the default android implementation the dialog looks like this:
image

Statusbar and navigationbar is here transparent.

If we request the notification permission with the OneSignal implementation the dialog looks like this:
image

Why the difference? Can this please be improved?
The lines of the OneSignal Activity are here:

<activity android:name="com.onesignal.core.activities.PermissionsActivity"
                  android:theme="@android:style/Theme.Translucent.NoTitleBar"
                  android:exported="false" />

image

Steps to reproduce?

Just use the OneSignal code "OneSignal.Notifications.requestPermission(false)"

What did you expect to happen?

A better style for the theme like the default android permission dialogs!

OneSignal Android SDK version

5.1.23

Android version

14

Specific Android models

All

Relevant log output

-

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions