-
Notifications
You must be signed in to change notification settings - Fork 38
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
App closes when clicking on push/notification #5
Comments
Forgive me, this is my first app. One thing I noticed is that when I added a tag App link on GooglePlay if you want to test => https://play.google.com/store/apps/details?id=com.maisl.maisleite |
Hi @VndrGrhrd thank you for reporting this issue let me check and get back to you shortly. |
Hi @bhandaribhumin on clicking the notification status bar the app got destroyed. Please guide me to fix this behavior. I paste the log for reference. This is the log after clicking the notification status bar. D/CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("click",{"id":101,"title":"My Notification","text":"0 minutes and 12 seconds","foreground":true,"ongoing":true,"sticky":true,"autoClear":false,"actions":[],"alarmVolume":-1,"attachments":[],"autoLaunch":false,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":1,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"resetDelay":5,"silent":false,"smallIcon":"res://icon","timeoutAfter":null,"trigger":{"type":"calendar"},"vibrate":false,"wakeup":true,"fullScreenIntent":false,"triggerInApp":false,"meta":{"plugin":"cordova-plugin-local-notification-12","version":"0.9-beta.5"},"sound":false},{"event":"click","foreground":true,"queued":false,"notification":101})) |
General summary of the issue.
I get the firebase object, schedule the notification, and add the click event to open a given page., however when clicking on the push/notification with the app open, it closes app and does not open again.
/**
Excuse my English, I'm Brazilian, due to this the methods in Portuguese */
Your Environment
cordova-plugin-notification-12 => 0.1.4
others:
Platform:
Android
OS version:
Windows 10 21H2 - 19044.2251
Android 10
Device manufacturer / model:
Xiaomi A2 Global
Cordova version (
cordova -v
):11.0.0
Cordova platform version (
cordova platform ls
):Installed platforms:
android 9.1.0
Available platforms:
browser ^6.0.0
electron ^3.0.0
windows ^7.0.0
Plugin config
sorry I did not understand. I am available to send the missing data
*Ionic Version (if using Ionic)
5.4.16
Expected Behavior
I believe that when clicking on the app, regardless of whether the app is closed, closed, or open, the app should open on the configured page
Actual Behavior
When clicking on push/notification with the app open, the app closes and does not open on the configured page, being necessary to open it manually.
Steps to Reproduce
Context
What were you trying to do?
Debug logs
Include iOS / Android logs
ios XCode logs
Android:
$ adb logcat
The
adb logcat
log got too big, so it's in the link below. I can't follow the debug completely, because when the app closes, it interrupts the debugThe text was updated successfully, but these errors were encountered: