Skip to content

Fatal Exception: java.lang.IllegalArgumentException: Could not convert class android.net.Uri$StringUri #196

@winnievips

Description

@winnievips

Description
Some Huawei device face crashing when tap on the push notification.

Expected behavior
able to tap push notification without app crashing.

Screenshots
Below is the screenshot of my crashlytics logs.
Screenshot 2024-11-05 at 4 38 51 PM

Logs
Fatal Exception: java.lang.IllegalArgumentException: Could not convert class android.net.Uri$StringUri at com.huawei.hms.cordova.push.utils.MapUtils.fromBundle(MapUtils.java:62) at com.huawei.hms.cordova.push.HMSPush.sendOpenedNotificationData(HMSPush.java:151) at com.huawei.hms.cordova.push.HMSPush.onNewIntent(HMSPush.java:132) at org.apache.cordova.PluginManager.onNewIntent(PluginManager.java:369) at com.getcapacitor.cordova.MockCordovaWebViewImpl.onNewIntent(MockCordovaWebViewImpl.java:145) at com.getcapacitor.Bridge.onNewIntent(Bridge.java:1266) at com.getcapacitor.BridgeActivity.onNewIntent(BridgeActivity.java:199) at android.app.Activity.performNewIntent(Activity.java:8228) at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1420) at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1433) at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:4310) at android.app.ActivityThread.handleNewIntent(ActivityThread.java:4322) at android.app.servertransaction.NewIntentItem.execute(NewIntentItem.java:53) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2613) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8676) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)

Environment

  • Platform: Huawei
  • Angular: 14.3.0
  • Ionic: 7.1.1
  • Kit: Push
  • Kit Version: v 6.3.0-304
  • Android Studio version Android Studio Jellyfish | 2023.3.1 Patch 1
  • Node Version 18.17.1

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