You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
winnievips
added a commit
to winnievips/hms-cordova-plugin
that referenced
this issue
Nov 5, 2024
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.
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
The text was updated successfully, but these errors were encountered: