Notifications.scheduleNotificationAsync when called 2nd time resulted in undefined is not a function at getRandomBase64

オープン
#927 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, javascript, react-native
領域
mobile

調査の方向性

まず、issue に示されている Notifications.scheduleNotificationAsync の 2 回連続した呼び出しで Android のケースを再現し、次に undefined getRandomBase64 エラーを追跡します。2 つ目の通知が正常にスケジュールされ、有効なリクエスト結果を返せば完了です。issue では対象とするファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug
Notifications.scheduleNotificationAsync when called 2nd time resulted in undefined is not a function at getRandomBase64

To Reproduce
Steps to reproduce the behavior:
const notificationContent1 = {
title: 'Notification 1',
body: 'This is notification 1.',
identifier: 'notification_1',
};

const notificationReq1 = await Notifications.scheduleNotificationAsync({
  content: notificationContent1,
  trigger: {
    seconds: 30,
  },
});
console.log(
  "notificationReq1:",
  notificationReq1
);
const notificationContent2 = {
  title: 'Notification 2',
  body: 'This is notification 2.',
  identifier: 'notification_2',
};

const notificationReq2 = await Notifications.scheduleNotificationAsync({
  content: notificationContent2,
  trigger: {
    seconds: 60,
  },
});
console.log(
  "notificationReq2:",
  notificationReq2
);

Expected behavior
A news Notification has to be set.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
Android

Smartphone (please complete the following information):
Android

Additional context
Add any other context about the problem here.

主要言語
JavaScript
スター
13.2k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

expo/create-react-native-app のほかの issue

expo/create-react-native-app の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。