PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a notification into the system bar of device (Android) or into the notification center (iOS).
Android Example:
Then, the notification can be expanded to display its details.
Versions 20 and later
From Android 4.1 (Jelly Bean, API level 16), additional actions can be associated with a notification. These actions are represented as buttons located below the message of the notification.
Example of notification with two additional actions, "Respond" and "Delete":
The implementation of the additional notifications is done via the Property Additional Action of the Variable of type Notification.
New in version 20
From Android 4.1 (Jelly Bean, API level 16), additional actions can be associated with a notification. These actions are represented as buttons located below the message of the notification.
Example of notification with two additional actions, "Respond" and "Delete":
The implementation of the additional notifications is done via the Property Additional Action of the Variable of type Notification.
From Android 4.1 (Jelly Bean, API level 16), additional actions can be associated with a notification. These actions are represented as buttons located below the message of the notification.
Example of notification with two additional actions, "Respond" and "Delete":
The implementation of the additional notifications is done via the Property Additional Action of the Variable of type Notification.
Versions 24 and later
From Android 8.0 (Oreo, API level 26), all notifications created by an Android application must be associated with a notification category (also known as "channel"). The categories of Notification are defined by the Property Category of variables of type Notification.
New in version 24
From Android 8.0 (Oreo, API level 26), all notifications created by an Android application must be associated with a notification category (also known as "channel"). The categories of Notification are defined by the Property Category of variables of type Notification.
From Android 8.0 (Oreo, API level 26), all notifications created by an Android application must be associated with a notification category (also known as "channel"). The categories of Notification are defined by the Property Category of variables of type Notification.
Versions 19 and later
iPhone/iPad The notification will be visible in the notification center only if the application is in background (for example, using the position tracking in background with geoTrackingEnable).
New in version 19
iPhone/iPad The notification will be visible in the notification center only if the application is in background (for example, using the position tracking in background with geoTrackingEnable).
iPhone/iPad The notification will be visible in the notification center only if the application is in background (for example, using the position tracking in background with geoTrackingEnable).
Versions 18 and later
Android Widget This function is now available in Android widget mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Android Widget This function is now available in Android widget mode.
Versions 19 and later
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
New in version 19
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
Example
notif is Notification
notif.Title = "Nouveau message reçu"
notif.Message = "Cliquez pour afficher le message"
NotifAdd(notif)
Syntax
<Result> = NotifAdd(<Notification>)
<Result>: Boolean
  • True if the notification was added,
  • False otherwise.
Remark: In the simulator, this function has no effect and it always returns False.
<Notification>: Notification variable
Name of Notification variable containing the description of the notification to display.
If this parameters corresponds to a notification that is already added, this notification will be updated. In this case, NotifAdd and NotifModify have the same effect.
Related Examples:
WM_System Cross-platform examples (WINDEV Mobile): WM_System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- LED
- Vibration
- Notifications
- Drawing functions
- Internet
Business / UI classification: Business Logic
Component: WDJS.DLL
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment