Showing posts with label ios. Show all posts
Showing posts with label ios. Show all posts

Monday, September 23, 2013

IOS Apple APNS message push C #

Members Great God, I'm using C # to do a push messages about Apple, I spent a foreigner two projects in the source code, source code I have not posted the foreigners out, because I see online are basically written message push he used to write the source code. JdSoft.Apple.Apns.Notifications and JdSoft.Apple.Apns.Notifications.Test,

Only JdSoft.Apple.Apns.Notifications.Test changed inside the code, the P12 file and changed the password token there myself here, and then run up to try. (Also, I want to declare that my computer's firewall is turned off.)

But my apple never receive the message. Program console. Write as

Notification Queued!

Sleeping 15000 milliseconds before next Notification ...

Connected ...

Notification Success: {"aps": {alert ":" Testing 1 ... "" badge ": 1," sound ":" default "}}

Notification Queued!

Sleeping 15000 milliseconds before next Notification ...

Error: unable to write data to the transport connection: Your software in the host machine aborts an already established connection. .

Connection ...

Connected ...

Notification Success: {"aps": {"alert": "Testing 2 ...", "badge": 2, "sound": default "}}

Notification Queued!

Error: unable to write data to the transport connection: Your host software abort a connection has been established. .

Cleaning Up ...

Cnection ...

Notification Success: {"aps": {alert ":" testing 3 ... "," badge ": 3," sound ":" default "}}

done!

Press enter to exit ...

I do not know where the fault lies. Please advise, thank you.

Customer-end handset has not received the information.
Reply:
There are two certificates, is not the wrong; check your push-enabled app released without
Reply:
My problem here is that, before the test certificate is good with that, into issuing certificates to report this error.

ios4.1 of a crash

NSInvalidArgumentException
- [UIApplication applicationWillTerminate:]: unrecognized selector sent to instance 0x552660
0 CoreFoundation 0x31785fd3 __ exceptionPreprocess 114
1 libobjc.A.dylib 0x320118a5 objc_exception_throw 24
2 CoreFoundation 0x31789a77 - [NSObject (NSObject) doesNotRecognizeSelector:] 102
3 CoreFoundation 0x31788f15 ___ forwarding___ 508
4 CoreFoundation 0x3171b680 _CF_forwarding_prep_0 48
5 default 0x1468e28d - [CommonToolsView onClickCellBtn:] 104
6 CoreFoundation 0x317107ad - [NSObject (NSObject) performSelector: withObject: withObject:] 24
7 UIKit 0x3017a829 - [UIApplication sendAction: to: from: forEvent:] 84
8 UIKit 0x3017a7c9 - [UIApplication sendAction: toTarget: fromSender: forEvent:] 32
9 UIKit 0x3017a79b - [UIControl sendAction: to: forEvent:] 38
10 UIKit 0x3017a4ed - [UIControl (Internal) _sendActionsForEvents: withEvent:] 356
11 UIKit 0x3017ab3b - [UIControl touchesEnded: withEvent:] 342
12 UIKit 0x30172b89 _UIGestureRecognizerUpdateObserver 2904
13 CoreFoundation 0x3175ba49 __ CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 16
14 CoreFoundation 0x3175d475 __ CFRunLoopDoObservers 412
15 CoreFoundation 0x3175e77b __ CFRunLoopRun 854
16 CoreFoundation 0x317078eb CFRunLoopRunSpecific 230
17 CoreFoundation 0x317077f3 CFRunLoopRunInMode 58
18 GraphicsServices 0x33ac26ef GSEventRunModal 114
19 GraphicsServices 0x33ac279b GSEventRun 62
20 UIKit 0x3011e2a7 - [UIApplication _run] 402
21 UIKit 0x3011ce17 UIApplicationMain 670

These are ios4.1 system reported a crash, is there any experts encountered this problem or have related ideas, tired advertised, be grateful.
(Other systems basically no such problem; program useless to CommonToolsView)
Reply:
unrecognized selector sent to instance is not the method name
This problem in the debug environment, it is easy to see that it is NOT true cause
Reply:
I am a landlord. Unable to reproduce in the debug environment, unknown operation. This is the crash stack upload information. Even suspect that is not third-party software (may jailbreak installed) cause, no clue.
Reply:
[CommonToolsView onClickCellBtn:]
Global search to see where this method is called to see if there might find clues
Reply:
NSInvalidArgumentException
- [UIApplication applicationWillTerminate:]: unrecognized selector sent to instance 0x552660

Look at this log, it should be when the program exits, call applicationWillTerminate: method is not found.
Reply:
CommonTools This is the 91 desktop database, the user installed 91 desktop, in 4.x devices possible through "Exit current program" to exit the current program exits, it will produce a top crash log, is 91 Desktop the bug

IOS How online debugging ah?

In the MAC system, use XCODE how to connect the real machine debugging?
Be sure to developer account?
Reply:
may also have other ways, but not as good as honestly pay 99 knives, or ask your account to share
Reply:
Haha, someone willing to share this account? ?
Reply:
Find friends chant, the beginning I also find a friend to share the development certificate
Reply:
Xcode cracks, equipment jailbreak, you can, no big problem, just release submitted to appstore app developer account to use!
Reply:
Are interested can look at my blog, but there are developer account best for the machine does not have to so much trouble.