App development workflow #4385
Replies: 1 comment
-
Posted at 2022-04-01 by Tx Writing Code in Bangle IDE (or VSCode) When finished: commit to repo, push. Ah forgot: For testing notifications, I switch the BT connection from PC to phone for the test OR simulate the message in the code (from doc):
Posted at 2022-04-01 by uname this is interesting, it was some time ago here on the forum: https://github.com/diesphink/banglejs2-files-watcher I haven't tested it yet. Posted at 2022-04-01 by Tx The web IDE has "watch & upload". Posted at 2022-04-01 by gfric Yes. But how do you use an app with 3+ files in the web IDE? Posted at 2022-04-01 by Tx ah, now I understand. Interesting problem. I never had changes to more than one file. It is possible to connect more than one web IDE window/tab to a Bangle - one for each file. However I didn't try it so I can't say whether this is really working or not. Posted at 2022-04-01 by gfric Now I see. You're just loading the one file that you change, and all the other files stay untouched in the memory? I didn't get it. Posted at 2022-04-01 by @gfwilliams
You can open 3x Web IDE windows connected to the same watch usually :)
You can just paste the The nice thing about faking it is if there are any errors, they get displayed in the IDE console where you can pick them up :) Posted at 2022-04-01 by gfric I see. But it does not work on the emulator, does it? But I get it. First test in the IDE, then push to the repo. Posted at 2022-04-01 by @gfwilliams
Yes, it will do - but you have to have all the relevant parts installed in the emulator, which is a real pain. Definitely worth just using a real device for.
That's what happens when you upload an library and it tries to run the library as if it was an app. Generally I'd just issue |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-04-01 by gfric
What is your workflow to test an app? I think I'm doing it wrong. I do:
I'm messing with the 'messages' app, so I need to test notifications from gadgetbridge
Beta Was this translation helpful? Give feedback.
All reactions