TBH It will be very difficult to debug your ionic 2 app since ionic 2 is very old. There are alot of breaking changes that will effect your app. And also without some project that can recreate the scenario, it will be near impossible to help. Good luck!
Lol. I would advise to create a new project in ionic 6, and migrate over your code, and at the same time, change the cordova plugins for capacitor ones.
I don’t think the onesignal will work properly because a lot of dependencies have been updated to new versions. If you need to be on android 13, that require A LOT of things be to upgraded. I believe your going to waste a lot of time trying to figure this out. It would be quicker to just create a new project with ionic 6 and move stuff over.
Thank you! I’ll take it into account (as soon as I can, I’ll get on with it)
Finally I used the onesignal-cordova-plugin directly instead of accessing it via ionic-native. I updated the onesignal-cordova-plugin, changed the project target to 33 and updated the calls to OneSignal… and the notifications come… but as you indicated before, more problems have appeared…
Now access to the gallery to select an image doesn’t work… I’ll create a new question in the forum (Camera plugin - Android target 33) if you can think of how to fix it, you’re welcome