phonegap-parse-plugin icon indicating copy to clipboard operation
phonegap-parse-plugin copied to clipboard

Plugin not working for iOS

Open vrunoa opened this issue 9 years ago • 9 comments

Hey @avivais , I install the phonegap-parse-plugin but it's not working on iOS. After install, I build & run the app, and in xcode console I get:

2015-07-28 18:19:37.651 Enquestapp[7925:4456806] -[__NSCFString JSONObject]: unrecognized selector sent to instance 0x114871d68
2015-07-28 18:19:38.308 Enquestapp[7925:4456806] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> -[__NSCFString JSONObject]: unrecognized selector sent to instance 0x114871d68

Have any idea what it could be ?

I'm using cordova 4.2.0

Thanks four your help.

vrunoa avatar Jul 28 '15 21:07 vrunoa

I'm currently working on this myself. Are you attempting to do run your app in the simulator? It seems as though push notifications are only supported with an actual device.

eddiekollar avatar Jul 31 '15 08:07 eddiekollar

Yeah, I was testing it on a Simulator, on monday i'll use a iphone 6 and let you know. I really hope this is the problem. thanks.

vrunoa avatar Aug 01 '15 19:08 vrunoa

Got the same error testing on an iPhone 6. I have to remove the -ObjC flag from Other Links Flags on the project to work. Could the plugin not be working due to this ?

vrunoa avatar Aug 03 '15 16:08 vrunoa

@vrunoa How can I remove this without xcode?

Kunze avatar Oct 26 '15 13:10 Kunze

@Kunze mmm, I have never actually made it without XCode, but I believe you would have to change the build command-line you're using and add this flag.

vrunoa avatar Oct 26 '15 14:10 vrunoa

@vrunoa Thank

Kunze avatar Oct 26 '15 14:10 Kunze

I'm facing the same problem (with -ObjC removed) and running on device (ipad air)

Have you found any solution yet?

rooswelt avatar Nov 12 '15 14:11 rooswelt

any solutions yet regarding this problem??

sharmahemu1994 avatar Mar 01 '16 09:03 sharmahemu1994

add this ( -force_load $(BUILT_PRODUCTS_DIR)/libCordova.a ) in other links flags in xcode if you have removed -ObjC

sharmahemu1994 avatar Mar 01 '16 11:03 sharmahemu1994