paymentMethodNonce not called in Braintree Drop-in Payment UI iOS v4 - ios

I am new to Braintree SDK. I followed this link https://developers.braintreepayments.com/guides/drop-in/ios/v4 . When I try to generate paymentMethodNonce I am not able to do it. The drop in UI is Displayed but it is not generating paymentMethodNonce. I tried BTDropInControllerDelegate but those delegate methods are not called. If any one is expert in this please suggest me how to get the paymentMethodNonce
Thanks in advance

Related

Swift - NSURLSession downloading in background?

I'm creating an iOS app by swift that is as same as the AliExpress iOS app.
This App has ability that connect to our site and download all of data from JSON api online.
Now, I wanna download the images of the icons and banner slider from our site by JSON api in main page. But I don't know how i can do it. Do I use queues or background functions like in android? Also, I'm an android developer and i know how i can do this in android. You can guide me by this way ,too. please guide me by sample codes or description of its logic.
Please refer following link for tutorial
http://www.raywenderlich.com/51127/nsurlsession-tutorial
Apple documentation can be found on following link
https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSession_class/
Swift example can be found here
http://jamesonquave.com/blog/making-a-post-request-in-swift/
I have also created a demo for the same
https://github.com/Gagan5278/SessionDownload
Let me know if you want more on this.
You have the seed of your answer in the title of your question. You want to create an NSURLSession and add NSURLDownloadTasks to it. That class does all the work for you.
A quick search on Github reveals this repository that claims to offer an async download queue in Swift:
https://github.com/Gurpartap/Cheapjack
(I haven't used that one. You can either build it into your project or look at the code and use it to implement your own download sessions.)
There is also AlamoFire, another swift library that has built-in JSON support.

iOS SDK: Custom open graph story with "Feelings"

I'm successfully publishing a custom Open Graph story, with a custom FBSDKShareOpenGraphAction and a custom FBSDKShareOpenGraphObject.
However, I can't find the documentation for assigning a "feeling" to the story. There are a few questions here on SO but the answers say it's not possible, although the Runtastic iOS app does it (see the "feeling awesome" part):
I'm not using the standard Share Dialog (FBSDKShareDialog) but am implementing my own custom interface as advised in their docs
Has anyone had any success with this? Any thoughts/ideas are greatly appreciated.

xmpp:xep-0077 for iOS gives me errors

I found in the link below the xep-0077 and I added it in my xmpp-iOS project.
https://github.com/buddycloud/buddycloud-iOS-client/tree/master/src/External_Libs/XMPP/Extensions/XEP-0077
Unfortunately I get many errors.
I use the xmpp framework by robbiehanson (https://github.com/robbiehanson/XMPPFramework) and what I am trying to do is to register a new user within my chat app.
Do I have to use the xep-0077 (band-in registration), or are there any other ways to register?
Thanks
Chris

xcode apigee logInUserWithFacebook extra parameter?

I'm using Apigee for my iphone/ipad app.
Like many apps today, mine requires a login via Facebook and Apigee has a function specifically for this in the iOs framework, here's how it's called:
[ApigeeDataClient logInUserWithFacebook:[FBSession activeSession].accessTokenData.accessToken];
As far as my code goes, everything works well up until the above line. I'm receiving the following error.
Response: {"error":"invalid_request","error_description":"missing access token"}
However check out how the function is making the call (from the logs):
Synch outgoing call: 'https://api.usergrid.com/sgfishing/deepseafishing/auth/facebook?ql=fb_access_token=CAADrhKxrQp4BANfZCMuZBdOwUL9nc0H4VzZC1EXVLjABRbcrucTlUgwlKczFinl51GIWyBM5nlZBX1RF84azFAEOfChqN7vgSmvqgwybV8iPU2xjncZB9T5YTdY0pesJkHsSlvOafMhQ6MfIa6qdZCbTYBZCFB2oIPgEnro4runJKcqCy68wZCFQwyIzACVThAC3IEjZADs36hToQxhYZBzAWVhbKlcqJQsroZD'
I would like to bring your attention to this ...facebook?<b>ql=</b>fb_access_token=CAADrh....
I'm not sure why ql= is there, I've checked the definition of logInUserWithFacebook and ql= is nowhere to be found.
Any help would be greatly appreciated.
This is a bug in our iOS SDK. It has been fixed in version 2.0.9 of our SDK (released yesterday).
?ql= is typically used for query language statements see if there is any such code around in your program
This just a tip...may help

FBRequestConnection does not provide UI while FBDialog Does

I am using FBRequestConnetion to post[only text] on the wall. But, the problem there is deprecated class in latest FacebookSDK , which is FBDialog.
So, Is there any other UIComponent in latest FacebookSDK, through which I can achieve the FBDialog Behaviour to post on the wall.
Or I have to design my own UI and use FBRequestConnection.
I'm confused about this too. Looking at the HelloFacebookSample sample from the SDK, that's what I understand:
In the previous SDK, we could display a dialog where the user can customise the message, and choose to post or cancel. I think this didn't require any special Facebook permissions.
Now iOS6 has a nice native dialog, but the iOS5 fallback is to post directly using FBRequestConnection - which just posts directly without any dialog, and also requires the "publish_action" permission.
I guess I arrived at the same conclusion, if we want a nice dialog on iOS5, we have to:
create the UI ourselves (maybe imitating the IOS6 popup) and ask for the new permission
or use the deprecated headers in the SDK folder (not sure I'd go there...)
Take a look at SDK that was just released + this link for a a native UI built on top of iOS6:
https://developers.facebook.com/docs/howtos/ios-6/
You can also look at the updated sample HelloFacebookSample that's included in the SDK that shows how you can post a status update for a user.

Resources