Skip to content

Commit

Permalink
fix(messaging): remove POST_NOTIFICATIONS for older api
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Jul 28, 2022
1 parent 73c2d72 commit 48397a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/firebase-messaging-core/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ export class MessagingCore implements IMessagingCore {
return Promise.resolve();
}
requestPermission(permissions?: any): Promise<AuthorizationStatus> {
const POST_NOTIFICATIONS = (android as any).Manifest.permission.POST_NOTIFICATIONS;
if (parseInt(Device.sdkVersion) >= 33 && POST_NOTIFICATIONS) {
if (parseInt(Device.sdkVersion) >= 33) {
const activity: androidx.appcompat.app.AppCompatActivity = Application.android.foregroundActivity || Application.android.startActivity;

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 48397a5

Please sign in to comment.