• Hello

    I have two questions:

    1. How can I add a button to the Toolbar, that allows me to go back to the last page I visited?
    2. Which function do I have to call if I want to send a message from a plugin I programmed myself?

    Greetings,
    Lionel

Viewing 1 replies (of 1 total)
  • Plugin Author AmauriC

    (@amauric)

    Hi ??

    1- From the wpmobile plugin > block design > toolbar > middle or right of the toolbar, switch the editor to html mode and add this:

    <a href="javascript:window.history.go(-1);"><i class="f7-icons notranslate" translate="no">arrow_left</i></a>

    2- You can use this PHP function to send push:

    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 ‘Go back and Notification’ is closed to new replies.