My app doesnt start on Ios

Unloki59Unloki59 Member ✭✭

Hi all,
I implements Firebase cloud messaging on my app, for android there are no problems, but on ios the application doesnt start, remain block on the image loading.

` public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
FormsControls.Touch.Main.Init();
FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
Xamarin.FormsMaps.Init();
App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height;
CarouselViewRenderer.Init();
SuaveControls.FloatingActionButton.iOS.Renderers.FloatingActionButtonRenderer.InitRenderer();
Firebase.Core.App.Configure();
Debug.WriteLine("test");
CrossFirebasePushNotification.Current.RegisterForPushNotifications();
FirebasePushNotificationManager.Initialize(options,true);
UITabBar.Appearance.SelectedImageTintColor = UIColor.FromRGB(5, 11, 36);

        CarouselViewRenderer.Init();

        LoadApplication(new App());
        Debug.WriteLine("test");
        return base.FinishedLaunching(app, options);

    }
    public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
    {
        FirebasePushNotificationManager.DidRegisterRemoteNotifications(deviceToken);
    }

    public override void FailedToRegisterForRemoteNotifications(UIApplication application, NSError error)
    {
        FirebasePushNotificationManager.RemoteNotificationRegistrationFailed(error);

    }
    public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler)
    {
        FirebasePushNotificationManager.DidReceiveMessage(userInfo);
        System.Console.WriteLine(userInfo);

        completionHandler(UIBackgroundFetchResult.NewData);
    }

`

I got no Error Messages in the Part "Deploy on the Device" or in the Part "Output of the Application"
I dont know what to do..

Any idea ? may i can see error in special log ?

Thx in advance

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    If you removed the firebase's initialized code will your app be stuck at the loading time?

  • Unloki59Unloki59 Member ✭✭

    Y, my app still be stuck at the loading time :neutral:
    Maybe i do wrong in the info.plist ?

  • LandLuLandLu Member, Xamarin Team Xamurai

    @Unloki59 It seems it's not the issue of Firebase. Can you deploy a new blank project successfully on iOS part?

  • Unloki59Unloki59 Member ✭✭

    New blank app works..

  • LandLuLandLu Member, Xamarin Team Xamurai

    You could catch the detailed logs via:
    Tools => Projects and Solutions => Build and Run
    Change the output and log to Diagnostic.
    If you do feel difficult to find out the reason you can get the one-on-one support here:
    https://support.microsoft.com/en-us/supportforbusiness/productselection?sapId=211dd84f-3474-c3c5-79bf-66db630c92a6

  • Unloki59Unloki59 Member ✭✭

    Ok thx, the cause is => i delete the entitlements.plist..
    So i recreate a new project and copy paste my code....

  • LandLuLandLu Member, Xamarin Team Xamurai

    @Unloki59 Does it work now?

  • Unloki59Unloki59 Member ✭✭

    No, my xcode is not compatible with iphone 8 ( cant upgrade xcode cause too old mac) And on iphone 5 still get 0 error,
    is there a way to deploy in another way?

  • LandLuLandLu Member, Xamarin Team Xamurai

    The version of XCode should be compatible with the iOS version.
    There are no other ways to debug on iPhone 8 with a prior version XCode. You could only generate an ipa file and then install it on your real device to see the effect instead of debugging.

  • Unloki59Unloki59 Member ✭✭

    Ok thx, i just xant to test firebase cloud messaging on IOS, but i cant test on simulator cause Simulator doesn't support the KeyChain :neutral:

  • LandLuLandLu Member, Xamarin Team Xamurai

    @Unloki59 I recommend you to upgrade your XCode. I also have an old Mac machine it could still use the latest MacOS version and Apple doesn't restrict that.

  • Unloki59Unloki59 Member ✭✭

    I got this

    Wrong way to dl it ?

  • LandLuLandLu Member, Xamarin Team Xamurai

    @Unloki59 I can't understand the language you posted above. However, it seems you have to upgrade your macOS first.
    Try to upgrade it to the latest OS version.

  • Unloki59Unloki59 Member ✭✭

    I get the last version, my mac cant download 10.14 (Mac High Sierra, 2011)

Sign In or Register to comment.