Discuss Wake iphone like MobileMail.app does? #Bash Script at the iPhone Developer Exchange - Hackint0sh.org; Hi there,
i search for 3 days now to find a solution.
I wrote a ...
-
Wake iphone like MobileMail.app does? #Bash Script
Hi there,
i search for 3 days now to find a solution.
I wrote a simple Bash Script so use Relocatable all 15 minutes.
Until the iphone is not in sleep it work like a charm.
But if it in sleep mode...the whole script stop working.
Now i tried pingwifi but doesnīt work (Maybe cuz 2.2.1??)
So the big question...is there any way without Insomnia?
I donīt find a solution to wake the iPhone "on Demand" or every 30 Minutes or so like MobileMail.app does.
PLEASE help me...i canīt sleep because i donīt want to accept that there is no Way to do it.
Thank you
Greets from Germany
Dennis
-
-
You can use insomnia to wake the iphone at a certain interval. Check here: iphone-insomnia - Google Code
Though this would probably require you to create a small application instead of a bash-script.
-
-
Hi,
i tried to figure out how this works.
Sadly im an C/ObjC noob.
Did anybody made a little prog that use this code and wake the Phone on a specific Interval?
NSCalendarDate *nextWake = [[NSCalendarDate calendarDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:25 seconds:0];
CPSchedulePowerUpAtDate((CFDateRef)nextWake); // From AppSupport framework
Have no clue how to implement...
Who can help me?
-

Originally Posted by
katanapod
Code:
NSCalendarDate *nextWake = [[NSCalendarDate calendarDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:25 seconds:0];
CPSchedulePowerUpAtDate((CFDateRef)nextWake); // From AppSupport framework
That code is complete. Just enter it where ever needed and compile it with the AppSupport framework.
I use makefiles, so I just add "-framework AppSupport" to my LDFLAGS. Have no idea how to do it with Xcode, probably some click and done.
-
Similar Threads
-
By jaybee16 in forum AppleTV 1
Replies: 1
Last Post: 07-17-2009, 04:00 AM
-
By raziiq in forum iPhone Developer Exchange
Replies: 1
Last Post: 07-16-2009, 05:07 AM
-
By davidhperry in forum General
Replies: 4
Last Post: 01-14-2008, 05:46 AM
-
By speci in forum General
Replies: 3
Last Post: 12-19-2007, 08:58 PM
-
By elbarlo in forum General
Replies: 4
Last Post: 07-31-2007, 08:17 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks