除了根据firebase的文档接入它的sdk
(https://firebase.google.com/docs/in-app-messaging/get-started?hl=zh-cn&authuser=0&platform=android(,你还需要再google cloud查看你的应用的服务,看一下Firebase In-App Messaging API是否已启用,如果未启用,那么接入sdk也无法收到应用内消息
同时,请注意FirebaseInAppMessaging.getInstance().setMessagesSuppressed(true),这代表着禁止 Firebase In-App Messaging 在应用程序中显示消息,设置之后也是看不到应用内消息的