• terry9711

    (@terry9711)


    I’m using the WPMobile.App (wpappninja) plugin to send push notifications from my WordPress site to my mobile app users.
    I know the plugin can send notifications to all users, for example when a new post is published. But I would like to know if it’s possible to send custom push notifications to a specific user, or a specific group of users, based on certain events or custom triggers.

    • Is there a way to target notifications to individual users or roles (for example, only admins, or only a user with a particular ID)?
    • Can I use tags, device tokens, or user meta to send notifications only to the intended recipients?
    • Is there an API, hook, or best practice for sending personalized push notifications from PHP code?
Viewing 1 replies (of 1 total)
  • Plugin Author Amauri

    (@amauric)

    Hi

    You can target by email.

    Use this PHP function:
     
    wpmobileapp_push($title, $message, $image, $link, ‘all’, ”, $user_email);
     
    $image have to be a link or empty string and will be only displayed on the push history on app, not on the notification center of the phone
    $user_email if you want to target a specific user or an empty string

Viewing 1 replies (of 1 total)

The topic ‘Custom Push notification’ is closed to new replies.