Forum Xamarin.Forms

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

App is not resuming, Refresh everytime with splash screen in physical device.

Ajay87Ajay87 INMember ✭✭✭
edited May 2020 in Xamarin.Forms

Hi
I am working an application which is working fine on simulator but app is not resume after installed ipa in physical device.
Tried with these in Appdelegate
public override void WillEnterForeground(UIApplication application)
{
base.WillEnterForeground(application);
}
public override void OnActivated(UIApplication uiApplication)
{
base.OnActivated(uiApplication);
}

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    What did you configure in the event:

    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    

    What do you mean "Refresh everytime with splash screen"?
    Did it crash immediately after opening? Have you tried to debug it on a real device?

  • Ajay87Ajay87 INMember ✭✭✭
    edited May 2020

    @LandLu Actually I am debugging app on simulator with remotely connected to the mac, thats why i am not able to test on physical device and its working fine on simulator.

    Refreshing everytime with flash=> It means app is not resuming on physical device , working fine on simulator
    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    {
    global::Xamarin.Forms.Forms.Init();
    Extension.Init();
    LoadApplication(new App());
    return base.FinishedLaunching(app, options);
    }
    I've called some third party plugins in Extension.Init(); method just like
    public static void Init()
    {
    ImageCircle.Forms.Plugin.iOS.ImageCircleRenderer.Init();

            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();
            Syncfusion.ListView.XForms.iOS.SfListViewRenderer.Init();
            Syncfusion.XForms.iOS.EffectsView.SfEffectsViewRenderer.Init();  //Initialize only when effects view is added to Listview.
            Syncfusion.XForms.iOS.TreeView.SfTreeViewRenderer.Init();
            Syncfusion.SfPdfViewer.XForms.iOS.SfPdfDocumentViewRenderer.Init();
            Syncfusion.SfRangeSlider.XForms.iOS.SfRangeSliderRenderer.Init();
            Syncfusion.XForms.iOS.Accordion.SfAccordionRenderer.Init();
            Syncfusion.SfChart.XForms.iOS.Renderers.SfChartRenderer.Init();
    
    
        }
    
  • LandLuLandLu Member, Xamarin Team Xamurai

    Refreshing everytime with flash=> It means app is not resuming on physical device , working fine on simulator

    It sounds like a code signing issue.
    Did you use a free provisioning file or a paid one?

  • Ajay87Ajay87 INMember ✭✭✭
    edited May 2020

    Hi @LandLu I am using Paid provisioning file.
    Any luck ?

  • LandLuLandLu Member, Xamarin Team Xamurai

    I'm not sure about it as we lack the crash logs here.
    But if the code signing is not successfully configured the application can't be deployed on a real physical device.
    If you can't debug the application directly on your physical device try to integrate some analytics libraries such as App Center to help us collect the crash logs.
    If App Center reveals nothing but your app still crashes we could confirm this must be an iOS certificate issue.

Sign In or Register to comment.