Comments (13)
Could you please dump console errors. It is hard to tell what's wrong without it, it could be anything.
https://github.com/shprink/wordpress-hybrid-client/blob/develop/BUILD.md#debug
from hybrid.
Sorry, I missed logs,
Here are are complete error:
Uncaught TypeError: Cannot read property 'getPreferredLanguage' of undefined
Showing error for following block:
getPreferredLanguage: function () {
var q = $q.defer();
navigator.globalization.getPreferredLanguage(function (result) {
q.resolve(result);
},
function (err) {
q.reject(err);
});
return q.promise;
},
from hybrid.
Ok then you miss a plugin https://github.com/shprink/wordpress-hybrid-client/blob/develop/package.json#L104
Re install it
cordova plugin rm org.apache.cordova.globalization
cordova plugin add org.apache.cordova.globalization
It happens often that plugins are not correctly installed with Cordova.
from hybrid.
Thanks now app is working, but getting this error now:
Request URL: http://example.com/wp-json/posts?filter%5Borderby%5D=desc&filter%5Bpost_status%5D=publish&filter%5Bposts_per_page%5D=6&page=1
Request Method:GET
Status Code:404 Not Found (from cache)
Note: Here http://example.com/wp-json/posts?filter%5Borderby%5D=desc&filter%5Bpost_status%5D=publish&filter%5Bposts_per_page%5D=6&page=1 is working fine in browser.
Is it cache issue?
from hybrid.
Give me a link to your WP blog. http://example.com can't be it!
from hybrid.
Hi.. Following is actual URL:
from hybrid.
Ok so if I understand correctly the request works on the browser but not on Android?
Are you sure your device is online? I am not sure what can cause that.
from hybrid.
Ok so if I understand correctly the request works on the browser but not on Android?
Yes, on browser works fine, but on android getting this error.
Are you sure your device is online?
Yes my device is online, my device and laptop are connected to same wifi
I also observed server logs, request is not coming to server. I fear that it might the android cache issue as on chrome logs its showing
Status Code:404 Not Found (from cache)
Request Headers
from hybrid.
I have never had this problem. I would appriate if you investigate further and let me know what you can find. Thanks @gau1991 :)
from hybrid.
It could be related to the domain white list but I specified *
https://github.com/shprink/wordpress-hybrid-client/blob/develop/config.xml.dist#L11
from hybrid.
Hi, Following steps worked for me:
cordova plugin add cordova-plugin-whitelist
and add <allow-navigation href="http://*/*" />
into config.xml
from hybrid.
I created #24 for this problem. Thanks for your help :)
from hybrid.
I am having problems installing this plugin on iOS:
Fetching plugin "cordova-plugin-whitelist" via npm
Installing "cordova-plugin-whitelist" for android
Installing "cordova-plugin-whitelist" for ios
Failed to install 'cordova-plugin-whitelist':CordovaError: Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.7.0, failed version requirement: >=4.0.0-dev
at checkEngines (/Users/shprink/Sites/wordpress-hybrid-client/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:116:29)
at /Users/shprink/Sites/wordpress-hybrid-client/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:289:16
at _fulfilled (/Users/shprink/Sites/wordpress-hybrid-client/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/Users/shprink/Sites/wordpress-hybrid-client/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/Users/shprink/Sites/wordpress-hybrid-client/node_modules/cordova/node_modules/q/q.js:749:13)
at /Users/shprink/Sites/wordpress-hybrid-client/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/Users/shprink/Sites/wordpress-hybrid-client/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.7.0, failed version requirement: >=4.0.0-dev
I will have to find another solution.
from hybrid.
Related Issues (20)
- push Notifications register failed HOT 6
- Load the last post at start
- Author section HOT 3
- RTL Support HOT 1
- Cannot find name 'require'. error HOT 3
- iPhone X support HOT 1
- Starting application issue with windows 10 HOT 2
- Cannot find module '../config.default.cson'. HOT 3
- Building the application for production fails HOT 4
- Any plan to switch to lazy loading for v3? HOT 3
- Argument type is not assignable to param type(see screenshot)
- Fails to render wordpress shortcodes
- Push Notification
- Login via JWT HOT 2
- webp image - related image HOT 1
- NÃO CONSIGO TESTAR NO WINDOWS 7 HOT 1
- Not able to prepare native build HOT 1
- Archive repository HOT 1
- I cant get it to work at all
- Anyone still using/maintaining it? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hybrid.