-
Notifications
You must be signed in to change notification settings - Fork 198
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
Ionic 3 manifest error after upgrade to target-sdk 31 #807
Comments
Thank you for reporting @orelbutbul, We will update our Amazon SDK Setup documentation under Step 2.3 with |
@nan-li Maybe you didn't understand me, but I have an error, it doesn't let me add android:exported="true" to the reciver , Does anyone know how to solve the problem? |
Ahh I see, sorry I did misunderstand. You are on the previous major version Are you able to upgrade to |
No I have no option, It's ionic 3, and because this is coming directly from your SDK I cannot edit the AndroidManifest.xml file manually, Is there any way I can fix this error? |
We would have to make a release here on version There may be a workaround for now where you can overwrite entries for library Manifests. I am able to reproduce your issue and will investigate a solution. |
I'm having the same issue. Any expectations to release a version with the fix for Thank you! |
i'm having the same problem, we can't update onesignal at the moment to the latest version. To fix it I would need to insert android:exported in the plugin and in the android SDK. |
I have the same problem, I use cordova to compile the apps, I've tried all the steps mentioned and it doesn't work. @orelbutbul do you know if there is a fix for this problem? |
In my case with Ionic 3 I installed the version
in app.module.ts i change to And instead of using this code to get details
I use this code
And it works for me :) I hope I helped some of you, it's just important to note that I'm doing a build from Android Studio |
i'm having the same problem, we can't update onesignal at the moment to the latest version. To fix it I would need to insert android:exported in the plugin and in the android SDK. My app only register at Onesignal with 2.11.4 version. The Play Store is mandatory Android vresion 31. Help me Please. |
@marcioramosilva1 |
I use ionic, but i created a new app empty, and add just onesignal plugin. The app don't register at onesignal. |
I tried the same workaround, but it fails because the merged-manifest doesn't have all the android:exported needed. @nan-li Any chance to add the missing |
Hi all, we are investigating the complexity of updating the previous major version to support targeting Android 31. Updating our own |
Is there any workaround available till then, It's been a while. |
I am in the same situation, I tried the solution proposed by @orelbutbul but with no success, is there any thing else to try ? |
Hi, Did any one have got any work around?? Guys, ANDROID 31 target has mostly broken all cordova projects. Thanks |
I found an alternative. Add this to config.xml: This should work, but there is an error on android 12 that the app closes. To solve it, I forked the one-signal plugin and made a change in the plugin.xml of the onesignal plugin adding this: The fork was added like this in the config.xml: This is just a stopgap measure, while the issue is not resolved in version 2.X.X, the issue still persists. |
Any update on this issue? @nan-li |
Hi everyone, I am very sorry for the delayed response. After investigating full support of Android 31 on the previous release, we will not be making updates to OneSignal-Cordova-SDK 2.x.x to support this. Instead, we will aim to help apps upgrade to OneSignal-Cordova-SDK 3.x.x, starting with looking at the compatibility issue with Please post any issues you run into upgrading to version |
I'm on Ionic 6 and I'm still getting the same error even after updating my android target and compile SDK to version 33 as per the OneSignal documentation on upgrading from 2.X.X to 3.X.X
|
Hi @timonjagi, To confirm, you are using OneSignal-Cordova-SDK version 3.x.x and you are still getting |
I found that widget.name in config include any non english letter will cause build error. For iOS, need OneSignal.promptForPushNotificationsWithUserResponse(); after OneSignal.setAppId(); |
hy i am facing issue if i use onesignal latest version 3.x.x then that targetsdk 31 issue resolve and i am able to build but onesignal gives "plugin not installed error on inspect" but if i use 2.x.x version of onesignal then on targetsdk 31 i face that merge manifest issue i also try adding export true in plugin.xml file of version 2.x.x plz help me any workaround |
@adeel399 Please remove "@ionic-native/onesignal@4" if exist. |
You mean i update onesignal to latest version and add these line directly to app.component file and then i will not get plugin not installed error?? |
@adeel399 you got error when install plugin or when build apk? copy whole error message and post here. |
No i receive error after build no plugin installed |
@adeel399 try remove cordova-android and reinstall. |
Hello @adeel399 , @sonicwong , @nan-li Currently I have code regarding to import { OneSignal } from '@ionic-native/onesignal/ngx';
With this I got error of mainfest merger when build android from android studio. Is there any Solution to keep version as same , and I fork plugin and make some adjustments with 2.11.4 version? if not how can I convert my existing above code to migrate from onesignal-cordova-plugin as 2.11.4 to latest version? |
Hi @jsBiztech, This is the Cordova migration guide from Here is the regular Ionic setup guide. Also, you should import via |
Guys, i don't know if this is still a valid question but in order to make it work you have to edit the plugins.xml in onesignal folder plugins/onesignal-cordova-plugin/plugins.xml and edit the android:exported there; then exclude platforms/android and generate it again. The duplicate problem is because the plugins.xml is editing the androidmanifest, so if you change the value in androidmanifest directly the plugins.xml will generate the code again, giving the duplicate error |
Hello everyone, I have the same problem, if I use the onesignal version: In AndroidManafest.xml gives a duplicate error if i update the version to: onesignal-cordova-plugin as 3.x.x It does not work or register devices on the onesignal platform, any solution?
|
Hi, @diegok350 The problem is that onesignal-cordova-plugin v3 cannot work with @ionic-native/onesignal@5.36.0 because it has not been maintained for 2 years. So, If you want to use onesignal-cordova-plugin v3, you need to follow this step link:
That's work for me. Just append your fonction to the notification event handler link My config :
|
Just putting this here in case someone more industrious can implement: i also hit a different manifest merger issue wherein the value I set in
And thusly this causes issues with |
Hello everyone! It works for me. SDK 31 Android 12 Ionic 3. OneSignal version 3.0.1 fully supports Android 12.
|
Hey @Shadowstep33, I've added your issue here: #928 . You may want to subscribe to that issue or add a "me too". |
After upgrade target-sdk to 31 I get an error that comes from AndroidManifest.xml file
The only thing that doesn't contain the tag android:exported on AndroidManifest.xml file is
But after I try to add the tag to the receiver and build again It replicates the receiver without the tag,
i using
"onesignal-cordova-plugin": "^2.11.2",
"ionic-native/onesignal": "^4.18.0",
The text was updated successfully, but these errors were encountered: