Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .github/pull_request_template.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ public void onNotificationPermissionChange(boolean permission) {
}

void onDetachedFromEngine() {
// The Flutter engine can be torn down before OneSignal.initialize() has been
// called from Dart (cold start, fast finish, etc.). Calling getNotifications()
// in that state throws IllegalStateException from the native SDK. See #1149.
if (!OneSignal.isInitialized()) {
return;
}
// Unsubscribe so clicks while the engine is dead get queued by the native SDK
// instead of dispatched on a detached channel.
OneSignal.getNotifications().removeClickListener(this);
Expand Down
Loading