DcarpT  
                
               
               
              
                  
                    January 29, 2024,  6:14pm
                   
                   
              1 
               
             
            
              hello everyone friends, 
I am developing an application, I want to send notifications to the user when the application is closed for certain periods of time. This is similar to the messages that almost every app sends to our phones every day. As a result of my research, I saw that this is possible with some paid add-ons. Is there a way to do this completely free?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              
  
  
     Itoo 4
 [image]  
Graphics by Dennis Littawe
[BuildWithLove]  [Frame 1] 
 The newer version of Itoo now has updated ItooX framework which runs more reliably across all platforms, devices and Android versions.
 Services
Itoo supports two types of services. 
Foreground 
keeps the service alive throughout the session without interruptions.
a permanent notification will be displayed throughout the session from Oreo.
Background Task 
unlike the foreground task, it is executed on a different proc…
   
 
 
Also check this post by @Mario1 , where he demonstrates alarm at certain time with just Itoo:
  
  
    Great extension with it any application made with app inventor can work in the background. 
I see that there is doubt about how the extension works, I am attaching two aia files, which can help you understand how it works. 
One is a step counting app that works in the background, so it will always count your steps. 
Another is an Alarm manager 
Both work correctly, although as usually happens, the battery mode must be set to "No restrictions" for them to work correctly on lame Xiaomi or Samsung …
   
 
When you use Itoo, you'll need to have a persistent notification and a background service running all the time versus alarm managers.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
              
                  
                    January 29, 2024,  6:49pm
                   
                   
              3 
               
             
            
              
using an alarmmanager extension there is no persisent notification necessary...
while closing the app you could set the desired alarm time 
to find out when the app is closing you could use the tools extension and its ActivityStateChanged  event
  
  
     Description
Alarm Manager Extension to send a notification or  autostart the app at a given time or at boot time only once or repeated by interval (15 minutes, half hour, hour, half day, day and week, month and year). After clicking the notification your app will be started. You can define a start text, which will be passed to your app in method 'get plain start text' and trigger some action after your app is started. You also can define several alarms, just use a different id for each alarm.  A…
   
 
Taifun
             
            
               
               
              1 Like 
            
            
                 
                 
              
           
          
            
            
              hello everyone i use that extension and i want to send notification to the user 
but my code isn't working 
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
              
                  
                    September 15, 2024,  3:10pm
                   
                   
              6 
               
             
            
              
 jack jordan:
 
my code isn't working
 
 
Yes, your blocks do not really make sense
Read this thread from the beginning to find answers how to do it
Taifun