iOS Question Help with an Apple rejection!

Discussion in 'iOS Questions' started by Nicolás Cieri, Nov 26, 2019.

  1. Nicolás Cieri

    Nicolás Cieri Member Licensed User

    I have also tested it with "TestFlight Testing" and it works perfectly.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    As I've previously wrote, your code is wrong. The first step is to fix it.
     
  3. Nicolás Cieri

    Nicolás Cieri Member Licensed User

    Erel, I tried to change the code and I have it the same as in another application that they accepted (also made with B4i).

    This time I returned 6 crash files.

    I also attach the file 'Results', it is the symbolization of the files.

    As you can see, the errors do not appear in Thread 0, but in others, even some crash files.

    I appreciate the support.

    The strangest thing is that in the TestFlight app it works perfect.

    Thanks

    I think it is common, but there is no solution.
    https://github.com/firebase/firebase-ios-sdk/issues/3915
     

    Attached Files:

    Last edited: Dec 2, 2019 at 11:29 PM
  4. Erel

    Erel Administrator Staff Member Licensed User

    Can you post the updated AppStart sub?
     
  5. Nicolás Cieri

    Nicolás Cieri Member Licensed User

    Code:
    Private Sub Application_Start (Nav As NavigationController)   
        analytics.Initialize
        
    Dim pg As Page
        pg.Initialize(
    "")
        pg.RootPanel.LoadLayout(
    "session")   
        NavControl = Nav
        NavControl.NavigationBarVisible = 
    False
        NavControl.ShowPage(pg)   

        App.RegisterForRemoteNotifications
        App.RegisterUserNotifications(
    TrueTrueTrue)
        fm.Initialize(
    "fm")
        
    Try
            LocManager.Initialize(
    "LocManager")
        
    Catch
            
    Log(LastException)
        
    End Try   
        loginform.Show   
    End Sub
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Code looks good. I'm not sure that the stack trace with APMSqliteStore calls is related to the crash.

    Can you send me the project? And the IPA you submitted to the store?
     
  7. Nicolás Cieri

    Nicolás Cieri Member Licensed User

    Sure! I send it to you by mail.
     
  8. Nicolás Cieri

    Nicolás Cieri Member Licensed User

    Ready Erel!, you already have the project and the IPA in your email.

    Thanks
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    All the crash reports were tested on iPad so I also tested your project on iPad and it does crash.

    It crashes here:
    Code:
    Dim no As NativeObject
    no = no.Initialize(
    "CTTelephonyNetworkInfo").RunMethod("new"Null).RunMethod("subscriberCellularProvider"Null)
    Dim iso As String = no.GetField("isoCountryCode").AsString
    Change your code to:
    Code:
    Dim no As NativeObject
    no = no.Initialize(
    "CTTelephonyNetworkInfo").RunMethod("new"Null).RunMethod("subscriberCellularProvider"Null)
    If no.IsInitialized = False Then Return False 'don't assume that the device 
    Dim iso As String = no.GetField("isoCountryCode").AsString
    The app will now run properly though it just shows the layout and the activity indicator. Nothing happens. Maybe because of the missing language code, I haven't tried it.

    I'm not sure why you are using this code however subscriberCellularProvider will return Null if there is no sim card.
     
  10. Nicolás Cieri

    Nicolás Cieri Member Licensed User

    Thank you very much Erel, I will try to send it with that change.
    I use that code to speed up registration, selecting the country by default.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice