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

Getting a build error after migrating our Ionic 5 app from Cordova 10 to Cordova 11 LOCAL NOTIFICATIONS #1983

Closed
jeanteke opened this issue Sep 7, 2022 · 8 comments

Comments

@jeanteke
Copy link

jeanteke commented Sep 7, 2022

WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

Provide a general summary of the issue.

Your Environment

  • Plugin version: 0.9.0-beta.2
  • Platform: Windows
  • OS version: 10
  • Device manufacturer / model:
  • Cordova version (cordova -v): 11
  • Cordova platform version (cordova platform ls): 11
  • Plugin config
  • Ionic Version (if using Ionic): 5

Debug logs

image

  • Android: $ adb logcat
@hussain-github
Copy link

Any update on this?

@jeanteke
Copy link
Author

jeanteke commented Sep 20, 2022

¿Algún avance en esto?

add this other plugin https://github.com/rgarciadelongoria/cordova-plugin-local-notifications.git

It lets build the app, but when launching local notifications the app closes

@jeanteke
Copy link
Author

Any update on this?

You can already solve, with this other:

ionic cordova plugin add cordova-plugin-local-notification-12

@alanmilinovic
Copy link

Any update on this?

You can already solve, with this other:

ionic cordova plugin add cordova-plugin-local-notification-12

I can confirm, version from that repo is working.

@hussain-github
Copy link

Any update on this?

You can already solve, with this other:

ionic cordova plugin add cordova-plugin-local-notification-12

It is building successfully. Thank you.

@jeanteke jeanteke changed the title Getting a build error after migrating our Ionic 5 app from Cordova 10 to Cordova 11 Getting a build error after migrating our Ionic 5 app from Cordova 10 to Cordova 11 LOCAL NOTIFICATIONS Sep 26, 2022
@bevinGithub
Copy link

Any update on this?

You can already solve, with this other:
ionic cordova plugin add cordova-plugin-local-notification-12

It is building successfully. Thank you.

Hi guys there is a bug on the plugin.

I have tested the plugin katzer /
cordova-plugin-local-notifications it doesn't work on the events onTrigger

onDeviceReady() {
this.localNotifications.on('trigger').subscribe((test: any) => {
console.log('Trigger' + JSON.stringify(test));
});
}

Its not logging the subscription out as l need to process data from the data: { test: 'Test Data }.

Anyoe able to catch the event Trigger?

@bevinGithub
Copy link

There is a bug on the local notifications on catching triggers, its not outputting the subscription from the trigger events.

I have tested the plugin katzer /
cordova-plugin-local-notifications it doesnt work on the events onTrigger

onDeviceReady() {
this.localNotifications.on('trigger').subscribe((test: any) => {
console.log('Trigger' + JSON.stringify(test));
});
}

Its not logging the subscription out as l need to process data from the data: { test: 'Test Data }.

@fragfeaster777
Copy link

There seems to be another bug when tapping on a notification for Android SDK 31: The app doesn't open. It works with Android 29.

Here is the output of adb logcat when tapping the notification (package name obfuscated with ######)

10-17 18:38:13.288 533 2413 E NotificationService: Indirect notification activity start (trampoline) from #####..app blocked

It seems others are having similar issues, for example: aws-amplify/amplify-js#10118

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

5 participants