You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Normal flutter project setup with `One Signal Flutter` as dependecy
2. Initilize it in `mian.dart`3. try running clear method before adding any trigger, it will show that error
`main.dart`
Future<void> main() async {
...
// Initialize the app
WidgetsFlutterBinding.ensureInitialized();
//Remove this method to stop OneSignal Debugging
await OneSignal.Debug.setLogLevel(OSLogLevel.verbose);
OneSignal.initialize(EnvConstant.ONE_SIGNAL_APP_ID);
OneSignal.InAppMessages.clearTriggers(); setAppBannerTriggersForMyTrailPalBadges(earnedBadges);
...
}
What did you expect to happen?
I thought, it will try to clear all trigger in-case if it exist if not then skip and move forward instead of throwing this error.
OneSignal Flutter SDK version
5.0.2
Which platform(s) are affected?
iOS
Android
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
Getting error, when attempting to call clearTrigger() after hot-restart.
Steps to reproduce?
What did you expect to happen?
I thought, it will try to clear all trigger in-case if it exist if not then skip and move forward instead of throwing this error.
OneSignal Flutter SDK version
5.0.2
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: