Scratch-Client-4 / itchy-cordova

📱 Cordova-based mobile client for Scratch
17 stars 4 forks source link

Issues with bundling to PhoneGap #3

Closed micahlt closed 4 years ago

micahlt commented 4 years ago

When you use Parcel to bundle the assets (SCSS, Vue) the index.html file adds slashes to file paths to scripts, images, etc. This causes the app when packaged with PhoneGap to be unstyled HTML without any functionality. Currently this is avoided by removing slashes manually after building with Parcel. Any help with this would be very convenient.

micahlt commented 4 years ago

@Hexsphere (I just assigned you because you have more Parcel experience than I do; no pressure)

moeenio commented 4 years ago

If I understand right, it adds a slash to the beginning of their paths, and so they are fetched from the phone's filesystem's root? Also, this may be why it looks like this for me : Screenshot_2020-05-08-17-26-36 (may also be because of my outdated android, although I think phonegap uses its own webview, but i could be wrong, it could use the system's webview which is completely outdated)

VelocityDesign commented 4 years ago

I'm on chromeos and I tested the .apk. It is horrible. Nothing works. I would recommend building it as a cached apk for cross-platform compatibility. Phonegap looks kind of outdated too, as my chromebook identifies it as an Android Lollipop package.

micahlt commented 4 years ago

@ConvexPolygon Nope, PhoneGap isn't out of date. I do know some Chromebooks don't correctly run Android apps, so that might be it. It's definitely not designed to work on a screen that big, as it's a mobile app, not a tablet app. @locness3 Don't know why it's acting like that. Could be an issue with Parcel, but I don't have my laptop at hand, so I'll have to fix it in about two days.

micahlt commented 4 years ago

@locness3 Latest version works for me... I'm running Marshmallow.
Screenshot_20200508-142930

micahlt commented 4 years ago

Also @ConvexPolygon, what do you mean by cached APK?

moeenio commented 4 years ago

@micahlt I really think it's my Android (4.4 KitKat lol)

micahlt commented 4 years ago

@locness3 lol KitKat, those were the days

VelocityDesign commented 4 years ago

Also @ConvexPolygon, what do you mean by cached APK? I meant build it as a PWA and allow users to store the app in their cache. My chromebook is running Android Oreo in a vm

VelocityDesign commented 4 years ago

I also realized I didn't build it, that's the problem. I forgot to build parcel. EDIT Never mind it is the same: Screenshot 2020-05-09 at 11 28 25 PM Screenshot 2020-05-09 at 11 27 43 PM

VelocityDesign commented 4 years ago

@locness3 lol KitKat, those were the days

Yes, I started with honeycomb on my tablet.

moeenio commented 4 years ago

While we're at it saying our first android versions I started with Ice Cream Sandwich

micahlt commented 4 years ago

Closing this issue. The current solution is to just (manually) go through and remove all slashes in front of file paths. This includes links, scripts, and imgs. Also, we're moving to Cordova - check out #16.

moeenio commented 4 years ago

Isn't Cordova PhoneGap?