Skip to content

Commit 48397a5

Browse files
committed
fix(messaging): remove POST_NOTIFICATIONS for older api
1 parent 73c2d72 commit 48397a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/firebase-messaging-core/index.android.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ export class MessagingCore implements IMessagingCore {
255255
return Promise.resolve();
256256
}
257257
requestPermission(permissions?: any): Promise<AuthorizationStatus> {
258-
const POST_NOTIFICATIONS = (android as any).Manifest.permission.POST_NOTIFICATIONS;
259-
if (parseInt(Device.sdkVersion) >= 33 && POST_NOTIFICATIONS) {
258+
if (parseInt(Device.sdkVersion) >= 33) {
260259
const activity: androidx.appcompat.app.AppCompatActivity = Application.android.foregroundActivity || Application.android.startActivity;
261260

262261
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)