iOS & Google Analytics - How many events to send? - ios

I have an app that allows its users to make YES/NO decisions about a huge number of items.
I want to use google analytics to track those decisions.
Lets say a user's decision takes one second.
When i send data to google every 120 seconds thats 120 Events each time. Do I have to worry about this in terms of app speed, bandwidth, or google analytics policy?
Is there a better way to achieve something similar?

Related

iOS Speech Request Limit

I'm implementing STT (Speech-to-Text) with iOS Speech framework.
Apple's official document says.
Be prepared to handle failures caused by speech recognition limits. Because speech recognition is a network-based service, limits are enforced so that the service can remain freely available to all apps. Individual devices may be limited in the number of recognitions that can be performed per day, and each app may be throttled globally based on the number of requests it makes per day. If a recognition request fails quickly (within a second or two of starting), check to see if the recognition service became unavailable. If it is, you may want to ask users to try again later.
Another document says that a device can send 1000 requests per hour.
Then, if one user exceeds 1,000 requests per hour, other users cannot request it?
Or can the user request 1000 times per person?
I looked up the official document or article, but it was not clear.
I wonder if it is a limit of 1000 requests per hour or a limit of 1000 requests per user.

Extracting screen time usage of the user in an Ios app (maybe with the Screen Time API)

Dear StackOverFlow Friends,
We are having a hard time understanding a concept that relates to the app idea that we are planning to develop. Imagine that we have an app called A. that requires the user's screen time usage information for selected apps like Udemy, Duolingo, and such. Our concept does not require any kind of app tracking or anything else, the only information that we need to acquire is the screen time information of the user. Accordingly, we have found an API namely Screen Time API, however, within the documentations and open topics, we couldn’t exactly be sure that we would be allowed to have such information. In this sense, we will need your kind support directing us around the idea and API.
The app will provide a futuristic, ToDo, and agile-oriented device usage environment for users to track their daily objectives by directly using the screen time information (of the apps, not just the overall phone usage).
Are we able to extract Screen Time information of the user's various apps?
Are we able to use the Screen Time API, no questions asked?
Do we need to create a proposal for the AppStore team that elaborates our idea for the App publishment?
Regards.

What are good guidelines to avoid getting locked by twitter API with a newly created bot?

I have finished creating a bot and got blocked 1 minute after I finally got it to work. The account is now restricted.
this is what I get on my terminal if I try to run the bot now:
tweepy.error.TweepError: [{'message': 'Application cannot perform write actions. Contact Twitter Platform Operations through https://help.twitter.com/forms/platform.', 'code': 261}]
I understand Twitter may restrict new bots for several reasons. I have summited my report to try and get my account unrestricted.
What are good do and don'ts for bots?
In my original bot I was replying every 10s was this too much ? Should I had set a different time frame?
https://help.twitter.com/en/rules-and-policies/twitter-limits
Relevant parts:
Tweets: 2,400 per day. The daily update limit is further broken down into smaller limits for semi-hourly intervals. Retweets are counted as Tweets.
These limits include actions from all devices, including web, mobile, phone, API, etc. API requests from all third-party applications are tracked against the hourly API limit. People who use multiple third-party applications with their account will therefore reach the API limit more quickly.
What happens if I hit a limit?
If you do reach a limit, we'll let you know with an error message telling you which limit you've hit. For limits that are time-based (like the Direct Messages, Tweets, changes to account email, and API request limits), you'll be able to try again after the time limit has elapsed.
10 seconds is too much.

IOS building real time application

Well i am new to IOS development and want to create a realtime application. In my app i want to update data of tableview cell with real time information like we do with Google Drive shared sheet.
I am not using google drive but its an example. In my app i have a tableview which cell should be updated by realtime data. I have thousands of user groups and any member of group with access to modify can edit that data. So i need to reflect real time change to all other users of particular group.
The data can be anything like image, any formula or anything.
Well for that i have googled and found two options but i am confused which one should i go with.
PubNub library
NSTimer
Well i am not sure which one will be best suited for me. I have tried to create a demo app with PubNub but with heard luck i can't do more.
So can so please suggest me which should i choose or is there any other alternative. I am using Xcode 7.3 with swift 2.3
Thanx in advance.
PubNub is not based on Node, however we have many SDKs for over 70+ different languages/platforms, like Node and Swift. The network is a hosted realtime, data stream network (DSN) that the SDKs connect to allowing your app to send and receive messages in realtime around the world in < 1/4 second to 1 or millions of clients.
For more on this, read How PubNub Works?
You can use PubNub for free for up to 100 daily active devices and up to 1 million messages per month (plenty for a demo app).
You would use the PubNub Swift SDK to subscribe to publish and subscribe to some channel to update your app.
Please check out our Swift SDK docs to get started.

Twitter integration the way Klout works

I'm designing a service similar to Klout, this is, the user's twitter account is scanned continuously in order to update some sort of metric which is the added value of my service. For this to work my app needs to be approved by the user, but I'm a little bit confused on what to do next. How I ( efficiently ) manage to keep my service in synch with user's new tweets after he/she has approved the app from the first time?
Thanks in advance.
Two solutions assuming you have a user's OAuth tokens:
Poll the user's friends/followers/timeline everyday and analyze it w/ the REST API. Beware of rate-limit limitations.
Use the streaming API to get this data in realtime and then analyze.
I'm sure you'll want to use #2. Create a listener that receives the push events from twitter and then store it and run your business logic analysis on it later.
The data model you will use and prescience (DB) depend on what business logic you need to run.

Resources