mistrypragnesh40 / PushNotificationDemoMAUI

33 stars 10 forks source link

Permission Request Issue #4

Closed canperk closed 1 year ago

canperk commented 1 year ago

When trying to force user to allow notifications like below as you implemented at MainActivity.cs

ActivityCompat.RequestPermissions(this, new string[] { Android.Manifest.Permission.PostNotifications }, 1);

It is not asking if user allows notifications or not. Did you make anything special?

mistrypragnesh40 commented 1 year ago

No just above code, and this permission in manifest file.

<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

canperk commented 1 year ago

If you mean this

<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

tehn I have it. Did you get the request mesaage box from Android? On your video IOS asks but not Android

mistrypragnesh40 commented 1 year ago

Yes, I get that permission box. but tested in android emulator API- 33.

canperk commented 1 year ago

What about versions below 33? Do you have any idea?

canperk commented 1 year ago

It is allowed by default below API 33. Thus I am closing this