EddyVerbruggen / Insomnia-PhoneGap-Plugin

:sleepy: Prevent the screen of the mobile device from falling asleep
264 stars 106 forks source link

Insomnia plugin does not load #12

Closed seiichi77 closed 9 years ago

seiichi77 commented 9 years ago

I have been trying to add the Insomnia plugin to my project. I have added the following to my xml file and the following to my html file in the header

When I do a build on PhoneGap it builds fine but my streaming audio stops when the iphone goes to sleep. In my app I have a button that links to a mobile webpage that plays the streaming audio. Here is the link http://doncharris.com/triccollins/app/Streamingaudio/donvideo.html The stream does not stop on my android when it goes into sleep mode. Should I be adding script to the mobile webpage to make it work on the iphone.

I am very new at also this so I thank you for your patience.

Carl

EddyVerbruggen commented 9 years ago

Hi @seiichi77, your code is missing, but don't worry. Just pull this repo in your PhoneGap Build account and try the Insomnia feature: https://github.com/EddyVerbruggen/X-Services-PhoneGap-Build-Plugins-Demo

If it works as expected, check out the code.

seiichi77 commented 9 years ago

Thank you Eddy for your quick response. So if I understand what you are saying all I do is copy the link https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git to my config.xml file as per the attached file?

Carl Collins Phone: 705-888-5403 Email: carl@abetteroutlook.ca Website: www.abetteroutlook.ca

From: Eddy Verbruggen notifications@github.com Reply-To: EddyVerbruggen/Insomnia-PhoneGap-Plugin <reply@reply.git hub.com> Date: Monday, September 15, 2014 at 3:21 PM To: EddyVerbruggen/Insomnia-PhoneGap-Plugin Insomnia-PhoneGap-Plugin@noreply.github.com Cc: Carl Collins carl@abetteroutlook.ca Subject: Re: [Insomnia-PhoneGap-Plugin] Insomnia plugin does not load (#12)

Hi @seiichi77 https://github.com/seiichi77 , your code is missing, but don't worry. Just pull this repo in your PhoneGap Build account and try the Insomnia feature: https://github.com/EddyVerbruggen/X-Services-PhoneGap-Build-Plugins-Demo

If it works as expected, check out the code.

‹ Reply to this email directly or view it on GitHub https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/12#issuec omment-55643820 .

seiichi77 commented 9 years ago

Hi Eddy, sorry, I think I understand now. I need to copy and paste from your demo what I need to put in my mobile webpage, right?

Carl Collins Phone: 705-888-5403 Email: carl@abetteroutlook.ca Website: www.abetteroutlook.ca

From: Eddy Verbruggen notifications@github.com Reply-To: EddyVerbruggen/Insomnia-PhoneGap-Plugin <reply@reply.git hub.com> Date: Monday, September 15, 2014 at 3:21 PM To: EddyVerbruggen/Insomnia-PhoneGap-Plugin Insomnia-PhoneGap-Plugin@noreply.github.com Cc: Carl Collins carl@abetteroutlook.ca Subject: Re: [Insomnia-PhoneGap-Plugin] Insomnia plugin does not load (#12)

Hi @seiichi77 https://github.com/seiichi77 , your code is missing, but don't worry. Just pull this repo in your PhoneGap Build account and try the Insomnia feature: https://github.com/EddyVerbruggen/X-Services-PhoneGap-Build-Plugins-Demo

If it works as expected, check out the code.

‹ Reply to this email directly or view it on GitHub https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/12#issuec omment-55643820 .

EddyVerbruggen commented 9 years ago

Yep, if it works as expected, grab this line from config.xml: https://github.com/EddyVerbruggen/X-Services-PhoneGap-Build-Plugins-Demo/blob/master/config.xml#L28

And this is how you use it in your app: https://github.com/EddyVerbruggen/X-Services-PhoneGap-Build-Plugins-Demo/blob/master/js/insomnia-plugin-demo.js

seiichi77 commented 9 years ago

Hi Eddy, sorry to bug you again but I have spent yesterday, last night and today and just can¹t get it to work. Below is a link to the App project including all the files And the mobile webpage files with what I did to try and get it to work. I am willing to pay you for your work to get this to working. This is the last pice of the project and then we are hoping to submit it to Apple and Google. Thank you for your help.

https://www.dropbox.com/sh/qvmrxh3sh8msufu/AAAeQI3jn7SGiugzolMsSy_Ga?dl=0

Carl Collins Phone: 705-888-5403 Email: carl@abetteroutlook.ca Website: www.abetteroutlook.ca

From: Eddy Verbruggen notifications@github.com Reply-To: EddyVerbruggen/Insomnia-PhoneGap-Plugin <reply@reply.git hub.com> Date: Monday, September 15, 2014 at 4:32 PM To: EddyVerbruggen/Insomnia-PhoneGap-Plugin Insomnia-PhoneGap-Plugin@noreply.github.com Cc: Carl Collins carl@abetteroutlook.ca Subject: Re: [Insomnia-PhoneGap-Plugin] Insomnia plugin does not load (#12)

Yep, if it works as expected, grab this line from config.xml: https://github.com/EddyVerbruggen/X-Services-PhoneGap-Build-Plugins-Demo/blo b/master/config.xml#L28

And this is how you use it in your app: https://github.com/EddyVerbruggen/X-Services-PhoneGap-Build-Plugins-Demo/blo b/master/js/insomnia-plugin-demo.js

‹ Reply to this email directly or view it on GitHub https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/12#issuec omment-55654078 .

EddyVerbruggen commented 9 years ago

I don't take payments for these plugins, but please feel free to drop me an email at eddyverbruggen at gmail dot com and send me your entire project.