PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • The notifications in the system bar
  • Other types of notifications
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Android: The different types of notifications
Overview
Android proposes several types of notifications to warn the user:
WINDEV Mobile allows you to use these different modes of notifications.
The notifications in the system bar
The notifications found at the top of the Android home screen are notifications by icons.
They ca be expanded to show their details.
To create and handle these notifications, WINDEV Mobile proposes:
  • WLanguage functions:
    NotifAddAdds a notification into the system bar of device (Android) or into the notification center (iOS).
    NotifDeleteDeletes a notification displayed in the system bar of the device.
    NotifModifyModifies a notification currently displayed in the system bar of the device.
  • advanced types used to manage the notifications:
    Versions 16 and later
    Notification
    New in version 16
    Notification
    Notification
    The Notification type is used to handle the local notifications or the push notifications.
    Versions 20 and later
    notificationAction
    New in version 20
    notificationAction
    notificationAction
    The notificationAction type is used to describe an additional action associated with a notification.
    Versions 20 and later
    notificationFormat
    New in version 20
    notificationFormat
    notificationFormat
    The notificationFormat type is used to describe the display format of a notification when this one is expanded.
You have the ability to add and delete icons (and their details) to/from the notification bar, to perform sound notifications, vibrations and to switch the LED on.
Other types of notifications
WINDEV Mobile proposes other types of notifications.
1. Notification by vibration
The notification by vibration consists in making the device vibrate to warn the user.
Several WLanguage functions are used to manage this type of notification:
VibrationStopStops the vibrations of the device (even if they have been triggered by another application).
VibrationTriggerTriggers the vibrations of the device.
2. Notification by switching the LED on
The notification by lighting the LED consists in switching the device LED on (or in making it blink). On some devices, you also have the ability to change the color of the LED.
Several WLanguage functions are used to manage this type of notification:
LEDSwitchOffSwitches the LED (Light-Emitting Diode) of the device off.
LEDSwitchOnSwitches the LED (Light-Emitting Diode) of the device on.
3. Notification by Toast message
A Toast is a furtive message that appears in the middle or at the bottom of the screen to inform the user. The user does not have to validate the message: this one is displayed during a specified period of time.
Toast messages
The Toast messages are managed by the following WLanguage function:
ToastDisplayDisplays a "Toast" message.
Related Examples:
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
Android Push Cross-platform examples (WINDEV Mobile): Android Push
[ + ] This example explains how to receive Push notifications on Android.

It calls the PushNotifActive function and returns the identifier to the WINDEV "WD Push Server" example that stores it.

Then, this identifier is read by the WINDEV "WD Send Push" example that sends the Push notifications to this Android example.
Minimum required version
  • Version 16
Comments
Click [Add] to post a comment