victordiaz / PHONK

PHONK is a coding playground for new and old Android devices
https://phonk.app
GNU General Public License v3.0
456 stars 27 forks source link

example Advanced / Background App displays "script has crashed" #59

Closed SuperUserNameMan closed 3 years ago

SuperUserNameMan commented 4 years ago

Hello again !

When I run the Background App example, the background-app show up into my notification list.

And when I click/touch it into the notification list, the screen turn black and a tiny box at the bottom says "The script has crashed :(" and the PHonk application seems to reboot.

Device model Acer Iconia B1-A71 tablet with Android 4.1.2

Steps to reproduce the bug

Run the Background App example, open the notification list, click/touch the "Background app" notification.

victordiaz commented 4 years ago

Thx for reporting this. Background services is something I want to fix, so I will take this issue as an opportunity to improve it :) It kinda works on my device but it seems it needs some tweaking :smile:

Basically the Background service runs scripts in the background in cases where you dont need a UI or you don't want the script to keep running when the screen is off. ie: music player or communicating with a server.

SuperUserNameMan commented 3 years ago

Oh this one is solved BTW !