Add explicit `exported` value for PushMsgReceiver
See original GitHub issueDescription
Android 12 required adding android:exported
to services/activities.
Expected behavior App to be installed
Current behavior app crashes on install to device
Logs
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl795607080.tmp/base.apk (at Binary XML file line #344): com.huawei.hms.support.api.push.PushMsgReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]
Environment
- Platform: Flutter
- Kit: huawei_push
- Kit Version : ^5.3.0+304
- OS Version Android 12 [√] Flutter (Channel stable, 2.8.0, on Microsoft Windows [Version 10.0.17763.2183], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Chrome - develop for the web [√] Android Studio (version 2020.3) [√] IntelliJ IDEA Ultimate Edition (version 2021.2)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
When will Push Kit include the android:exported attributes ...
PushMsgReceiver : Targeting S+ (version 10000 and above) requires that an explicit value for android:exported be defined when intent filters ...
Read more >specify an explicit value for `android:exported - Microsoft Q&A
Updated to Android 12 SDK - specify an explicit value for `android:exported. I updated to Android 12 and suddenly got this strange error:....
Read more >Apps targeting Android 12 and higher are required to specify ...
PushMsgReceiver >. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding ...
Read more >Behavior changes: Apps targeting Android 12
Warning: If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported , your app can't ......
Read more >Push kit bindings for Xamarin isn't compatible for android 12
PushMsgReceiver : Targeting S+ (version 10000 and above) requires that an explicit value for android:exported be defined when intent filters ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
implementation ‘com.huawei.hms:push:6.3.0.300’ 版本都还有问题,感觉这个问题 从去年到今年 这么久了,这是咋了。。。
Hi @medyas
Latest version of huawei_push was released on April 1st. With this version, we fixed some issues for adapting to Android 12.
According to our recent tests, the issue appears to be resolved. Please test again with the current version. If the issue persists, contact us here.