PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 28
→
NOTIFICATION PUSH ANDROID ..BADGE
NOTIFICATION PUSH ANDROID ..BADGE
Started by PILAR, Jun., 03 2021 6:00 PM - 2 replies
Connect yourself…
PILAR
#1
Posted on June, 03 2021 - 6:00 PM
Buenos dias,
Tengo una pregunta referente a .badge en las notification push en android.
Este es mi código:
maNotif est un Notification
maNotif.Message = sMessage
maNotif.Contenu = sContenu
////////////////////////////////////////////////////////////////
// Android
// Titre
maNotif.Titre = sTitre
// Son Android
maNotif.Son = "son_notif.mp3"
// Icône
maNotif.Icone = "" // mettre ici l'icône pour la notification
// Groupe des notifications
maNotif..Groupe = "Push"
// Texte déroulant
maNotif.TexteDéroulant = sTexteDeroulant
// Options
maNotif.Vibration = bVibration
maNotif.AffichageLED = bLED
maNotif.Supprimable = bSupprimable
maNotif.ActiveApplication = bApplicationActive
// badge
maNotif.Category.BadgeEnabled = True
maNotif..Badge = 1
Recibo la notificación pero el número no aparece en el icono.
No sé si alguien podría ayudarme.
Gracias
Report
0
0
Rubén Sánchez Peña
#2
Registered member
794 messages
Popularité : +40 (42 votes)
Posted on June, 14 2021 - 10:15 PM
Hola. ¿Que versión de Android tiene tu dispositivo? La ayuda dice que esa propiedad solo esta disponible a partir de Android 8.
Rubén
Report
0
0
PILAR
#3
Posted on June, 15 2021 - 8:25 AM
Hola,
Gracias por tu respuesta.
En principio ya funciona, lo que pasaba es que tenía que ir a ajustes y encender la opción de mostrar las insignias.
Ahora mismo el problema es que me piden que no tengas que ir manualmente, que haya algún permiso o algo que haga que esto se active automáticamente.
He mirado la documentación de android y estoy buscando y no encuentro nada de eso
Report
0
0
→ Go back to WINDEV 28
WINDEV 28
WEBDEV 2024
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text