When i click on a local notification when app is foreground it crashes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Firewall

Recently i have created an android plugin for local notifications. It all worked fine until i tap on the notification when my godot game is the foreground app. When i tap it, it shows the splash screen and then immediately crashes with these error messages from logcat:

E godot   : **ERROR**: Condition "configured" is true.
E godot   :    At: core/string_name.cpp:54:setup() - Condition 
"configured" is true.
E godot   : **ERROR**: IP singleton already exist.
E godot   :    At: core/io/ip.cpp:308:create() - Condition "singleton" is true. Returned: 
__null
E godot   : **ERROR**: Singleton in InputMap already exist.
E godot   :    At: core/input_map.cpp:372:InputMap() - Condition "singleton" is true.
E godot   : **ERROR**: A MessageQueue singleton already exists.
E godot   :    At: core/message_queue.cpp:340:MessageQueue() - Condition "singleton 
!= __null" is true.

I checked out the manifest file of the apk, the main activity has android:launchMode="2" corresponding to singleTask and that means it shouldn’t create a new task. I set the flags of the notifications content intent to zero.

I don’t know why i get these errors. Help me please.