I have read many threads but I cound no understand what to do.
I have added a new "booter" service with this code below, that I was using on the STARTER service. IT WAS WORKING in most android boxes but in some the app partially loads (it remains in a white page state)
B4X:
#Region Service...
Hi,
I am using MyLocation as a basis for my project.
I want to stop and kill the service when the user stops the program.
This is what I tried:
In tracker.bas:
B4X:
Sub Service_Destroy
' Service.StopAutomaticForeground
CancelScheduledService(Me)
StopService (Me)...
Stavo seguendo l'esempio istituzionale per la comunicazione via notifiche Firebase, esattamente questo Esempio FCM solo che durante la creazione modulo service ho provato a dare un nome diverso al service dentro al quale mettere il codice
Risultato: non andava piu' una mazza, era FirebaseMessage...
'Run_App' is a service write in B4A designed to be started automatically when the operating system is started and to wait for the receipt of sms
When the smartphone receives a text message, Run_App service reads the sms body, and if present the command START_PROG = com.peppe.app_1 starts the...
Better implementation based on B4XPages:
Android Tutorial - [B4XPages] Bluetooth Chat Example
Updated implementation, based on B4XPages of https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/#content. The code is much simpler compared to the previous...
Hi!
My app was working OK except in Android 10.
It has the mandatory location permission ACCESS_FINE_LOCATION because it must scan for Bluetooth devices.
There is a service that runs only when the SO is pairing with the Bluetooth device.
In Android 10 the service seems not to start. (no errors...
I have an application that is type soft phone; it has 3 simple activities:
1. Registration of credentials
2. Dialpad
3. Calls;
4. Phone service that starts at boot
5. start that starts phone when user applies task killer
everything works fine until the user comes up with the genius of applying...
Hi all,
in the past I sucessfully used FCM for messages destined to group of users (i.e. topics). Today I'm experimenting with messages intended for a single user (i.e. token).
What I'm experiencing is that the token seems to become available only on a second launch of the application (or anyway...
Hello
For an app like a stopwatch, I need a timer that does not stop when the smartphone goes to sleep (screen off).
I understood that I had to launch a service to create the timer, but the problem is that it stops about 30 seconds after the smartphone goes to sleep.
I read that I had to...
Hi, I have an App where the user subscribes to a service of his choice , and according to the service chosen a .png file is downloaded and used as an icon to represent the service he is subscribed to . Everything works fine and I have multiple logs that check that the download was executed...
Hello!
I would like to ask the following:
As I understand, I could have the Starter service for background tasks like push messages functionality with web sockets, send/receive messages via the websocket push framework and background GPS management to send location data to server even if the...
Hi all.
I tried to use a Firebase Notifications - it works fine, I was able to push a notification from B4J example but my question is - how to keep a previous notification?
Let say I sent a notification with a title "AAA" and body "BBB". It comes to my app and I can see it.
Later on I pushed...
Hello!
I have written a taxi calling app with custom web socket push framework. The app has a starter service for global objects declaration and a pushservice service for handling the communication between server and mobile device. The pushservice also handles the Location and GPS...
Hi guys
So the issue I seem to be having is very similar to this issue from previous...
https://www.b4x.com/android/forum/threads/latest-sdk-update-breaks-firebaseauth-library.93446/
Before someone asks ... B4A 10.0 Target SDK 28, fully updated in SDK manager
The following error occurs...
Hi all,
It's the first time that I'm facing a B4XPages (https://www.b4x.com/android/forum/t...k-for-managing-multiple-pages.118901/#content) mobile app development.
Within this app my target is to implement a service that notify the user when a specific condition is true (check implemented...
Hi
Scenario: first time app runs, user choose (checkbox) one or more topics from preference activity. when pref activity closes, app should subscribe/unsubscribe from topic(s) and receive only he choosed. now code to subscribe to all topics is from Erel's example.
i tried with diff code in...
Hi!!
I am developing an application that queries the database. Until today, everything worked fine, but now the following error appears:
B4X:
Registro conectado a: samsung SM-N970F
--------- beginning of crash
--------- beginning of main
*** Service (starter) Create ***
** Service (starter)...
I made an B4XPages application which is working fine and i need to exit application (not running in background) when i click a button.
Please help me. I used this code in B4XMainPage:
B4X:
Sub Button7_Click
Main.pw.ReleaseKeepAlive
' Activity.Finish
ExitApplication
End...
تغییر رنگ پس زمینه اعلانها در بیسیک فور اندروید
Add to NB6:
'Whether to use the accent color for the background. Not applied in all cases.
'For most styles, the coloring will only be applied if the notification is for a foreground service notification.
Public Sub Colorized (Enabled As...