I am fetching notifications from api in background using android alarm manager plus & is working fine in debug mode but on release and install it's not working.
I am using redmi note 7.
According to flutter doctor all is fine.
CodePudding user response:
Do you have Internet permission to fetch data from the api? Check the AndroidManifest. Internet permission is set in debug mode, but removed in release. You have to set it manually.
<manifest xmlns:android...>
...
<uses-permission android:name="android.permission.INTERNET" />
<application ...
</manifest>
CodePudding user response:
Yes I have already add this user permission.