Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to create iPhone app which is in background then it will track record of all app which user opens.
i.e when my app is in background and user opens music,safari,photo app
then i want record like, music,safari,photo.
can we write names in file ?
This cannot be done. Apple is very restrictive when it comes to things like this.
The way I understand it is this:
Apple limits the API to your app (you can't affect other apps or the OS in any major way-this stop malicious behaviour)
Your app is 'sandboxed' meaning it's on it's own, it can't see if Safari has any pages open, or monitor what game you just exited out of or anything like that. Your app is in effect, isolated.
You can write anything to a file, just getting what you want to write (in this case) is not possible
tl;dr. No, your app is in it's own little 'sandbox' it can't monitor anything but itself, Apple doesn't allow it nor do they provide any programming library to do so.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
So the story is:
1) I have video files on a server.
2) I allow users to download these files and view them from inside the app.
Problem:
I don't want users to find these video files from outside the app to prevent them from being shared. Because the video files should be paid for to download.
How to do this?
Note: hiding the files is not enough.
Thanks.
No other app / browsing one can access the sandbox of another app , if you want to protect your content then store the downloaded videos in a directory where you add this attribute
func createDirectory(atPath path: String,
withIntermediateDirectories createIntermediates: Bool,
attributes: [FileAttributeKey : Any]? = nil) throws
NSFileProtectionComplete
The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting.
See for example the iOS Programming Cookbook:
This is the strongest protection that you can give to your files. By doing so, your
app will be able to read from and write to this file as long as the device is
unlocked. As soon as the device is locked, you won’t be able to read from or
write to the file. When you use this type of protection, free or commercial file
system explorers will not be able to read the contents of your files, even if the
user’s device is unlocked.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm an iOS developer with experience in C/Obj-C and Swift. I currently finished a weather app that displays current and forecasted weather, with the ability to alert you when certain weather conditions change. This is done using the background fetch feature in iOS, which periodically refreshes weather data in the background to see if your criteria has been met, then sends you a local notification.
Problem: the background fetch only happens at the command of the OS. You have no control and I'd like to be able to check more often to alert customers sooner when the weather is changing. I'm fully aware that the solution is implementing my own server with a program that checks remotely say every minute, then sends a push notification to the customers phone.
My current implementation on the iPhone is:
User creates alert with custom criteria (example: tell me when the wind at city X goes above 10mph)
App downloads weather from web XML api
App parses weather data into custom weather objects
App compares weather data to users custom alert
App alerts user if criteria was met
What I want to do:
Send the alert that the user created to a server and store it
Have the server do all the work of downloading/analyzing if the criteria was met for each stored alert
Send a push notification to the users who had criteria met
Question 1: What would this overall implementation on a server look like?
Question 2: What language would each part of the implementation be written in? Currently I have everything working in Swift but I'm gonna go out on a limb and say that won't work on a Linux server
Maybe you could store your criteria on the client and use a web API to fetch the weather. This could eliminate your dependency on the OS and give you time to study up on building a server.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How do I use the user's native Facebook login in my app?
When I try to authenticate, it loads a web view instead of using their native login.
The SDK will use Facebook's app to login if it is installed. A web view is used when the native app is not available. Take a look [here], it is fairly straightforward: https://developers.facebook.com/docs/facebook-login/ios/v2.2. Just be sure to check the prerequisites, as it is fairly easy to forget about setting up your app's .plist file.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am making an App where on the first screen i have login and register buttons. When i click on register it will ask for user finger prints and then user details. From here I want to store finger prints and user details in database.
And when he clicks on login. Its will open biometric scanner if finger prints matches the database finger prints he will move forward..
Is there any way is it possible to store finger prints in database. If so please give some reference links that guide me towards my goal..
Thanks in Advance
You can not access the fingerprints directly. This is restricted by Apple on purpose (privacy protection). So you will not be able to store them in your database neither.
Touch ID
Your app can now use Touch ID to authenticate a user before accessing some or all content in your app. Fingerprint data is protected and never accessed by iOS or other apps. [...]
Source: iOS 8 for Developers by Apple
Authentication is still possible using the API, but that will only return values like Authenticated and Not Authenticated, with no information about the fingerprint itself.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on creating ios app for iphone where users have an access to my wordpress site can only login to. My login address is www.example.com/wp-login.php How should I implement it? I am a beginner in ios development.
EDIT: The app will only show user's info and previously submitted forms. It will not show any other content from the website. Once user's are authorized they will be able to fill out new form and submit or see their previously submitted forms.
It depends what you want to do.
Normally we should not display only a Website content within a WebView, for this you can Use Safari and add a Basic Authentication to your Website.
Apps normally fetch content from a API on the Webserver to retrieve Content, parse the Data and then display it natively.
For Wordpress you can write your own Plugin for that, or use an existing one.
This for the Content:
https://wordpress.org/plugins/json-api/
And this Plugin provides authentication support for WP:
https://wordpress.org/plugins/json-api-auth/