question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add explicit `exported` value for PushMsgReceiver

See original GitHub issue

Description 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:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
xiaocode337317439commented, Mar 14, 2022

@ozkulbeng 这个问题在 6.1.0+300 版本中解决了吗?

implementation ‘com.huawei.hms:push:6.3.0.300’ 版本都还有问题,感觉这个问题 从去年到今年 这么久了,这是咋了。。。

0reactions
huseyinerengulercommented, Apr 5, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found