Skip to content

Crash on opening app via system push notification (java.lang.IllegalArgumentException: NavigatorScreen is required in intent extras) #17182

Closed as duplicate

Description

@Abofresh

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Receive a push notification from the Nextcloud server on the Android device (e.g., an update notification or a 2FA/login approval request).
  2. Tap the notification in the Android notification shade to open the app.
  3. The app crashes immediately during launch.

Expected behaviour

The app should open correctly and navigate to the relevant screen or notification view without crashing.

Actual behaviour

The app crashes immediately upon being opened from the system notification area.

Android version

Android 16 (SDK 36)

Device brand and model

Samsung SM-S948B (m3q)

Stock or custom OS?

Stock

Nextcloud android app version

34.0.0

Nextcloud server version

33.0.3

Using a reverse proxy?

Yes

Android logs

Exception in thread "main" java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextcloud.client/com.owncloud.android.ui.navigation.NavigatorActivity}
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:5040)
    ...
Caused by: java.lang.IllegalArgumentException: NavigatorScreen is required in intent extras
    at com.owncloud.android.ui.navigation.NavigatorActivity.onCreate(NavigatorActivity.kt:36)
    ...
```text


### Server error logs

```bash
Not applicable (Client-side crash).

Additional information

The app functions perfectly fine when opened normally via the app icon. The crash only occurs when launching the app by tapping a system notification outside of the app. It seems the intent extras are missing the required 'NavigatorScreen' key when handled from the system tray.

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