I'm currently trying to make use of the Apigee SDK for iOS but I also have a need to use SSKeychain. Because the Apigee iOS already incorporates and uses this, I get a duplicate Symbol error when I try to include it in my project. Unfortunately the Apigee framework doesn't expose SSKeychain for me to access via the framework either (at least not that I can tell).
Does anyone know how I can make use of SSKeychain and the Apigee SDK? I thought about using the steps here http://atnan.com/blog/2012/01/12/avoiding-duplicate-symbol-errors-during-linking-by-removing-classes-from-static-libraries/ but I don't know if removing SSKeychain from the framework and then adding it to my project would have any side effects.
Thanks
A fix for this has already been pushed to the Apigee iOS SDK repo. You can grab the latest from github.
Here's the relevant commit: https://github.com/apigee/apigee-ios-sdk/commit/a7bd83a8c17f53afb36e29bb251c81305944d61e
Related
I am pretty new to Oracle MAF framework. I want to store a string to iOS keychain and retrieve later. I have searched for a tutorial and still unable to find.
Please share any tutorial if anyone has done this before. Also I want to know whether we can use a Cordova plugin such as https://www.npmjs.com/package/cordova-plugin-ios-keychain directly in the MAF project?
I was able to resolve the problem. I would like to share how did I manage to do. Cordova plugin can be used in the MAF application. MAF app's java code can invoke javascript methods in the cordova plugin. Or we can write a javascript class to do the bridging between MAF app and the cordova plugin.
This is a good tutorial for your reference.
https://blogs.oracle.com/mobile/integrating-a-custom-cordova-plugin-into-a-maf-app
Friends please help me how to migrate dropbox v1 to v2.
My manager gives an old project to me, in this they have used sqlite database for store locally and Dropbox sdk to do backup the files.
But the Dropbox v1 is retired now. i'm in serious trouble now.
My manager is asking either do with dropbox or iCloud?
Please help me?
As Dropbox has made mandatory to use dropbox V2 September 2017, you will have to implement Dropbox V2 API's.
If the project is in objective-C changes are minimal. Instead of delegates which were used in V1, they have provided blocks to the developers. Blocks are really helpful in reducing code complexity as response is returned inside the block.
You can download Objective-C sdk from here:
https://www.dropbox.com/developers/documentation/objective-c
In my case, I had created Dropbox manager. So, instead of making complex changes, I created extension of my existing class and started to replace delegate with blocks provided in V2.
Regarding swift sdk of Dropbox, as far as I know, it is introduced officially by Dropbox in V2 only (I might be wrong here, because i never searched and saw for swift sdk of Dropbox before V2).
To download swift sdk of Dropbox V2, follow the link:
https://www.dropbox.com/developers/documentation/swift
I am developing an iOS app using Ionic Framework and Firebase. I have updated Firebase SDK to version 3.x in my project. What I am trying to do is to authenticate the user with Facebook on a real device. Everything works fine when I test it on a browser. However, whenever I run on a real iOS device, I always get the following error:
This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.
On Firebase, I have already added "localhost" and "127.0.0.1" to my authorized domain list. So I am not sure what to do right now.
For your information, I do not use WKWebView in my project.
Does anybody here can tell me how I can solve this? Please advice.
The error "This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console." only prevents signInWithPopup() signInWithRedirect() linkWithPopup() and linkWithRedirect() operations from working. Every other function, including signInWithCredential(), should work.
I believe that you are seeing this error because ionic apps do not have a real domain, and this is a requirement for the 4 functions I mentioned above.
The solution to your problem would be to ignore the error (it is just informational) and not use signInWithPopup signInWithRedirect linkWithPopup or linkWithRedirect. Instead, use a library for OAuth such as ngCordovaOAuth and then use auth().signInWithCredential(...) (see example instructions for Twitter here).
i have same issue but i solved it by creating new firebase project.
Ok, here is my temporary solution:
I import both Firebase SDK v.2.x and Firebase SDK 3.x in my ionic project. I use version 2.x for Facebook authentication on iOS then I use version 3.x to get access to all new features on Firebase such as Storage and so on.
Hopes this helps.
I'm trying to wrap my head around this and figure out what would be the best approach:
I want to take advantage of all the new features that iOS 6.0 introduced in terms of interacting with facebook - this includes the built-in social framework that allows fast facebook SSO and native post dialogs. This is done fairly easily using the new Facebook iOS SDK v3.1.1.
The problem is that I also want my applications to be available for any non-iOS 6.0 adopters. This made me face a very ugly situation in which I need to create an elaborate social wrapper that would have to be compiled differently (with different FB SDKs) and to run separate code in order to support earlier iOS versions. Because a lot of the Facebook SDK already includes fallbacks and handles a lot of old, deprecated calls to the feed and dialog APIs, I figured that there must be a better way, while taking this in account, to create such a social wrapper.
I guess what I'm asking for here is any clue as to where to proceed from here. If anyone has ever tackled this issue (even in earlier versions of the SDK) I would be glad to know.
Thanks in advance
Weak linking is definitely the way to go here.
The 3.1.1 SDK can handle running on either iOS 5 or iOS 6, all you need to do is weak link the relevant frameworks in your build settings, and change the deployment traget to 5.0 (leaving the base sdk as 6.0).
Of course, you still need to handle the case when the native post dialog isn't available (You can use FBNAtiveDialogs' canPresentShareDialogWithSession: method) and use the SDK dialog instead.
I have experience building iPhone applications, however I'm new to the facebook API for iOS. Does anyone know of a good example of an iOS app that will post to user's facebook wall? I'm trying to integrate this functionality into an existing app that I'm working on. Thanks!
Check out the following open-source project:
facebook-ios-sdk
It's an open-source library to let you post to Facebook from your own iOS app.
They have posted code for a sample ViewController here as well. Unfortunately this doesn't do an explicit wall update, but it does read the users' status and request them to log in. And underneath this you can retrieve the source for the entire demo application:
https://github.com/facebook/facebook-ios-sdk/blob/master/sample/DemoApp/Classes/DemoAppViewController.m#L79
https://github.com/facebook/facebook-ios-sdk/tree/master/sample/DemoApp
You can check our documentation for iOS SDK 3.0.8 here at
https://developers.facebook.com/ios/
Download the SDK package here at
https://github.com/downloads/facebook/facebook-ios-sdk/FacebookSDK-3.0.8.pkg
Then try the samples/ folder for the existing samples.
Specially you can look at Scrumptuous and Hackbook for latest examples.