Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
winnievips opened this issue Nov 5, 2024 · 0 comments

Comments

@winnievips
Copy link

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
winnievips added a commit to winnievips/hms-cordova-plugin that referenced this issue Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant