ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Adds a notification to the system bar (Android) or notification center (iOS).
Android The Notification is displayed in the system bar and can then be scrolled to view its details. Notifications can contain specific actions, displayed as clickable text below the notification message.
Additional notifications are implemented via the AdditionalAction property of the Notification variable.
Starting with Android 8.0 (Oreo, API level 26)all notifications created by an Android application must be associated with a notification category (also known as a "channel"). The notification categories are defined by the Category property of Notification variables.
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).
Example
notif is Notification
notif.Title = "New incoming message"
notif.Message = "Click here to display the message"
NotifAdd(notif)
Syntax
<Result> = NotifAdd(<Notification>)
<Result>: Boolean
  • True if the notification was added,
  • False otherwise.
Note In the simulator, this function has no effect and always returns False.
<Notification>: Notification variable
Name of the 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: wd300android.aar
Minimum version required
  • Version 16
This page is also available for…
Comments
NotificationDisplay
https://repository.windev.com/resource.awp?file_id=281474976710849;notificationdisplay
BOLLER
30 Aug. 2019

Last update: 03/27/2025

Send a report | Local help