service

  1. practicalsoft

    B4X FEED Autostart on android 11

    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...
  2. practicalsoft

    B4X FEED How to kill a service permanently

    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)...
  3. practicalsoft

    B4X FEED [B4A] Esempio FCM, perche' il service DEVE chiamarsi FirebaseMessage ?

    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...
  4. practicalsoft

    B4X FEED Service 'Run_App' that not start secondary app when it is in background

    '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...
  5. practicalsoft

    B4X FEED Android Bluetooth / BluetoothAdmin Tutorial

    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...
  6. practicalsoft

    B4X FEED Services in Android 10+

    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...
  7. practicalsoft

    B4X FEED B4A, Service Problems a boot, at restart service application.

    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...
  8. practicalsoft

    B4X FEED [SOLVED] FCM token availability

    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...
  9. practicalsoft

    B4X FEED search example of a timer that does not stop when the smartphone is off

    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...
  10. practicalsoft

    B4X FEED Error Loading Bitmap

    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...
  11. practicalsoft

    B4X FEED [B4APages] About background tasks and services

    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...
  12. practicalsoft

    B4X FEED Firebase Notifications List

    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...
  13. practicalsoft

    B4X FEED [B4XPages] B4XPages questions

    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...
  14. practicalsoft

    B4X FEED Problem with FirebaseAuth Library - Had it working before but not now

    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...
  15. practicalsoft

    B4X FEED B4XPages & Scheduled service

    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...
  16. practicalsoft

    B4X FEED [JRDC] SocketTimeoutException: failed to connect to

    Hello! The following error occurs during testing: Spoiler: ResponseError --------- beginning of main *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** *** Service (httputils2service) Create *** ** Service...
  17. practicalsoft

    B4X FEED Firebase msg to devices that choose one or more topics

    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...
  18. practicalsoft

    B4X FEED httputils2service_hc_responsesuccess (B4A line: 74) problem

    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)...
  19. practicalsoft

    B4X FEED I need help to exit an application In B4XPages application

    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...
  20. practicalsoft

    تکه کد تکه کد تغییر رنگ پس زمینه اعلانها در بیسیک فور اندروید

    تغییر رنگ پس زمینه اعلانها در بیسیک فور اندروید 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...
عقب
بالا