Building an IOS app just using a Webpage - ios

I'm new to IOS development and wanted to make an app for learning purposes. My idea is that I have a Single Webpage that has a live count of how many people are in the gyms on my University's Campus.
How can I pull data from that webpage and show it on my app with a little bit of arithmetic such as :
Database how many people are usually in the gym at a particular time and then give predictions.
let users chose a preferential gym and give them notifications based on their regular check in times
if the rate of entry in the gym is high, then notify users to avoid going then. and vice-versa.
I don't want answer to all the above, but if you could give me a heading, that would be awesome!
EDIT 1:
The webpage looks like this : https://studentaffairs.psu.edu/CurrentFitnessAttendance/

Your question is too vague for a specific answer.
You need a back-end API into your web page. It could be as simples as a PHP or Python script that responds to http get requests and returns JSON data with the statistics you want. You'd then write your app to issue the appropriate query, parse the response, and display the results to your users.
Notifications would be more complicated. You'd probably need to set up remote notifications, which would require support on the server side and registering with Apple' remote notification service.

Related

Firebase chat backup/export like whatsapp in SWIFT

i implemented a chat app in swift using firebase real time db, there user can send images, emojis and Text.Now i have a requirement of export chat or get the conversation's backup with media and text as per whatsApp.help me to solving it out.
While Firebase offers a backup for the Realtime Database, this doesn't fit your needs here, since you'll want a per-user export of the data.
Since this is specific to your application, you will have to code it yourself, just like the good folks at WhatsApp have probably done. It should be a matter of iterating over all data sources for the user, getting the data through the relevant API (that you're already using to display that data), and then writing to a local file). You can do this either client-side in your Swift code, or server-side on a server you already may have, or using Cloud Functions.
If you're looking for some inspiration for the latter, there is a sample repository that shows how to clean up a user's data, based on a set of wipe-out rules. You'll need to significantly modify this example though, so I'm not convinced this will be less work than rolling your own from scratch.

Database for Real Time Queries/Push Notifications

I am looking to build an iOS app and website that work 'together'.
What the plan is for each:
On the iOS side, it will be pushing information to the server in the form of a post. The users will then be able to vote up and down on the posts as well; which also implies they will be able to see the other users information (in real time).
The website will be viewing this information in real time and using the posts. If a post gets enough down votes the server should tell the website and apps to remove it.
I have experience with SQL. Although SQL does not seem to be the appropriate server choice - for what I want to do - given my experience with it. (I could definitely be wrong.)
I would like to host the information myself, however have heard that Parse is good about holding information for iOS apps. I just don't know whether it gives you enough freedom to work with websites as well.
TL;DR: What kind of database/datastore should I use for a real time queries that allows for push notifications?
All suggestions are welcome. Thank you.
Try Using FireBase
firebase.google.com
Documentation

App Store price drops and updates info

I found a couple of websites which somehow collect App store price changes, updates, etc.
My question is - where does websites like:
148apps.com
appdropp.com
etc.
get their info? I signed up as Apple affiliate and found that I can request apps info using the search or lookup APIs. But I can't send thousands of requests to check all apps day by day, it seems to be a huge task.
Is there any other available option to get this info?
They may be using this, Enterprise Partner Feed
It looks like it would provide what you're looking.
They are using EPF feed, provided by Apple.
You can check their Python tool to import feed to database.
You can also take a look on websites like:
http://www.apptweak.com, or http://www.appsocean.com
If you know PHP (for example), you can write a simple spider to grab price drops and updates.
Just read more about PHP CURL library.

How to retrieve the list of top 1000 games in the iOS App Store in real-time

I'd like to retrieve the list of top 1000 apps (specifically games) in the iOS App Store in real-time. This information is public (at least the top 300), but Apple doesn't offer any API or automated way to fetch these lists. Does anyone know a good service for this?
I've listed similar topics in forums below, as well as different useful resources. Most of these help you track your own applications, but I'm interested in following trends for ALL apps in the App Store.
Thanks!
Similar topics:
How can I use Appstore API to get top100 list? What is the common architecture to build a appstore application website?
https://stackoverflow.com/questions/2689711/itunes-app-store-api
http://www.cocos2d-iphone.org/forum/topic/13167
Solutions:
http://www.appfigures.com
http://majicjungle.com
http://itunes.apple.com/rss/generator
There appears to be no documented public API, but you can (currently) still get at the data.
You can use wireshark (or similar) to figure out the URL sequences and the user agent that iTunes on a Mac or PC uses to get all the popularity sorted pages that it displays when manually clicking through the pages. It's all (currently) done in plain HTTP. You can get 100's of pages for many 1000's of apps this way. Then parse and decode the XML returned for these URLs to get the app names displayed on each page. A bunch of perl scripts driving wget or curl might work.
Note that the URLs, user agent and the format of the XML returned often changes when Apple updates iTunes. So you will need to periodically re-adapt your retrieval mechanism.

Is PubSubHubbub automatically supported for every Feedburner feed

I read here it's an option which must be turned on, but maybe it's changed since then.
I hope someone from Google comes here and respond to this, but I believe all feeds have the "discovery" part in them, which means they all point to the google hosted hub, however, the realtime approach only works if the publisher pings the hub as well when its feed(s) have been updated, and this can be done with Pingshot.
This is the behavior we have seen at Superfeedr for these feeds.
I've been working on some PuSH things recently, and since FeedBurner is still one of the main players out there it's worth noting that at least as of today, what I'm seeing is that any feed, regardless of the Pingshot setting, will publish the rel=self and rel=hub link tags, and a subscriber can subscribe to the topic using that information, and will receive webhooks on the callback when content changes. Basically, yes PuSH is supported for all Feedburner feeds. I have not yet found a Feedburner feed that doesn't publish content changes through the hub if there's an active subscription.
It is true that realtime PuSH is only going to happen if something pings Feedburner when new content is available in the source feed, but the documentation that I've seen if very unclear about the behavior in general. It actually makes it seem like PuSH is tied to Pingshot, which, as I just said, doesn't seem to be the case.
A couple additional bits of information:
The leases I'm getting for the feeds I've tested with are 5 days
Even if/when feeds are coming served over HTTPS (example), the rel=self address is not HTTPS, so the PuSH topic is potentially different than the feed address you may have captured or be using for polling purposes.
There are some interesting and useful pages on the hub's web interface (example), though I'm not sure why some things that seem like the should have data do not, so use with caution.

Resources