Please help guys. I dont know why but the code below wont run on other phones but runs perfectly well on my asus zenfone 2.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
When omitted the app runs well on 2 other phones (Vivo and SOny Experia). I need the app to NOT die when installed as this is a GPS app that updates coordinates every 10 mins.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
does not work. when the phone locks the service stops.
EDIT: this are my libs
	
	
	
		
		
		
			
		
		
	
	
		 
	
			
			
			
				B4X:
			
		
		
		Sub Process_Globals
Dim myNotification As Notification
End Sub
			
				B4X:
			
		
		
		Sub Service_Create
myNotification.Initialize
    myNotification.Icon = "logo"
    myNotification.Sound = False
    myNotification.Vibrate = False
    myNotification.SetInfo("Title", "Message",Main)
    myNotification.Notify(10000)
			
				B4X:
			
		
		
		Sub Service_Start (StartingIntent As Intent)  
    Service.StartForeground(10000, myNotification)
End SubWhen omitted the app runs well on 2 other phones (Vivo and SOny Experia). I need the app to NOT die when installed as this is a GPS app that updates coordinates every 10 mins.
			
				B4X:
			
		
		
		#StartCommandReturnValue: android.app.Service.START_STICKYdoes not work. when the phone locks the service stops.
EDIT: this are my libs
 
	
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		