Comments (3)
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.
That leads to
UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.
from xamarin-plugins.
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)
- PushNotifications: Empty Body with FCM on Android HOT 1
- Help configuring custom icon and sound on notification HOT 2
- How do I get the Accelerometer and Magenetometer values simultaniously?
- got an error while registering push notifications HOT 4
- CrossPushNotificationListener Missing
- UWP notifications not firing HOT 3
- ANDROID Crash INVALID_PARAMETERS HOT 1
- MotionVector.cs ToString implementation
- Android - calling register() causes nav bar to disappear. HOT 1
- How can i convert the ((MotionVector)a.Value).Z from accelerattor to a angle? HOT 1
- Edit push notification sound
- Reconvert iOS Device Token to NsData problem
- Problem receiving push in iOS 11 HOT 3
- Tizen support
- Android 8 not getting notifications HOT 1
- Light Sensor
- Support .Net standard 2.0
- device motion, SensorValueChanged not fired
- Sample App is not working
- All plugins are deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin-plugins.