iOS Question On app call works but send errors to log

manolitoGnet

Member
Licensed User
Longtime User
Hi,

A very simple project just to demonstrate the log dump...

B4X:
'Code module
#Region  Project Attributes 
    #ApplicationLabel: Dialer
    #Version: 1.0.0
    'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
    #iPhoneOrientations: Portrait
    #Target: iPhone
    #MinVersion: 9
    #QueriesSchemes: tel
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page
    'Private Button1 As Button

End Sub

Private Sub Application_Start (Nav As NavigationController)
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.RootPanel.LoadLayout("main")
    NavControl.ShowPage(Page1)
End Sub

Private Sub Page1_Resize(Width As Int, Height As Int)
   
End Sub

Private Sub Application_Background
   
End Sub

Sub Button1_click
    Private phonenumber As String

    phonenumber = "tel:000"
    If App.CanOpenUrl(phonenumber) Then
        App.OpenURL(phonenumber)
    End If       
End Sub

And the log...

B4X:
Application_Start
Application_Active
Application_Inactive <------------------------- OpenUrl & makes call with no problem
Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x16d61c80 V:|-(20)-[UIInputSetContainerView:0x16e676e0]   (Names: '|':UITextEffectsWindow:0x16e39080 )>",
    "<NSLayoutConstraint:0x16e63c90 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x16e676e0]   (Names: '|':UITextEffectsWindow:0x16e39080 )>"
)
Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x16d61c80 V:|-(20)-[UIInputSetContainerView:0x16e676e0]   (Names: '|':UITextEffectsWindow:0x16e39080 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Application_Active <---------------------------- return from call when call ended

I'm sure that this error do not pases de Apple filter... Any idea?
 

Attachments

  • dialer.zip
    2 KB · Views: 249

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

manolitoGnet

Member
Licensed User
Longtime User
It will most probably won't have any effect on the app store review process.

I also encounter such messages from time to time. They seem to be related to Apple bugs: http://stackoverflow.com/questions/...straint-breaks-when-call-in-status-bar-gets-v
Thanks for the link Erel it is very clarifier. The constraint may be "broken" when the phone app moves my own app to the background, but it only log it the firs time as remarked in the link.

Hope you are right about the review process.

Thanks!
 
Upvote 0
Top