xamarin.ios - Getting run time warning in xamarin iOS -


I'm making xamarin iOS application. And write my project is based on Push Notification Push Notification registration After Code apping this

  public override bool FinishedLaunching (UIApplication application, NSDictionary options) {// some code UIRemoteNotificationType notificationType = UIRemoteNotificationType.Alert. | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound; UIApplication.SharedApplication.RegisterForRemoteNotificationTypes (Notification Type); // some code} public override void RegisteredForRemoteNotifications (UIApplication application, NSData deviceToken) {// some code} public override void FailedToRegisterForRemoteNotifications (UIApplication application, NSError error) {Console.WriteLine ( "Error AppDelegate Push Notification"); New UIAlertview ("Error for Push Notification", Error. Localized Descriptration, Blank, "OK", blank). Show (); } Public override zero ReceivedRemoteNotification (UIApplication application, NSDictionary userInfo) {Console.WriteLine ("Receive notification call"); } Public override void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo, action & lt; UIBackgroundFetchResult & gt; completionHandler) {Console.WriteLine ( "" the DidReceiveRemoteNotification); // if ([content-available]) // // get content // Close handler (UIBackgroundFetchResult.NewData); //}}   

So when I'm running this application on the device, I do not get permission for push notifications alerts. And there are two warnings.

  Warning MT1108: Developer tools for this 7.1 (11D167) device could not be found. Please make sure that you are using a compatible Xcode version and then connect this device to Xcode to install development support files. Error MT1007: 'I Laitkor iPod' failed to launch 'com.laitkor.pilat' app on the device: Return to previous warnings: 0x454 You can still manually launch the application by tapping on it.   

So I think this warning may be due to the push notification error. So please help me any help would be appreciated.

It looks like you are using an older Xcode (eg 5.0) and a device IOS 7.1 Its going on. Your alert, i.e., MT1108 .

Such configurations can work (most of the time) but there are some drawbacks. The code that runs with Xcode can not talk to the device (to start the application). This is the reason why the error is happening, i.e. MT1007 .

If you can not update your Xcode (to 5.1) you will need to manually launch your application (tap on it icon). After starting it, it should connect to the debugger and you will come back to normal.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -