I have an legacy project in ionic2 and with the recent changes by google, which forces to put at least target-version 31, the notifications do not arrive on android 13.
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!
The problem I have is that when I try to upload the compileSDK version, I get java errors.
Currently, the project is on android 9 platform. If I change to 11 and install java 11, I get many errors…
Apart from praying… what would you advise me? platform up? keep the one I have and try to play with the onesignal plugins to see if I can get the notification to android 13 devices??
Do you think ionic2 can do android11 and java 11 platform or does it have some limitation that I don’t know about?
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