mozilla / apk-cli

A Command Line Inteface for generating Android native apps from open webapps
59 stars 9 forks source link

wrong url for webapp #4

Open hiaselhans opened 9 years ago

hiaselhans commented 9 years ago

when i try to create a .apk from my manifest (https://github.com/hiaselhans/wetter/blob/gh-pages/manifest.webapp) the base url is overwritten by "www.example.com"...

kumar303 commented 9 years ago

Could you provide more info about how you generated the APK? What command did you run?

hiaselhans commented 9 years ago

sure, sorry was a bit in a hurry before.. here is what happens

mozilla-apk-cli http://hiaselhans.github.io/wetter/manifest.webapp test.apk

should open http://hiaselhans.github.io/wetter as a single page app but gives me a single page app for "http://www.example.com" instead..

However calling mozilla-apk-cli -overrideManifest http://hiaselhans.github.io/wetter http://hiaselhans.github.io/wetter/manifest.webapp test.apk does the trick but i am not sure thats the desired behavior...

      // This will get overriden server side
      argv.overrideManifest = 'http://example.com';

Maybe here the endpoint api changed...

regards!