Can't make any module work with PNotify (Angular)

333 Views Asked by At

Using "modules" with PNotify 4 doesn't work at all.

I'm using PNotify with Angular 6. I'm following PNotify's instructions in order to make the notifications look and behave like they should on mobile. PNotify should even be ready for mobile straight out of the box, but not on my code for some reason.

PNotify.notice({
    title: 'Mobile features',
    text: 'Trying to enable mobile module',
    modules: {
        Mobile: {
            swipeDismiss: true,
            styling: true
        }
    }
});

Expected result:
The notifications look "good" on mobile (100% in width). Notifications are swipe-able.

Actual result:
The notifications look like on desktop and aren't swipe-able.

0

There are 0 best solutions below