Custom Notification

gautam's Avatar


26 May, 2016 12:23 PM

Can any body Suggest me how i can redirect my user to my custom specific page after clicking on notification
what notification should i set on beacon manager
given information and code is only confusing me

kindly help

  1. 1 Posted by Aniruddha on 29 Jun, 2016 01:23 PM

    Aniruddha's Avatar

    What I understand is you need to redirect the notification in the drawer to Native SDK integrated application instead of the URL which is the default feature in Ubudu. Please help us out as there are more people looking for similar applications. We chose ubudu as it does not need internet to process such operations.

  2. 2 Posted by michal.gasztold on 10 Aug, 2016 10:23 AM

    michal.gasztold's Avatar


    The best approach to solve what you want to do is to handle event in your code completely. This means that your app takes care of creating a background notification.
    First call mBeaconManager.setEnableAutomaticUserNotificationSending(false); in a place where you configure Ubudu SDK (mBeaconManager is an UbuduBeaconManager instance).
    Then use your UbuduAreaDelegate implementation class and do follow the code below:

    public void notifyUserForEvent(UbuduEvent event) {
        if (event instanceof UbuduBeaconRegionEvent)
            notifyUserForEvent((UbuduBeaconRegionEvent) event);
    public boolean notifyUserForEvent(UbuduBeaconRegionEvent event) {
           // examples of various data you can read from UbuduBeaconRegionEvent object:
           String beaconMajorId = event.beacon().major();
           String beaconMinorId = event.beacon().minor();
           JSONObject payloadString = event.notification().payload(); // this is the exact same JSONObject that you defined in the Back Office for the rule.  From this object you can retrieve any custom data fields you defined
           String notificationTitle = event.notification().title();
           String notificationMessage = event.notification().shortText();
           // here you implement the status bar notification if the app is in the background or do whatever you want with the event's data you got...
           // ...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac