Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Notifier/OneSignal] Fix external player IDs#53248

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@KDederichs
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?yes (kinda, if it never worked is it a deprecation?)
IssuesFix#50779
LicenseMIT

After digging into it I found that the original implementation seems to plan for external players but the implementation seems like it never would have worked, since the parameter was calledinclude_external_user_ids and notexternal_id.

Looking at their docs, you can also see they recently changed their API parameters, so I took the chance to just go ahead and update to the new parameters.

Since the new one is a bit more complicated to set external IDs I ended up marking the old method as deprecated and adding a new option.

I think this should be better since external ids and subscription ids should be mutually exclusive.

See:https://documentation.onesignal.com/reference/create-notification

I didn't have time to test it yet so it's a draft for now, so please someone feel free to check it out, otherwise I'll try to real world test it in the coming days.

@norkunas
Copy link
Contributor

OneSignal deprecated the old way, but it's not removed yet? It was implemented before it based on their older api

@fabpot
Copy link
Member

That should be done in 7.1 (on lower branches, we cannot deprecate anything nor add new features).

@KDederichs
Copy link
ContributorAuthor

OneSignal deprecated the old way, but it's not removed yet? It was implemented before it based on their older api

yeah, but even the old way the parameter was calledinclude_external_user_ids (acroding to the docs) while the notifier just setexternal_id, or am I missing something obvious here?

@OskarStark
Copy link
Contributor

We need to split this PR, 5.4 should fix the used key, while 7.1 should introduce the new isExternal method and deprecate the old method.

KDederichs reacted with thumbs up emoji

@norkunas
Copy link
Contributor

norkunas commentedDec 28, 2023
edited
Loading

OneSignal deprecated the old way, but it's not removed yet? It was implemented before it based on their older api

yeah, but even the old way the parameter was calledinclude_external_user_ids (acroding to the docs) while the notifier just setexternal_id, or am I missing something obvious here?

I see now, so external ids were not implemented initially,only old player ids, trully not sure why that method is there

Edit: I found this in v9 docs:
Screenshot_20231228-190639.png

@KDederichs
Copy link
ContributorAuthor

KDederichs commentedDec 28, 2023
edited
Loading

Those docs are a strange mess... at the top it says this:
Screenshot 2023-12-28 at 18 10 46

So... both work?

Edit: Oh seems like it's something different, seems like theexternal_id one is to prevent double sending?

@norkunas
Copy link
Contributor

I think that this option is not for an user id,but instead custom id for deduplication,so it should not be removed 🤔

yeah hard to understans their docs.. would be easier if they would have multiple endpoints for notifications based on needed filters..

@KDederichs
Copy link
ContributorAuthor

So, since it seems to be a new feature after all I'd assume the right course of action would be to close this and re-open a PR against 7.1 right?

@norkunas
Copy link
Contributor

Totally

KDederichs reacted with thumbs up emoji

@KDederichs
Copy link
ContributorAuthor

Ok, closing this then and preparing one for 7.1

norkunas and OskarStark reacted with thumbs up emoji

@KDederichsKDederichs deleted the fix/one_signal_external branchDecember 28, 2023 17:18
OskarStark added a commit that referenced this pull requestDec 29, 2023
…rnal user ids (KDederichs)This PR was merged into the 7.1 branch.Discussion----------[Notifier] [OneSignal] Add support for sending to external user ids| Q             | A| ------------- | ---| Branch?       | 7.1| Bug fix?      | no| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Issues        |Fix#50779| License       | MITAs discussed in#53248, here's the feature PR against 7.1.This introduces a new `isExternalUserId()` option to indicate that the receiver is an external user id.At the same time it also replaces the deprecated `include_player_ids` option.Commits-------533a831 Add support for sending to external user ids
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkAwaiting requested review from OskarStarkOskarStark is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

5 participants

@KDederichs@norkunas@fabpot@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp