I want to build web service in Rails 3 and iOS app to work with this service.
I need simple thing. User when first time open iOS app, get login screen. When is logged in, iOS app can send and get requests.
I already used Devise for authentication on Rails, and found RESTKit for iOS to map objects and use RESTfull web services, bit I didn't found anything about to confirm to work together.
My question is, what is the best solution to use on both sides, iOS and RoR to make this to work?
Take a look at what I did for the same setup (IOS device <=> Rails webservice).
Related
I'm new to mobile app development, I've been tasked with making an app and so I'm now starting my voyage of discovery. I am coding the app in Visual Studio 2015 with Xamarin using a Mac Book Pro as the client for testing, all our data is stored in a database in our Azure portal. The app I am making is for iOS.
I've read the documentation but I'm getting stuck in certain areas and I think it's down to not understanding what is needed based on conflicting documentation or my own failure to grasp the concepts outlined.
All I am looking to do at the moment is have my app grab data from my azure database and display it in a list/table.
The steps I have taken so far are:
I have created a very basic app within visual studio with a
storyboard and a navigation item that points to a table view(where I'd like my data to be shown).
I created a Mobile App in my Azure account(as per documentation).
I have set the above mentioned mobile app to use my current existing database and supplied it with the username and password which all seems to be ok.
I am now at the point I need to get my app to talk to this mobile app and grab some data from my database. The todo example is ok but it's not quite enough to get me up and running or more specifically it's not in quite the right context for my setup and I think it's causing confusion.
There seems to be a few ways to set the project up for data access but I'm not sure what would be best.
Can anyone assist?
You are nearly there.
Instead of connecting directly to your database, you connect to your mobile apps API which then connects to your database, handles your request, and sends the data back to your app. You need to code this backend first so it is able to handle your requests. Take a look at this tutorial, it is really good :
https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-dotnet-backend-how-to-use-server-sdk
You will access your Azure Mobile App with the Azure Mobile Client SDK nuget package.
A complete guide to do this can be found here: https://developer.xamarin.com/guides/xamarin-forms/web-services/consuming/azure/
There is also this podcast: https://blog.xamarin.com/podcast-building-connected-apps-with-azure-mobile-apps/
I have got a web app written in Rails running on Heroku, using Devise as the authentication system. It is fully responsive and works well when pinned to Homescreen.
However I would like to put it in as a native iOS app, using UIWebView. In order to get more out of the experience, I would like to add push notifications.
What is the best way to call a Push notification, without breaking the webapp version?
Thanks for your help!
I don't know this question is a good question or dumb question, but I research on SO from last 3 days, only this link I am able to see. And in this link I am not getting any solution for my Issue.
My question is How to verify my mobile number with a missed call. I got from some answer, have to use "Dial2Verify" API. But no one can said "How to use that API" in iOS mobile application through coding. I follow Dial2Verify site for more information, but its only for PHP developer.
My requirement is: I have a call button on my app screen, when I pressed that button, that method will call to Dial2Verify API, And give a missed call to Dial2Verify API and after register Dial2Verify will send that API key/ Mobile number to my App Server, Then App server will check the mobile number is registered or not, if register then it directly go to Home page off App otherwise stay on that Login page.
I would suggest use of mOTP API. (MOTP.in )
Again a service by dial2verify, but it is more suitable for app integration as it supports 200+ countries.
A clever alternative to SMS otp.
At the core it's a 2 step process.
1 sending mOTP : you would be required to call a remote URL from app ( which would send missed call otp to end user )
Step 2: you are required to call another URL from app to cross check otp entered by user.
There is a flow demo available on mOTP website.
Do share the code you build so others can be benefited.
You can probably use a service like https://checkmobi.com/ . Basically they have available 4 validations methods: SMS, IVR, Missed call (the one you need) and another one called CLI.
You can check how each method is working here: https://checkmobi.com/documentation.html#/overview
Also they have available a iOS and Android SDK for mobiles and quite good pricing model for startups.
I am developing an iOS application and I am integrating the ShareKit 2.0 project. I want to share content via Facebook and Twitter. Both of them require to create an application on their platform. Everything at this point is ok.
The problem is that as the application in under development, we don't want it to be visible by anybody that is not in this project, so we can't publish content on our facebook/twitter accounts visibly for external people.
Facebook supports a sandbox environment where the app admin can allow just certain users to use the application, so only those users will be able to access and view contents related with that app. And I am looking for something similar on Twitter, but I can't find it.
This is a very hard problem, when you don't find out if this is possible or not, because you never know when you should stop looking for the answer and decide it's not possible. So here I am, asking to SO gurus: is there any sandbox environment for Twitter so we can develop and test our applications?
Thank you very much!
Ok, as I received no answer for this question, I will finally deduce that there does not exist such a sandbox environment for Twitter.
However, I "solved" my requirements by setting my testing account in private mode (I didn't know about this because I rarely use Twitter). Right now this will do the trick, but of course it's much worse than the Facebook sandbox environment.
Apparently not:
https://dev.twitter.com/discussions/1238
#episod Taylor Singletary
There are unfortunately no sandboxes for this kind of activity. It's best for automated testing to not actually hit the API but instead to mock it out.
I recommend you just create a dummy account for testing. I don't know any other way.
Have you tried http://twitsandbox.com
twitSandbox is a web application to support creating applications using the Twitter APIs. It actually processes the methods of almost all and you can confirm what kind of response receives.
Hoping someone can help me out. If I'm developing a Rails 3 app, but later would like have a mobile version later down the line, whether is iphone/bberry or anything else. Does this mean that the mobile apps will be developed from scratch or will they utilize the existing infrastructure somehow?
Does anyone have experience with this?
Thank you!
It depends on what type of mobile app you're talking about. You can create either:
A phone friendly version of your web app
A native app on the platform of your choice (iphone, bberry, etc)
If you go with #1 all you need to do is create phone friendly versions of your views. But your users will need to use the web browser on their phone to view your site. An example of this is www.engadget.com versus m.engadget.com. The latter is just the engadget website optimized for viewing on your phone.
If you go with #2, at the very least you'll need to create a native client app on the platform you select. However, if you design things right you can leverage much of the functionality that's already in your website.
Take twitter as an example. You can use the twitter website to use features of twitter or you can use a native iphone app like twitterific. The iphone app (probably) uses some twitter API to access functionality that's the same as when you use their website.
You will just need new views for mobile version.
You will need to probably output the data in the form of json or xmls if it is a native app so you will need to modify your active controllers. If it is web app or web page then you will need to modify your views to make them mobile browser friendly.