Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 15.2.0 #428

Merged
merged 7 commits into from
Apr 24, 2024
Merged

Release 15.2.0 #428

merged 7 commits into from
Apr 24, 2024

Conversation

rlepinski
Copy link
Contributor

Still need new proxy and update iOS quiet time settings

@rlepinski rlepinski requested a review from a team as a code owner April 19, 2024 16:52

val listener = Listener(
listenerId = jsonArgs.get(1).requireInt(),
callbackContext = callbackContext
)

this.listeners.getOrPut(event) { mutableListOf() }.add(listener)
this.listeners.getOrPut(eventName) { mutableListOf() }.add(listener)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to map to types, instead only use the map when finding the listener. This fixes background response and makes it so we can combine foreground/background push received

@@ -396,7 +382,7 @@ internal fun JsonSerializable.pluginResult(): PluginResult {
val json = this.toJsonValue()

return when {
json.isNull -> PluginResult(PluginResult.Status.OK)
json.isNull -> PluginResult(PluginResult.Status.OK, null as String?)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do not set a value on Android cordova it will set the value based on the status message.

@rlepinski
Copy link
Contributor Author

@MaximBelov Could you review this? I want to make sure we are good to hopefully avoid another release. Thank you for all your help on this!

@MaximBelov
Copy link
Contributor

MaximBelov commented Apr 20, 2024

Android

Test1: Application not started, notification
1 Send notification
2 Tap on notification
3 onPushReceived isForeground false
4 onNotificationResponse isForeground true

Test2: Application not started, application
1 Send notification
2 Launch application
3 onPushReceived isForeground false
4 Tap on notification
5 onNotificationResponse isForeground true

Test3: Application started, foreground
1 Send notification
2 onPushReceived isForeground true
3 Tap on notification
4 onNotificationResponse isForeground true

Test4: Application started, background
1 Send notification
2 onPushReceived isForeground false
3 Tap on notification
4 onNotificationResponse isForeground true

@MaximBelov
Copy link
Contributor

MaximBelov commented Apr 20, 2024

iOS

Test1: Application not started, notification
1 Send notification
2 Tap on notification
3 onNotificationResponse isForeground true

Test2: Application not started, application
1 Send notification
2 Launch application
3 Without events

Test3: Application started, foreground
1 Send notification
2 onPushReceived isForeground true
3 Tap on notification
4 onNotificationResponse isForeground true

Test4: Application started, background
1 Send notification
2 Tap on notification
3 onNotificationResponse isForeground true

@MaximBelov
Copy link
Contributor

@rlepinski
Tested and it looks good

We need more internal tests with 15.2.0 codebase

I'll let you know about any issues before 24.04.2024

@MaximBelov
Copy link
Contributor

@rlepinski
tested and checked
everything works as expected

@rlepinski
Copy link
Contributor Author

@MaximBelov Awesome, Ill get a release out todayish, going to get another patch released SDK out first

@rlepinski rlepinski merged commit e2906da into main Apr 24, 2024
2 checks passed
@rlepinski rlepinski deleted the release-15.2.0 branch April 24, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants