Giter VIP home page Giter VIP logo

Comments (3)

rdelrosario avatar rdelrosario commented on August 12, 2024

You should initialize the plugin after the LoadApplication call.
On Aug 11, 2015 6:41 AM, "ThomasKIT" [email protected] wrote:

I am successfully using the plugin on Android, but with iOS it fails
during initilization.

iOS 8.4:
Should initialize before use on FinishedLaunching method of AppDelegate
class. Example: CrossPushNotification.Initialize()

iOS 7.1:
UIKit Consistency error: you are calling a UIKit method that can only be
invoked from the UI thread.

Last point of entry before the exceptions occur:
CrossPushNotification.Current.Register()

This is my AppDelegate FinishedLaunching:
public override bool FinishedLaunching(UIApplication app, NSDictionary
options)
{
global::Xamarin.Forms.Forms.Init();

    CrossPushNotification.Initialize<CrossPushNotificationListener>();

    InitXLabsServices();

    ImageCircleRenderer.Init();

    LoadApplication(new KinsmenApp());

    return base.FinishedLaunching(app, options);
}

Of course I did set up the Provisioning Profile and Push Notification
Permission at the Developer Center.

How can I get more information about where it actually crashes inside the
plugin?


Reply to this email directly or view it on GitHub
#17.

from xamarin-plugins.

ThomasKIT avatar ThomasKIT commented on August 12, 2024

That leads to

  UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.

from xamarin-plugins.

rdelrosario avatar rdelrosario commented on August 12, 2024

Can you send the code where you are calling the register method?
On Aug 11, 2015 11:17 AM, "ThomasKIT" [email protected] wrote:

This leads to
UIKit Consistency error: you are calling a UIKit method that can only be
invoked from the UI thread.


Reply to this email directly or view it on GitHub
#17 (comment)
.

from xamarin-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.