CrossGeeks / AzurePushNotificationPlugin

Azure Push Notification Plugin for Xamarin iOS and Android
MIT License
67 stars 34 forks source link

Android 12 support #65

Open negberts opened 2 years ago

negberts commented 2 years ago

Same issue as reported here:

https://github.com/CrossGeeks/PushNotificationPlugin/issues/175

Is it possible to add Exported = false to the Service tag of PNMessagingService?

eyeveye commented 2 years ago

Yeah, this need to be fixed. Having a hard time to upload to Play store.

digitalstreets commented 2 years ago

Also having issues with this.

nord- commented 1 year ago

PR: https://github.com/CrossGeeks/AzurePushNotificationPlugin/pull/66

EmmanVazz commented 1 year ago

That PR is still not accepted and there is no new version. Is there a work around?

EmmanVazz commented 1 year ago

I found a work around. Just take the AndroidManifest.xml service deceleration you find the obj/Debug folder when you make a build and copy it manually into you AndroidManifest.xml in the project with the android:exported flag. Mine looks like this

Then when you build again you will see that the AndroidManifest.xml in the obj/Debug has the correct deceleration.

GianMaria22 commented 1 year ago

I found a work around. Just take the AndroidManifest.xml service deceleration you find the obj/Debug folder when you make a build and copy it manually into you AndroidManifest.xml in the project with the android:exported flag. Mine looks like this

Then when you build again you will see that the AndroidManifest.xml in the obj/Debug has the correct deceleration.

Thank you for your suggestion. Maybe I'm doing something wrong because the modified .XML file is always regenerated