未验证 提交 e6a6beb3 编写于 作者: V Vyacheslav Konyshev 提交者: GitHub

fix(examples/with-firebase-cloud-messaging): replace deprecated method (#19080)

上级 f226a376
......@@ -21,7 +21,7 @@ const firebaseCloudMessaging = {
}
const messaging = firebase.messaging()
await messaging.requestPermission()
await Notification.requestPermission()
const token = await messaging.getToken()
localforage.setItem('fcm_token', token)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册