B4X Push Server is a B4J written back-end server for B4i and B4A apps that use push notifications (Android - GCM, iOS - APN). Its two main features are: - Collect device tokens - DeviceToken class. - Send messages to the devices - Send servlet (which calls iOSPush and AndroidPush modules)...
www.b4x.com
But Firebase seems to be the only way forward in B4I 2024.
The best you can do is to implement a "background fetch" feature and show a local notification. You will not have real control over the timing of the notifications.
Do you have a code example for using a local notification? and an example of background fetch?
Can I use this example? https://www.b4x.com/android/forum/threads/background-fetch-downloads.56022/page-2
Can I trigger a task in the background every day at 12 p.m. and then trigger a local notification?
Why won't I be able to control the start time of notifications?
Nope... Half a year ago I tried to develop an alarm clock with B4I, but the app was always killed by the OS without having an extended time.
Does not work:
I would like to create an alarm clock app and have found apps in the app store that do exactly what I want to achieve. e.g. ring in 8 hours, the apps regulate the volume in the background of the music that is then played -> so the app has to run in the background. I came across the following...
How can i use the BGProcessingTask with B4I? https://developer.apple.com/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app?language=objc...
https://www.b4x.com/android/forum/threads/usernotificationcenter-class.117925/#content This is an addition to the UserNotificationCenter class. https://developer.apple.com/documentation/usernotifications/scheduling_a_notification_locally_from_your_app?language=objc Sub Class_Globals...
Background fetch feature allows applications to run for a short period of time (up to 30 seconds) while in the background. The steps required to use this service are: 1. Add the fetch mode declaration: #PlistExtra: UIBackgroundModesfetch 2. Download the attached zip file and copy main.m to...
Then the other apps in the App Store must work their magic, because they can even change the volume while the music is playing and play the notification sound even though the phone is in silent mode and all while the app is in the background.
Wakey - Morning Alarm Clock lets you wake up to your favorite music and forces you to do your morning exercise. FEATURES: ■ Music Alarm Clock - select any music as your alarm sound, including song, playlist, album, artist or station from Apple Music ■ Radio Alarm Clock - select Apple Music...
I am using a B4X project (Main & B4XMainPage), is it possible to put the code for the Application_FetchDownload function in the B4XMainPage class? (see last example in the link)
Background fetch feature allows applications to run for a short period of time (up to 30 seconds) while in the background. The steps required to use this service are: 1. Add the fetch mode declaration: #PlistExtra: UIBackgroundModesfetch 2. Download the attached zip file and copy main.m to...