WP Manifestindependent plugin directory
manifest / integrations / wp-app-notif

App Notif

Notification sender from wordpress for Mobile App One Signale

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/dream-space/wp-app-notif/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

wp-app_notif

WordPress Plugin FCM(Firebase Cloud Messaging) for Android

endpoint plugin

  • URL : www.sample-domain.com/?wp-app_notif=register

  • TYPE : POST

  • HEADER : Content-Type : application/json, Security : YOUR_SECURITY_CODE

  • BODY :

    {
      "regid": "APA91bHScXXXXXXXX",
      "serial": "Android device serial number D511E1ZR611XXXXX",
      "device_name": "Brand Name (samsung SM-XX, Sony D-XXX, etc)",
      "os_version": "5.0 or 4.1 etc"
    }
  • RESPONS :

    {
    "status": "success or failed",
    "message": "Message Content"
    }

implement app_notif

this article may help you :

notification body

  • JSON

    {
    "title": "Title Text",
    "content": "Content Text",
    "post_id": post_id in number (optional)
    }
  • Android

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
      AppNotifNotif app_notifNotif = new AppNotifNotif();
      if (remoteMessage.getData().size() > 0) {
          Map<String, String> data = remoteMessage.getData();
          app_notifNotif.post_id = data.get("post_id") == null ? -1 : Integer.parseInt(data.get("post_id"));
          app_notifNotif.title = data.get("title");
          app_notifNotif.content = data.get("content");
          app_notifNotif.image = data.get("image");
      } else if (remoteMessage.getNotification() != null) {
          RemoteMessage.Notification rn = remoteMessage.getNotification();
          app_notifNotif.title = rn.getTitle();
          app_notifNotif.content = rn.getBody();
      }
      // Your action display notification here
    }
  • Subscribe topic

    FirebaseMessaging.getInstance().subscribeToTopic("ALL-DEVICE").addOnCompleteListener(new OnCompleteListener<Void>() {
      @Override
      public void onComplete(@NonNull Task<Void> task) {
          sharedPref.setSubscibeNotif(task.isSuccessful());
      }
    });

purchase project implementation

https://codecanyon.net/item/koran-wordpress-app-with-push-notification-20/17470988