I have tried so many things but it still shows me these Problems:
Missing Default Notification Channel metadata in AndroidManifest
The notification are coming but sometimes they take minutes to arrive.
Also I tried many things to put in the backroundhandler but when I do it like this: Flutter- FCM A background message could not be handled in Dart as no onBackgroundMessage handler has been registered , I just get : Unhandled Exception: Null check operator used on a null value
I hope that someone can help me with this.
Here is my AndroidManifest.xml (Also there are 9 errors in my AndroidManifest, is this normal (eg. Attribute android:icon is not allowed here)?):
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.stammi">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:label="orga"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service
android:name=".MyInstanceIDListenerService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<service
android:name=".MyFirebaseInstanceIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>