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

Callback doesn't work if the application was started by notification. #1

Closed AGulev closed 3 years ago

AGulev commented 5 years ago

Android.

  1. Fully close an app
  2. Send a push
  3. tap to push
britzl commented 3 years ago

I assume this can be a locally scheduled notification as well?

I'm thinking that this is no longer an issue @AGulev ?

AGulev commented 3 years ago

I tested 4 scenarios of opening the app by tap to notification:

  1. App closed, Remote notification - no callback at all
  2. App in background, Remote notification - activated = false
                 defold  D  DEBUG:SCRIPT: payload,
                         D  { --[[0x7f57b89d30]]
                         D    alert = "Hello"
                         D  }
                         D  DEBUG:SCRIPT: origin,
                         D  1
                         D  DEBUG:SCRIPT: activated,
                         D  false
  3. App closed, local notification - no callback at all
  4. App in background, local notification - activated = true
          defold  D  DEBUG:SCRIPT: payload,
                         D  { --[[0x7f58019b30]]
                         D    data = { --[[0x7f580197b0]]
                         D      field = "Some value",
                         D      field2 = "Other value"
                         D    }
                         D  }
                         D  DEBUG:SCRIPT: origin,
                         D  1
                         D  DEBUG:SCRIPT: activated,
                         D  true
britzl commented 3 years ago

Thanks Alexey!