eclipsesource / tabris-plugin-firebase

A firebase plugin for Tabris.js
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Prevent notification messages #69

Closed elshadsm closed 3 years ago

elshadsm commented 3 years ago

The plugin receives a data message as a notification, even when the app is in the foreground. The issue occurs after the first reload of the application.

When we reload the app, unlike previous versions, the first new components are created, and then old components are destroyed in the latest tabris android platform. As a result, the static messaging variable is set to null by the old MessagingHandler, which is destroyed at the end.

The change prevents static messaging from being updated by old handlers.