iPhone: To develop log module persistently and use for upload [closed] - iphone

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
Is there a log sample developed in any of the iPhone project? I am developing an iPhone application and we want to have logging string stored line by line basis persistently somewhere and use it for upload to our server etc. it should keep logging behind the scene when my application does syncing under thread etc. I don't know how to develop this efficiently. Could someone please share me link or samples?
Thank you.

NSLogger
NSLogger is a high perfomance logging utility which displays traces emitted by client applications running on Mac OS X or iOS (iPhone OS). It replaces your usual NSLog()-based traces and provides powerful additions like display filtering, image and binary logging, traces buffering, timing information, etc.
NSLogger feature summary:
View logs using the Mac OS X desktop viewer, accept connections from
local network clients (using Bonjour) or remote clients connecting
directly over the internet
Online (application running and connected to NSLogger) and offline
(saved logs) log viewing
Buffer all traces in memory or in a file, send them over to viewer
when a connection is acquired
Secure logging (connections use SSL by default)
Advanced log filtering options
Save viewer logs to share them and/or review them later
Export logs to text files
Open raw buffered traces files that you brought back from client
applications not directly connected to the log viewer

Related

Synchronizing game between website and mobile app [closed]

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 2 years ago.
Improve this question
I want to develop a game where you go to the website and open the mobile app corresponding to it you scan the QR code on the website and synchronize the website and the app.
So the game will be on the website on the screen and the user will move their mobile phone and depending on how they move their hand the game on the website will react.
So the game will be developed with unity, is there a way to synchronize the website and app this way continuously without delay? and how?
I know the question is vague but it's not something within my expertise i just wanna know where to start my research, few keywords would help a lot. It's a new project in a field i haven't worked in before.
I want a game in a website to be in sync continuously with variables sent from a mobile app without delay.
This is a very unspecific and open ended question, to which you cannot get a good answer based on how many open variables there are. So basically you want to make a game that runs on a website, and then want to make a mobile app that is able to communicate with the game.
The only way to do this is to use a server with a backend-api, which you can then fetch and push data from and to your webgame/app. Basically the server is your communication tool between webgame and app.
You need to make an app though which serves the mobile phone's orientation data to the server. How you do this and what kind of server software is best to use fully depends on what your skillset allows for, what the specific constraints are and what parts of the project already exist (what framework does the app use (react native for instance), what platform does the app run on...).
I can only tell you that this is by no means trivial. Let alone making an app is a ton of work, but writing a backend for the server, an app and a game that runs in a browser is a huge project! I would highly suggest you perform more research on server-client communication and app development, because the scope of this project is based on how you phrased your question probably far bigger than you imagined.

How to hide documents folder to 3rd party apps like PhoneView? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Today I downloaded the demo version of PhoneView app and for my surprise I'm able to change the contents in the files that resides in Documents/Library folder with this PhoneView app.
I want to restrict users from accessing files in my app and want to make these files invisible to these 3rd party tools ? Is there a way to achieve it ?
Restricting access to files is not possible. But if you want to prevent people from viewing the files, you can encrypt them. This might be helpful (the CommonCrypto part). You would need to generate an encryption key (I think you can use CFUUIDCreate for this) and store it in your app's keychain.
PhoneView and similar apps access the iOS device file system directly to the extent that they can access, which is the same as iTunes, so they are able to browse and modify all media that is accessible by iTunes on your device, including music, videos, apps, and all the data they create.
Basically, there is no way you can prevent them from seeing your app data, because they do not respect any visibility keys and just list everything there is in the file system.
So if you are really desperate to hide your app data from users who go snooping around the contents of their device file system, you'll have to encode all the files in some unreadable format, that way users will still be able to change and delete the data, but won't be able to make sense of it.
Short answer: there really isn't much you can do to prevent this, and I would strongly recommend just leaving your app data as is.
Maybe the only way is encode and decode your files which you don't like others see. The Documents folder on iOS is as same as the Documents of OS x , all app or people can read it.

