10-23-2020 12:02 AM
Hi there,
after finishing my first draft of my app with angular and cobi.js, I typed in my localhost:4200 address into the "My Module" Url field. It shows my application but only vertical not horizontal.
My goal is to deploy my module offline/permanently on my cobi.app to test in with my real bike. Is there a process e.g. compiling it in a special way and using a special method to deploy it?
Best
Anton
10-28-2020 02:35 PM
Hello jokjebi,
Thank you very much for your question. I have broken my answer down in 2 parts. Please see below:
It shows my application but only vertical not horizontal.
That's correct. The COBI SDK distinguishes 2 different contexts:
You can detect the context by subscribing to COBI.parameters.context. Ideally, you can adjust the UI of your module to the context.
Is there a process e.g. compiling it in a special way and using a special method to deploy it?
I am afraid not. Currently, developer modules are loaded dynamically and therefore the code needs to be hosted somewhere and the app needs to have an active internet connection when fetching it.
I hope this answers your questions.
Best regards,