Riki1200 / azure_notification_hub_new

Flutter support for using Azure Notification Hun Plugin in iOS and Android apps.
Other
0 stars 0 forks source link

Android setup #2

Closed ewaradomska closed 7 months ago

ewaradomska commented 7 months ago

Hi :) when I tried with Android notification I see this error: E/ANH_FLUTTER( 5290): Failed to complete registration E/ANH_FLUTTER( 5290): java.lang.IllegalArgumentException: connectionString E/ANH_FLUTTER( 5290): at com.microsoft.windowsazure.messaging.NotificationHub.setConnectionString(NotificationHub.java:345) E/ANH_FLUTTER( 5290): at com.microsoft.windowsazure.messaging.NotificationHub.(NotificationHub.java:115) E/ANH_FLUTTER( 5290): at com.romeodev.azure_notification_hub_new.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:57) E/ANH_FLUTTER( 5290): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:78) E/ANH_FLUTTER( 5290): at android.os.Handler.dispatchMessage(Handler.java:106) E/ANH_FLUTTER( 5290): at android.os.Looper.loopOnce(Looper.java:201) E/ANH_FLUTTER( 5290): at android.os.Looper.loop(Looper.java:288) E/ANH_FLUTTER( 5290): at android.os.HandlerThread.run(HandlerThread.java:67)

probably I configured something wrong... can you help me with it? I added my connection string and hub name as meta to my AndroidManifest under activity tag.

Riki1200 commented 7 months ago

You can try something like image and these permissions image

ewaradomska commented 7 months ago

What's important - we should place meta-data outside the activity tags :) change it and add receive permission did the job for me :)