Is there any app that i can upload images instantly from phone to computer? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Chrismas is coming,I am so excited caz I will go to Maldives.the thing is I don't want to take my computer with me,and I am sure that I will take many photoes.Is there any app that I can just share my images to computer without using USB?Thx!
If you have an Internet connection, the Dropbox works well, as do others like SugarSync.
If you don't, then there is this app:
https://itunes.apple.com/us/app/wireless-transfer-app/id543119010
That transfers via WiFi (I have nothing to do with this company by the way)
I'm sure there are plenty of other bluetooth or WiFi capable transfer apps available on the App Store that'd help.
(Finally, if you do have Internet access, and both a recent iPhone and version of iOS) there is also Apple's own Photo Stream, which works using iCloud.)
use dropbox? you can put the images on dropbox and then see it on de the computer inmediatly
DropBox for Android/iOS
DropBox is what you need, you haven’t specified what phone do you have but DropBox apps do come in for Android and iOS (I’m not sure about others).
You synch you gallery, camera upload or any other folder you like with it and it will keep uploading your pictures documents automatically to your DropBox folder in your computer,all you need is an internet connection.
Try Dropbox.
Install it on your computer and then on your android/apple/windows8 phone and it will give you the option to automatically upload phone pictures to your dropbox folder. You can then find them on you computer in the folder dropbox creates.
xCloud is recommended, which is an app to remotely control your pc and manage your files, or even without network.

Most cost effective way to target multiple mobile platforms [closed]

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 9 years ago.
Improve this question
I have been given the tasks of speccing a mobile application, which will need to run on approx. 1000 devices. These devices already exist, and consist of iPhones, BlackBerrys, Androids, Windows Mobile and Netbooks. The application will have simple reporting capability, and a collection of forms.
Anyway, the obvious solution would be to develop some browser based solution, although given the occasionally connected nature of the devices, there's a potential for data to get lost / not saved.
So instead of creating a complex application for each platform, I was thinking we could build what is effectively a form generator, with basic offline storage capability (text files), designed to run on each device, and have the device generate a form, based on for example an XML file that it could request from a server somewhere, resulting in minimal specialist development costs, and the ability to run most of the logic from the server end, with the devices being dumb clients that render forms and upload the data when there is an available connection.
Anyway, my question summarised is, how have you made the decision on supporting multiple devices for your application. Is this always an unavoidable problem, and you just have to make the call to support 1 or 2, or pay for developers to write code for each platform, or alternatively supply pre-installed devices to the company?
Many thanks
James
Have you considered building a web-based HTML5 application with the ability to store data locally etc. so it can work offline too? This is probably the best way to build portable apps as long as you don't need to take advantage of specific features of the phone's API (e.g. the GPS). This would be an ideal way to do an application like the one you describe.
I have not used this so cannot vouch for it in any way however the RhoMobile project looks worth investigating
You may also want to check out the following SO questions
Technology to write iPhone, BlackBerry and Android phone at the same time?
Is there a multiplatform framework for developing iPhone / Android applications?
Since your application mainly involves UI forms, you can go for J2ME development that can give you device general application to an extent. But yes, writing a full fledge application that will work great with each device is a big issue and you will need to write device specific application for optimal leverage of the device.
There are already many products that do what you want. If not, as was mentioned RhoMobile (http://rhomobile.com/) is an option.
You should really browse the different app stores out there, there are a number of options:
Canvas (http://www.gocanvas.com), eXzact (http://www.iformbuilder.com), Pronto Forms (http://www.prontoforms.com/). In addition Google Code has ODK (http://code.google.com/p/open-data-kit/wiki/ODKCollect)
Good luck! I've worked on several projects where we decided to just build a builder of some sort (MDA, forms, etc.). Building the builder is always more difficult than you expect.

Intranet web sites via VPN [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have created an App that gets data from Web Services on an InTRAnet web site. In order for my App to see these sites I have to turn on the VPN that is setup for our company intranet. So when I turn on the VPN it asked for authentication. That has to be turned on before my App launches because I know of no way to access the VPN via code (Is there anything in the SDK for working with the VPN?)
The problem is that once my my App launches it needs to authenticate against the intranet web site (authentication can't be turned off for security reasons).
So in this scenario:
User turns on VPN, enters network credentials to get access to internal network
User starts App that ask for network credentials (because web server asked for auth)
So as you can see this is quite a pain (having to enter network credentials twice).
Anybody have any ideas on how I could get around this?
BTW - I'm using ASIHTTPRequest in my code.
There isn't any way around it. You can't roll your own in-app VPN provider. The best you can do is to check if the user is currently connected via VPN and if not, provide some feedback that indicates they need to turn on VPN and how to do it. Until it is turned on, disable all app functionality.
As of iOS5 the process becomes a bit better though. Now you can redirect the user directly to the settings page via URL scheme. To get to the network settings, you would use this scheme:
[NSURL URLWithString:#"prefs:root=General&path=Network"]];
you might wanna look at a subject called "VPN On Demand" on ipad/iphone it works with many providers and i think it should do what you want.