• 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 AmauriC

    (@amauric)

    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.