Basic description of the problem:
When I use local notifications plugin, the notification object is not received by plugin with same values as it is sent from Cocoon. Because of this, notifications don’t arrive at correct time. There is no such problem with Webview, only Canvas+.
Example of wrong data:
at: 123456789 is received as
at: 1023456789 is received as
at: 1530878173223 is received as
color: null is received as
As you can see, the time property
at gets rounded to 6 places, and few zeros are added to the end.
color property is from different notification plugin, but it’s value is sent as
null from Cocoon, and is received as
"null" string by the plugin. This causes crash because null check is skipped. As stated before, this only happens with Canvas+ engine, not Webview.
Steps will reproduce the problem:
- Install Local Notifications plugin in Cocoon cloud, set engine to Canvas+.
- Compile official notification demo from GitHub.
- Hook device to debugger console.
- Trigger the notification, and check results.
Used plugins (if relevant):