defold / extension-push

This is a Defold native extension which provides access to Push Notifications functionality on iOs and Android devices.
https://www.defold.com/extension-push/
MIT License
20 stars 16 forks source link

Local notification payload problem on iOS #43

Closed britzl closed 2 years ago

britzl commented 2 years ago

From forum:

I’ve noticed a discrepancy between iOS and Android behaviour for the payload received by the listener registered with extension-push. In the sample project, on Android, the following is printed:

DEBUG:SCRIPT: Push payload received: (activated: false)
DEBUG:SCRIPT: data = {
field2 = Other value,
field = Some value,
}

whereas on iOS it’s:

DEBUG:SCRIPT: Push payload received: (activated: false)
DEBUG:SCRIPT: payload = {“data”:{“field”:“Some value”,“field2”:“Other value”}},
id = 2,

Effectively, Android gives me payload.payload It’s easy enough to handle, but I wonder if it would be considered a bug?