We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c2d72 commit 48397a5Copy full SHA for 48397a5
packages/firebase-messaging-core/index.android.ts
@@ -255,8 +255,7 @@ export class MessagingCore implements IMessagingCore {
255
return Promise.resolve();
256
}
257
requestPermission(permissions?: any): Promise<AuthorizationStatus> {
258
- const POST_NOTIFICATIONS = (android as any).Manifest.permission.POST_NOTIFICATIONS;
259
- if (parseInt(Device.sdkVersion) >= 33 && POST_NOTIFICATIONS) {
+ if (parseInt(Device.sdkVersion) >= 33) {
260
const activity: androidx.appcompat.app.AppCompatActivity = Application.android.foregroundActivity || Application.android.startActivity;
261
262
return new Promise((resolve, reject) => {
0 commit comments