Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
LocalKit USB Debugging
So, I will be flying a bunch soon and I am trying to setup my laptop for offline development. I am hoping that localkit will do that. I am trying to pair a device to my laptop and it asks for the ip address of the device. When I put in the ip that is shown via ipconfig, it fails to pair. So my question is, since I see that most of the instructions discuss wifi debugging, does localkit require internet access in order to work? Will I be able to do offline development, use usb debugging to test on the device, and only need online access when doing builds?
Edit: BTW @Fran-Diox, I am finally getting around to localkit after you told me about it. For the longest time, I just assumed localkit was the CLI with a gui and not as robust as it actually is! Localkit looks like great stuff!
@munsterlander Well, technically I think it has the same functionality as CLI :sweat_smile: Glad you liked it!
I’m not sure about the debugging, perhaps @Andi can answer this better.
@Fran-Diox Well, for me it is more the one way cloud sync (would be awesome if it would go both ways (or maybe I am missing how to do that))! But what made me go WOW!, was the live preview with code inspector. That is identical to cloud and if I can get USB debugging functioning then I will be set for working offline and then online.
Once again, Monaca / Onsen (Asial) teams have made a very awesome software suite that is truly diverse.
@Andi Hoping you will have an answer for this. If the mobile device has airplane mode enabled and is connected via USB, I am unable to pair. If wifi is enabled and connected to the same network, it pairs without issue. I am assuming it is not possible to test completely offline. Is this correct or have I messed something up?
@munsterlander Hey! I heard from Andreas that you can’t do USB debugging because it is actually not possible in iOS or some reason. I fear you cannot do it without wifi u_u.
I guess Andi will reply with more information when he has time but I guess this answers your main question :/
@Fran-Diox Welp, that answers that! :grinning: I wonder if I use mobile hotspot with my phone if it will work in that way. Might try this later tomorrow.
@munsterlander sorry for the late reply, was a little bit busy with Localkit dev :)
Fran already answered you very well. What I can add is that the usb debugger driver is not developed by us, which means that we don’t have so much control on it. Maybe the hotspot will work, let us know how it goes!
@Andi I tried using hotspot to make it work and although the computer was able to connect, it would never grab an IP from the hotspot, so it continued to fail. Not entirely certain if this was a device issue or carrier issue. Regardless, I am thinking I may have another method to make this work.
@Andi I do have one question though, is it possible with LocalKit to do 2 way sync between my local PC and the Cloud IDE or should GitHub be the method to accommodate this? Basically, I normally use the Cloud IDE for development (I just like the layout of everything), but when I am going to travel, I want to sync to my laptop, do all the dev I need, then resync to cloud. I am thinking GitHub may be the best but I didn’t know if there was some built-in feature for this.
@munsterlander at the moment, GitHub is probably the best way to do it as Localkit doesn’t allow you to sync the same project on Cloud but will create a duplicate instead. I will remove this limitation in the next month but it needs a little bit of work as it modifies the logic of project creation/synch on localkit side.
@Andi Right-o. I think using GitHub is fine as the version control is a plus (I know cloud has it as well). Thanks for the response!
So I have the answer about working on Monaca / Onsen while you fly - seeing as that is what I am currently doing (btw, I swear they are making the seats narrower every month!). My first test was to just connect to in-flight wifi but not actually buy the wifi to see if it would communicate through the router as each device would obtain a valid IP address. While this should work in theory, I could not get past the first hurdle of LocalKit requiring you to login to Monaca.io. The same goes for the debugger.
So, the short answer is, offline development / debugging is not possible using the Monaca tools. A major bummer as I was really hoping to just be able to use Atom with the inspector and the preview tool.
On the plus side though, this forced me to buy the $39.99 in-flight internet so now I can write on the forums and share this experiment with you all! :stuck_out_tongue_closed_eyes: