Update the code in the try block to this below: FirebaseMessaging.instance.getInitialMessage().then((message) { if (message != null) { return ...
確定! 回上一頁