iOS Question Help with an Apple rejection!

Erel

Administrator
Staff member
Licensed User
As I've previously wrote, your code is wrong. The first step is to fix it.
 

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
 

Attachments

Last edited:

Nicolás Cieri

Member
Licensed User
B4X:
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(True, True, True)
    fm.Initialize("fm")
    Try
        LocManager.Initialize("LocManager")
    Catch
        Log(LastException)
    End Try   
    loginform.Show   
End Sub
 

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?
 

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:
B4X:
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:
B4X:
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.
 

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.
 
Top