Creating site in Django + iOS compatibility - is this a good approach? - ios

I am looking to create a basic site which allows users to login (either through email or facebook authentication) and post their photos for other users of the site to comment on. Much like with like Facebook, I wanted posting, deletion and viewing photos/comments to be possible through an iOS app and through the site itself.
I have been carrying out a bit of research myself, and I can there being the following options:
Create a site in Django, and use the API framework Tastypie to allow the user to use the get/post/delete commands from an iOS app
Create a site fully in Django, and make this compatible with iOS devices using PhoneGap
Do you have advice on what approach to take - and whether there are alternatives?

It all depends. Do you need hardware functionality that only ios can provide?? If not it would probably be easier to create a web api and build a mobile optimized version of the site. This would let you build your business logic quickly in python. you could them build the client using jquery. This would provide the advantage of being optimized for any mobile device.

Related

How to deep-link directly to an app in Okta Mobile on iOS

We can send a link to someone formatted as okta:// and it will launch the Okta mobile app, but I would like to know if there is a way to deep link to a specific app in Okta mobile?
Something like okta://appname
or better yet would be okta://appname/specificpageinapp
I have tried all sorts of options, but none seem to work.
The Okta Mobile app doesn't support deep linking as you described.
You may be able to deep-link directly into native iOS applications using a similar URL Scheme (exampleapp://page/example). If the native iOS app is integrated with Okta, this might work as you expect.
However, it sounds like what you might actually want to do is link directly into the embedded web view of a web application in Okta. If that is the case, I suggest reaching out to Okta support with a feature request and the use case that you're trying to solve, so that it can get the attention of the product manager for the Okta Mobile app.

Linking Django-oscar to native IOS app for shopping

Currently i am using django-oscar as my self hosted ecommerce solution to allow for merchants to have standard abilities such as uploading products, inventory management, etc.. on the backend.
The marketplace however will be on our native IOS app (currently live). We are thinking of using django-tastypie to create the API and transfer data back and forth from the admin to marketplace(on the app).
A few questions i have:
How would we go about creating the checkout process, shopping carts and etc? Hosted ecommerce solutions such as Shopify have IOS SDKs to handle shopping carts checkout and etc on the IOS side of things but django-oscar from what I see doesn't have such SDK.
How would even sending the information back to the admin dashboard(from the IOS app) to update our merchants orders, inventory management, etc work? django-oscar only seems to cover how to do so with web based apps but not with a native IOS app.
Nothing around the web seems to explain this particular scenario at all, and I was hoping someone in the development community could lend some insight into this arena, and connect the dots.
*we are using swift for our IOS app
Thank you!
I'd recommend checking out Django oscar API, I think it does exactly what you need!
creating api is the way to do it. django-oscar is having schema for cart that can be reused. With django rest framework, we can easily write the apis for add to cart, delete from cart etc. I would recommend django rest framework (http://www.django-rest-framework.org/) instead of django-tastypie. django rest framework is easily understandable for a django developer, because it is more django like than tastypie. rest framework has web browsable api as well.

Restrictions of using Social framework for a Twitter app?

I'm looking into making a new app which integrates heavily with Twitter, and I'm trying to find out if the Accounts and Social framework is capable of that.
It's worked in the past for basic calls, but it's not stated anywhere what its limits are - can it be used for a full-blown Twitter app?
Integrating with Twitter manually, I know involves asking the user to sign in, and means a cap of 100k tokens. Are there any caveats of using the Social framework instead?
You can use the API without users signing in to view most everything. Read the docs: https://dev.twitter.com/rest/public/search

Gigya Gamification SDK Tutorial for iOS Application

I want to include Gamification feature in my iOS app. want to achieve it through Gigya SDK.How is it possible? Is any good tutorial available for it?
The client-side gamification plugins (achievement, challenge status, leaderboards, notifications, user status) are only available for use within a web browser through javascript.
While it should be possible to include a web-view to display any of these plugins from inside your mobile app, most of these plugins do not make sense to use in a mobile context.
If you are interested in pursuing this functionality then you can include a web-view which hosts the web pages that load the gamification plugins, and then sync the web-view session through the use of the GSWebBridge class. Gigya has documentation on how this can be achieved with sample code.
If you are looking to award custom actions that are performed from within your app. This can be accomplished by making calls to gm.notifyAction to the Gigya API from your iOS code.
Other than that, if you are looking for a more out-of-the-box solution, then you should contact the support team at Gigya and have them file a Feature Request for you. Gigya doesn't currently offer an out-of-the-box solution to accomplish this, and there is no tutorial because of that.

iOS 6 Twitter share without using system account

On a current project I would like to let a user that does NOT have a Twitter account setup login and tweet. Use case: this area of the app is being used by many different end users as part of a check-in process. It is not their personal iPad, they just use it for about 10 minutes to check-in for an event. During that check-in process I want to let them share to FB and Twitter if they choose.
I was able to accomplish the Facebook share without using the system account using Facebook's presentFeedDialogModallyWithSession API, which works great. Is there a similar API in the Twitter SDK? Is there another way I could do this that leverages the Social or Twitter framework?
Recommendations greatly appreciated.
You cannot do this with the built-in twitter SDK. You will need to use the "old" way of doing this, which is via oAuth or xAuth. A good framework for this can be found on github called FHSTwitterEngine. You will need to make your own UI for what you do with twitter itself, but it handles the login/authentication for you as much as possible.
Also this page may be useful to find other 3rd party frameworks (that is updated by twitter themselves) if you need to go outside of their regular SDK and the above does not get you what you want.

Resources