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

15.0.0 Issues #423

Merged
merged 4 commits into from
Apr 17, 2024
Merged

15.0.0 Issues #423

merged 4 commits into from
Apr 17, 2024

Conversation

MaximBelov
Copy link
Contributor

@MaximBelov MaximBelov commented Apr 10, 2024

What do these changes do?

  1. Bug fix

  2. Airship.contact.getNamedUserId should return an empty string "" instead "OK"
    image
    image

  3. Airship.channel.getChannelId should return an empty string "" instead "OK"

Why are these changes necessary?

Should fix a lot of errors

How did you verify these changes?

Verification Screenshots:

Anything else a reviewer should know?

@@ -386,6 +382,11 @@ airship.push.onNotificationResponse = function (callback) {
return registerListener("airship.event.notification_response", callback)
}

airship.push.onNotificationReceived = function (callback) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is covered by onPushReceived

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not working as expected.

How to reproduce
a. Cold start

  1. Close application
  2. Send push notification via API
  3. Tap on notification
  4. Application Opened
  5. Callback "onPushReceived" does not receive any event

Copy link
Contributor

@rlepinski rlepinski Apr 10, 2024

Choose a reason for hiding this comment

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

That should be onNotificationResponse. onPushReceived is very hit or miss on Cordova since there is no way to start cordova in the BG on Android. On iOS you can do it if you send the push with content-available:1. I believe cordova context will start to handle that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, so this should be remove though before i can merge

@MaximBelov MaximBelov marked this pull request as ready for review April 12, 2024 00:05
@MaximBelov MaximBelov requested a review from a team as a code owner April 12, 2024 00:05
airship.contact.getNamedUser = function (success, failure) {
argscheck.checkArgs('fF', 'Airship.contact.getNamedUser', arguments)
perform("contact#getNamedUser", null, success, failure)
airship.contact.getNamedUserId = function (success, failure) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess its currently broken so maybe what you have is fine

@rlepinski
Copy link
Contributor

I think what you currently have is great. Going to have another engineer on my team look over this as well. Thanks for the PR!

@rlepinski rlepinski merged commit a7a4dfb into urbanairship:main Apr 17, 2024
2 checks passed
@rlepinski
Copy link
Contributor

Thanks!

@MaximBelov MaximBelov deleted the 15.0.0-fix-issues branch April 19, 2024 10:16
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