iOS Question Help with an Apple rejection!

Nicolás Cieri

Active Member
Licensed User
Can anyone help?

The application works perfectly on my iPhone 11. (13.2.3)

I've tried it many times, it doesn't give me any mistakes, I've even tried it in airplane mode.

The "release" version works very well.


El 26 nov. 2019 a las 11:03
De Apple
2. 1 Performance: App Completeness
Guideline 2.1 - Performance - App Completeness


We were unable to review your app as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue.

This is reproducible on iPhone and iPad.

Next Steps

To resolve this issue, please revise your app and test it on a device to ensure it will launch without crashing.

Resources

For information on how to symbolicate and read a crash log, please review Tech Note TN2151 Understanding and Analyzing Application Crash Reports.
 

Attachments

  • crash1.txt
    75 KB · Views: 123
  • crash2.txt
    75.2 KB · Views: 105
  • crash3.txt
    73.6 KB · Views: 110

Nicolás Cieri

Active 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

  • crashlog-00CE52D7-E494-4ED5-ABBF-F9CA3B4436EF.txt
    83.4 KB · Views: 96
  • crashlog-5EF4CD41-859D-41DC-A2B2-BA1783CE265C.txt
    78.7 KB · Views: 84
  • crashlog-18A7A173-983B-4395-8670-E9786CA62851.txt
    81.2 KB · Views: 81
  • crashlog-BD9A8071-2C43-46A5-882D-E618F19B1000.txt
    82.6 KB · Views: 87
  • crashlog-CBE23121-9A1A-400D-9651-936F0CE552AA.txt
    78.7 KB · Views: 78
  • crashlog-E90251A9-9708-46C4-AA28-766C162082E0.txt
    81.5 KB · Views: 82
  • Reults.txt
    3.2 KB · Views: 92
Last edited:
Upvote 0

Nicolás Cieri

Active 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
 
Upvote 0

Erel

B4X founder
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.
 
Upvote 0

Nicolás Cieri

Active 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.
 
Upvote 0
Top