Title: Can I trigger push notifications with code or callback?
Last modified: February 3, 2024

---

# Can I trigger push notifications with code or callback?

 *  [Jamie Robe](https://wordpress.org/support/users/onmountain/)
 * (@onmountain)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/can-i-trigger-push-notifications-with-code-or-callback/)
 * Hi. This looks like the solution for my web app to go hybrid. I have 3 related
   questions to push notifications:
    1. Can I use the auto push on CPT? I use crocoblock jetengine to make CPT (and 
       CCT), and only want push when a new CPT added?
    2. Can I trigger a push notification using jetformbuilder? It has the ability to
       use callback to trigger external code when the form is submitted. I can code
       PHP/JS so any examples would get me started in the right direction.
    3. My plan is to use the existing mobile friendly web app to run as hybrid in your
       native app – but also to allow web browser users on any platform to keep using
       the original web app. My question is two-fold: a) does your plugin change anything
       when the app is just accessed the old way thru the browser? b) How are people
       handling push notifications when you have some users on the website? I am thinking
       of have two types of messages sent at the same time – one being for web only
       users since I don’t see how the push notifications could possibly go to the 
       web version.
 * Thanks in advance.
 * Jamie

Viewing 1 replies (of 1 total)

 *  Plugin Author [Amauri](https://wordpress.org/support/users/amauric/)
 * (@amauric)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/can-i-trigger-push-notifications-with-code-or-callback/#post-17396732)
 * Hi
 * Push only work on the app, thats not compatible with a web version.
 * There is this PHP function that you can use for custom push management:
 * `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 ‘Can I trigger push notifications with code or callback?’ is closed to
new replies.

 * ![](https://ps.w.org/wpappninja/assets/icon-256x256.png?rev=2215187)
 * [WPMobile.App](https://wordpress.org/plugins/wpappninja/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpappninja/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpappninja/)
 * [Active Topics](https://wordpress.org/support/plugin/wpappninja/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpappninja/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpappninja/reviews/)

## Tags

 * [push](https://wordpress.org/support/topic-tag/push/)

 * 1 reply
 * 2 participants
 * Last reply from: [Amauri](https://wordpress.org/support/users/amauric/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/can-i-trigger-push-notifications-with-code-or-callback/#post-17396732)
 * Status: not resolved