Discussion Forums  >  Suggestions, Ideas, Wish List

Replies: 9    Views: 105

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
06/23/12 01:09 PM (13 years ago)

Shake-a-page for apple acceptance ?

There are severaldiscussions about apple store rejections and what phone specific functionality can be added to help an app get through. I'd like to suggest an idea for a 3rd party plugin - Shake-a-page! Mobile safari cannot detect shake, so this would definately be tick in the box for apple acceptance. The idea is that you could call up an existing page when you shake your device. Or perhaps display updateable content in an on-screen alert. Do-able?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
06/23/12 02:48 PM (13 years ago)
Maybe I can mess around and make it? http://stackoverflow.com/questions/150446/how-do-i-detect-when-someone-shakes-an-iphone#comment927523_159610 Hoping this code will work for 4.0+ through, if anyone else can provide some code examples, it will just have to be implemented into a blank plugin afterwords. David buzztouchmods.com
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/23/12 03:01 PM (13 years ago)
David, that would be great. I had a try, but I didn't get any further than detecting a shake - I couldn't do anything with it! I used this thread as my startpoint :- http://www.buzztouch.com/forum/thread.php?tid=C075D70763120E5C03C765F Cheers, Alan
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
06/25/12 06:45 AM (13 years ago)
I like this idea. I was thinking of adding something like this to my ios audio player to randomize to a new song, sorta like Pandora does. Thanks for the tips on that post. It's GOLD when David chimes in and instructs where to slice and dice up code to make standard iOS stuff work in BT. I may have to play around with this sooner than later. I just came across a great resource on UIGestures that I shelved for later reading, but now I want to learn....
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
06/25/12 08:10 AM (13 years ago)
@Atrain - cheers! The real challenge is how to make it work as a function - IE - what's it going to do and where would it be integrated in? David buzztouchmods.com
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/25/12 08:26 AM (13 years ago)
Hi David, shake could be linked to a selectable page created in BT. You can simply display the page when you shake and go back to your previous place when you close it. Or it could be linked to html content and pop an alert with that content. The key thing is that Apple can see the app has native functionality that you can't get from a mobile web site in mobile safari. I had a go at adding some code to my appdelegate.m that I'd be happy to share, I was able to get as far as detecting a shake, but I couldn't do anything useful with it. And it falls way short of a plugin.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
06/25/12 09:36 AM (13 years ago)
@Alan, that code would be gold right now - send it to me as a message on this forum! I like the idea a lot: 1. shake phone - phone detects shakee 2. detected shake triggers user selected screen correct? David buzztouchmods.com
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/25/12 11:36 AM (13 years ago)
Correct! Not sure it's gold, but message sent.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
07/05/12 10:49 AM (13 years ago)
Hi David, I just wondered if you have had any luck with the code sample - was the message received ?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
12/02/13 01:34 PM (12 years ago)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.