Open OperationalFallacy opened 1 year ago
Hi @OperationalFallacy, the InApp Messaging component is not designed to be used without the backend service. I'm marking this as a feature request and we will consider it on our roadmap.
Thanks, @reesscot Indeed, I've added messing component in Amplify backends and error is gone.
Does the package allow message removal programmatically from event notifications? Or there is always interaction from use expected on messages?
Also examples here are using wrong package? https://docs.amplify.aws/react-native/build-a-backend/more-features/in-app-messaging/sync-messages/
so like.. where's the toast that was requested YEARS ago?
I've used one of the known package, worked very well
import toast from 'react-hot-toast';
...
export default function ShowCustomBannerMessage(response: TradeRequest) {
toast.custom(<CustomBannerMessage response={response} />, {
duration: 1500,
});
}
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React Native
Which UI component?
In-App Messaging
How is your app built?
next.js
What browsers are you seeing the problem on?
Safari
Which region are you seeing the problem in?
n/a
Please describe your bug.
I understand that may not be a bug at all; I'm trying to use InAppMessaging for some notifications on the front-end (xxx created, or yyy failed) - without any analytical backend. And it errors out with unhandled exception "No credentials, applicationId or region"
What's the expected behaviour?
I hoped it could work without a back-end (pinpoint service) so I could utilize it to show user notifications from internal functions. Kinda like "toast" type notifications.
Help us reproduce the bug!
An Amplify app but without pinpoint configured, plus snipped of code from docs https://ui.docs.amplify.aws/react/connected-components/in-app-messaging
Code Snippet
Console log output
Unhandled Promise Rejection: Error: No credentials, applicationId or region
Additional information and screenshots
It works but also shows unhandled exception in the console and on the page (may be because npm run dev mode)