Assign static vars at plugin initialization
If the app is not running, the callback has to be called later (#42)