Page 1 of 1

Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Wed Jun 17, 2015 3:08 pm
by Alberto da Silva

I would like to create an App that would send notifications (email or/and SMS) if a phone were to fall into the ground.

The trick is that if the user tossed the phone up for example, it would not trigger the notifications. The notifications are sent only if the phone were to fall on the ground.

Would it be possible to build something like this with Appery.io?

Sincerely,

Alberto da Silva


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Wed Jun 17, 2015 4:46 pm
by Serhii Kulibaba

Hello Alberto,

Sure, please use "pause" event for that: https://devcenter.appery.io/documenta...


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Wed Jun 17, 2015 7:50 pm
by Alberto da Silva

This is great, the "pause" event works on both Android and iPhone correct?


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Wed Jun 17, 2015 9:17 pm
by Alberto da Silva

Also, in order to test the "Pause" event the application needs to be installed on the phone correct? It does not work if tested on the phone browser only correct?


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Thu Jun 18, 2015 9:16 am
by Illya Stepanov

Hi Alberto - PhoneGap events would work only on the device as installed app.


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Thu Jun 18, 2015 1:35 pm
by Alberto da Silva

Thank you, one last question please, does appery.io support running in the background? In order for this app to be effective, it needs to run in the background and detect if the user fell? Does appery.io support this?


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Mon Jun 22, 2015 2:10 pm
by Alberto da Silva

Hello,

The link provided regarding the Pause event, states that it fires after the app runs into the background, not on the "ground".

https://devcenter.appery.io/documenta...

What I need is an event that runs when the app goes/falls into the "Ground", is there such an event on PhoneGap? Basically, I just want to know at this time if this type of application could be built using Appery.IO.

Thank you,

Alberto da Silva

Image


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Mon Jun 22, 2015 2:13 pm
by Alberto da Silva

Thank you, but it seems that this event runs when the app goes into the background, not when it falls into the "Ground".


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Mon Jun 22, 2015 7:30 pm
by Alan Fernandez

Alberto if I correctly understand what you are asking for, then what you need is access to the phone's accelerometers and some algorithm to determine what is happening to the phone.

Something like this: http://stackoverflow.com/questions/30...

So what you should ask the Appery support is whether Appery provides access to the device's Accelerometers. It doesn't, but PhoneGap does give you access to them. So yes, you can create an app that uses the accelerometers on Appery.

They might give you this link: https://getsatisfaction.com/apperyio/...

The only problem is that you will have to keep the app open on the background all the time and constantly monitor the accelerometers.


Is it possible to create with Appery.io an App that would send notifications if the phone fell into the ground?

Posted: Mon Jun 22, 2015 7:44 pm
by Alberto da Silva

Hi Alan,

Thank you for the comment.

Sincerely,

Alberto da Silva