• Resolved Greg S

    (@evidentree)


    I am using the WP plugin and happy with what I can achieve so far.

    However, I want to be able to push out a notification to individual subscribers and have just realised that the plugin has not been sending the WP User Email or User ID to OneSignal, so I am unable to use the API to create a targeted push.

    How can (and where can) I best go about supplying OneSignal with the user ID or email… and is there a way to do this so that it causes the missing data to be sent to you when an existing subscriber logs in?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Greg S

    (@evidentree)

    Actually, I might have just realised how I can do this and also how I can go about it differently by reading the OneSignal ID and saving that to the user in WordPress.

    Do you have suggestion about best practices to use in situations like this?

    Hello for faster service please reach our support team at [email protected]

    Currently this would require code to do.

    Our SDK has the setEmail and setExternalUserId method.

    setEmail is for adding email records to OneSignal and sending emails (needs ESP to do this)

    setExternalUserId can set any custom user id of your choosing

    Details on all methods in our web push sdk docs: https://documentation.onesignal.com/docs/web-push-sdk

    You can also use our getUserId method to get the OneSignal device id (player_id) and use that to target users directly instead.

    You may benefit from our Database Integration guide: https://documentation.onesignal.com/docs/internal-database-crm

    Please feel free to reach our support team anytime using the [email protected] email or the intercom button in our docs or onesignal.com dashboard for faster assistance.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘setEmail or External User ID’ is closed to new replies.