Skip to content

Commit

Permalink
feat(messaging): Expose modular API that matches the Firebase web JS …
Browse files Browse the repository at this point in the history
…SDK v9 API (#6806)
  • Loading branch information
russellwheatley authored Jan 25, 2023
1 parent 94536b0 commit da82c10
Show file tree
Hide file tree
Showing 9 changed files with 1,732 additions and 14 deletions.
8 changes: 8 additions & 0 deletions packages/messaging/e2e/messaging.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,12 @@ describe('messaging()', function () {
should.equal(firebase.messaging().isDeliveryMetricsExportToBigQueryEnabled, false);
});
});

describe('isSupported()', function () {
it('should return "true" if the device or browser supports Firebase Messaging', async function () {
// For android, when the play services are available, it will return "true"
// iOS & web always return "true". Web can be fully implemented when the platform is supported
should.equal(await firebase.messaging().isSupported(), true);
});
});
});
Loading

1 comment on commit da82c10

@vercel
Copy link

@vercel vercel bot commented on da82c10 Jan 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.