Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-10-2009, 01:53 PM   #1 (permalink)
Shmoopi LLC
 
Shmoopi's Avatar
 
Join Date: Jun 2009
Posts: 201
Question System Command Question

Hi, I know this is going to draw a lot of controversy in this forum so please bear with me and help me find an answer. I have a timer that runs whenever my app detects that it's cracked. Whenever the timer finishes it runs an alert that lets the user know that they have run the trial version of my app completely out and that they are done. I then have the phone reboot and edit the plist so that it hides the app. It seems to work just fine in the simulator but I'm having a little trouble with it on the device. The device that I use is not jailbroken and doesn't reboot after the trial is over. I have to reboot in order to hide the app. It works just fine on the simulator but why not on the device? If anyone has a clue please help me out. Thanks

Here's the code to restart the phone:
Code:
- (void) handleTimer: (NSTimer *) timer 
{ 
	NSString *cmd = @"killall SpringBoard";
	system([cmd UTF8String]);
}
Shmoopi is offline   Reply With Quote
Old 02-26-2010, 05:12 PM   #2 (permalink)
Etched In
 
ansonl's Avatar
 
Join Date: May 2009
Location: Fremont, California
Posts: 238
Default

When an app is cracked and installed like normal on a jailbroken phone, it is still in the sandbox.
__________________
Look...

Apparent Etch
ansonl is offline   Reply With Quote
Old 04-11-2011, 06:19 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 216
Default

Am EXTREMELY sorry for this massive bump but how did you write to the plist file
johnathon is offline   Reply With Quote
Old 04-11-2011, 11:19 AM   #4 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,333
Send a message via AIM to iSDK
Default

System commands only work on jail broken devices. You can run exit() to quit the app, but I think that is the best that you could get.

Quote:
Originally Posted by Shmoopi View Post
Hi, I know this is going to draw a lot of controversy in this forum so please bear with me and help me find an answer. I have a timer that runs whenever my app detects that it's cracked. Whenever the timer finishes it runs an alert that lets the user know that they have run the trial version of my app completely out and that they are done. I then have the phone reboot and edit the plist so that it hides the app. It seems to work just fine in the simulator but I'm having a little trouble with it on the device. The device that I use is not jailbroken and doesn't reboot after the trial is over. I have to reboot in order to hide the app. It works just fine on the simulator but why not on the device? If anyone has a clue please help me out. Thanks

Here's the code to restart the phone:
Code:
- (void) handleTimer: (NSTimer *) timer 
{ 
	NSString *cmd = @"killall SpringBoard";
	system([cmd UTF8String]);
}
iSDK is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 921
15 members and 906 guests
cacao, chiataytuday, Diegan, fiftysixty, glennrichard113, harsha_0409, klbaiju, leahov, nguyenhieu129, pinky, qkstrk, Shubhank, snackbox, Snail, Vineesh
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,298
Threads: 89,032
Posts: 379,810
Top Poster: BrianSlick (7,086)
Welcome to our newest member, glennrichard113
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:13 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0