Ti.UI.NOTIFICATION_DURATION_LONG not working in iOS?

111 Views Asked by At
var myToastNotification = Ti.UI.createNotification();

myToastNotification.message = 'login Successfull';

myToastNotification.duration = Ti.UI.NOTIFICATION_DURATION_LONG;

I tried the above code for implementing toast. it is working fine with android but not in iOS.

1

There are 1 best solutions below

0
Newport99 On BEST ANSWER

This property is only for Android.

NOTIFICATION_DURATION_LONG : 
Specifies a long duration for an Android Toast notification (Titanium.UI.Notification).