android - Cordova features aren't work on server -
i developer of disciplinexgames! developing mobile app. have downloaded cordova test suite here (https://github.com/apache/cordova-mobile-spec). when upload on disciplinexgames server shows error in alert box "error: apache cordova did not initialize. demo not run correctly." when upload same folder on phonegap server works fine. unfortunately doesn't solve our problem building our mobile app on our server , using phonegap redirect user page hosted on disciplinexgames server if there's internet in user's mobile.
first error got in console area in google chrome cordova.js missing when provided outputs error cordova/channel required.
hope can guide through how can use cordova's amazing features on our server instead of phonegap's local server.
i bit confused trying accomplish here going take stab.
you want develop app when app launches, checks see if device has internet connectivity. if does, app opens mobile website hosted on servers. if there no internet connectivity app ???
since simple use case app, avoid using cordova , instead use phonegap build. write index.html page , .js file check connectivity , use inappbrowser plugin open mobile site if there connectivity. once done, zip package, upload phonegap build , download compiled apps.
phonegap build allows avoid app building overhead , need install things prevents taking advantage of of deeper configurations , plugins. again, simple use case, phonegap build sounds way go.
Comments
Post a Comment