I have identical issue with previous thread, unable to activate notifications from BLE device.
manager.SetNotify succeeds, but DataAvailable event after that is never raised and notifications are not detected. BLE2 Ver.1.36, trying to communicate with BLE Body Thermometer
Service and...
Hi,
I look all example and try all of them, but always notification is coming when app is running.
I only want to show message when notification is coming if app is running
'B4A version 8.30
'Target SDK: 26
Sub Service_Start (StartingIntent As Intent)
FM.HandleIntent(StartingIntent)...
I have foreground service on an app targeting SDK 26 and therefore there will be a persistent notification as long as the service is up. I know that I can customise this notification using Service.AutomaticForegroundNotification. What I am trying to do is to hide the notification icon in such a...
Hi Everyone,
All of my apps are using this coding to display a notification that lets the user know the app is running in the background. The coding was working correctly on my test phone running Android 7.
In the Starter module:
In the Process_Globals:
Private nNotify As Notification...
My app always has a notification open, to show user status. Periodically a service, svcDoStuff, is run to communicate with a server online. Since Android 8 the periodic service needs to be a foreground service, to ensure it won't get killed while doing it's thing. When the foreground service is...
Hi Everyone,
Can we tell this statement not to vibrate the phone and not have a notification sound? Most of our customers don't want it to do that.
I also noticed the statement also displays the name of the app as defined in
#ApplicationLabel. Can we put custom text in the title and...
I don't know how I have to create the icon.
I can see it (white) in the status bar but not in the list of notifications.
Can you upload an example?
Thank you.
P.S. SDK target 23 - device: Android 4.4.2.
I'm not so sure that the problem is the "format" of the image file (png, of course)...
I want to change the background color of the smallicon in a notification. I use the notification builder.
My aim is, to get different colors for the smallicon in the notification and in the status bar. Equal to...
I'm converting my project to B4A 8 and I have this issue:
I'm running a service, other than Starter, that gets started from the Main activity upon user action.
In the start sub, I set an icon and put it in foreground
Sub Service_Start (StartingIntent As Intent)
'more code
Dim n As...
Hi Everyone,
I would like to use SetExactAndAllowWhileIdle without needing to also use notifications. Everything goes well with SetExactAndAllowWhileIdle such as rescheduling the startup of a service and it starts up very close to being on time.
The service is sticky...
Hi, i'm working with b4A 7.30 and i have created some apps with firebase (social login and push) and i haven't any kind of problem.
But i don't know, now, with new app, the login with firebase work fine, but don't work the push notification.
fm_MessageArrived not raised!
i'm trying with b4j...
Is there any class module than can do stack notifications within the activity, and the slide up when each single timer from the instance is acomplish? Something similar to bootstrap notifications in HTML5 as the image attached?
Every search for notification in the forum returns push...
Hi everyone!!!
I want to share with you my solution, using the Notification Builder (Thanks to @barx for this awesome library <3 ), to play a custom sound from your DirAssets folder. I did it because this method use the notification volume for this sound (instead of the Soundpool solution...
Private Sub SendMessage(Topic As String, Title As String, Body As String)
Dim Job As HttpJob
Job.Initialize("fcm", Me)
Dim m As Map = CreateMap("to": $"/topics/${Topic}"$, "restricted_package_name": "YOUR_PACKAGE")
Dim data As Map = CreateMap("title": Title, "body": Body)...
Hi,
I would like to send notification to specific device with the B4J server. I have the Firebase token of the destination device.
I'm in trouble with Firebase authentication.
This is the code, FCMPush with little variation:
'Non-UI application (console / server application)
#Region Project...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.