AzurePushNotificationPlugin icon indicating copy to clipboard operation
AzurePushNotificationPlugin copied to clipboard

Android 12 support

Open negberts opened this issue 2 years ago • 6 comments

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?

negberts avatar Jun 24 '22 12:06 negberts

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

eyeveye avatar Jul 11 '22 14:07 eyeveye

Also having issues with this.

digitalstreets avatar Oct 07 '22 01:10 digitalstreets

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

nord- avatar Nov 21 '22 16:11 nord-

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

EmmanVazz avatar Dec 21 '22 19:12 EmmanVazz

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.

EmmanVazz avatar Dec 21 '22 20:12 EmmanVazz

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

GianMaria22 avatar Jul 04 '23 13:07 GianMaria22