i use this example
Notifications permission with targetSdkVersion = 33
	
	
		
			
			
				
					
						
							
						
					
					www.b4x.com
				
			
		
	
i use it in that way
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
in relase the app crash when first time ask for premission (it show permission message then close) ,second run work normaly
no error message shown
Solved :the issue that i forget to add RunTimePERMISSIONs lib ,The strange thing is that the B4A IDE did not show a missing library error.
Thanks for any help
			
			Notifications permission with targetSdkVersion = 33
Notifications permission with targetSdkVersion = 33
There is a new "dangerous" (runtime) permission On Android 13+ devices required for showing notifications. When targetSdkVersion < 33, the OS will show the permission dialog automatically before the notification is displayed. Once we switch to targetSdkVersion=33 we are responsible for...
				
			
				B4X:
			
		
		
		Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Bar1")
    Wait For (CheckAndRequestNotificationPermission) Complete (HasPermission As Boolean)
    If HasPermission = False Then
        Log("no permission")
    End If
End Sub
	no error message shown
Solved :the issue that i forget to add RunTimePERMISSIONs lib ,The strange thing is that the B4A IDE did not show a missing library error.
Thanks for any help
			
				Last edited: