Apple push notification doesn't work

I wrote a plugin which fires an apple push notification to IOS devices. When I fire it manually via the root directory, it works perfectly. The catch, when I move it to plugin folder and run it as a plugin using: add_action( 'publish_post', 'post_published' ,10,2); it returns a ssl error from apple servers. Nothing was changed in the code (except for include ('wp-config.php')) which is not needed as a plugin. This is the error: Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed …
Category: Web

Whats the best Practice for using a different Theme for WebView Apps?

I want to setup an Android and iOS App that calls my WP site via WebView. Somehow, i wasn't able to find the best way to do this via Google. First I was thinking about putting some Code in my functions.php that detects if I am a WebView App Visitor and then deliver another Theme. Then I thought about using the Multisite Function for this, but i believe this is not a good Idea since I am not really using …
Category: Web

MP4 video on wordpress working on desktop, not on mobile devices

I embedded a video in the following URL: https://www.speurtochten.nl/over-ons/ I made it with Premiere Pro CC, exported it as H.264. The code I use in WordPress: [video src="https://speurtochten.nl/sbsfilm.mp4"][/video] I tried uploading several dummy videos instead (http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4), and they worked perfectly fine on the desktop AND on a mobile phone. On my iPhone, I get "Error loading this resource".
Category: Web

Download user generated data from Wordpress

I have created a Wordpress site which I allow users to enter information about themselves such as name, age, sex and address etc. Now that I have this n formation I would like to know the steps I should use to download all of the information from all registered users on my site using an objective c NSURLConnection library. I know how to use NSURLconnection, I am used to doing a query where the information is returned in xml or …
Category: Web

Wordpress as webapp login session

Using iOS specific metatags I enabled webapp mode on a WP site. It works nice, but I'm facing a problem: Switching between apps breaks the WP session. The webapp loads the splash image again and shows the specified index page instead of the page visited and left earlier and the logged in state is reseted as well. I've found an answer to a similar question here, though it's not WP specific. Is there a WP way to keep the webapp …
Category: Web

IOS home screen icons: where put and what size?

I've read several articles about customizing the home screen icon used by IOS (and some Android) phones/tablets for the "add to homescreen" option. I'm seeing different recommendations re: sizes of the pngs, number of pngs, and am not clear where I should upload it/them. Here's a sample of articles; some WP specific, some not: http://www.bryanhauer.com/2012/06/25/how-to-easily-create-iphone-ipad-home-screen-retina-icons-for-your-website/ http://webdesign.tutsplus.com/tutorials/site-elements/quick-tip-custom-ios-home-screen-icons-for-your-website/ http://wpdaily.co/icon-ios-homescreen/ I like the idea of using one "large" icon and having the devices scale it, but does that work? If so, does it …
Topic: ios Wordpress
Category: Web

wp.getUsers XML-RPC method is returning only 50 users, how can i get all the users

In my iphone app i am trying to list out all the users using the wp.getUsers XML-RPC method, but its not returning all the users, in that blog i have around 180 members , but it has returned only 50 users in the list,,how can i get all the users ?? i am passing these following 3 parameters blog_id, username and password ,,should i pass any other parameter to get all the users in the list?? plas help me out …
Category: Web

Wordpress Iris Colour Picker adding iOS touch events

I've implemented an Iris Colour Picker into the front-end of my theme thanks to the help provided in this question and all works well on the desktop front. However, it seems as though when it comes to an iPad device the colour picker doesn't work as expected. The mouse dragging event isn't being recognised, however clicking around the colour area works, it's like the mousedrag event isn't being recognised. Is this a known issue and is there perhaps a way …
Category: Web

(how) can I install android on an iphone 4?

Possible Duplicate: Can I install Android on my non-Android device? I know it is possible to install Android on an iPhone 3G. How about the iPhone 4? Is it possible to run Android on it? If yes, how, and what are the risks? If no, is that a "not yet" or a "can't happen, because of X"?
Category: Android

How can I improve the performance of this query_posts loop?

I created a WordPress page template to build a customised XML feed for certain WordPress posts on my site. Specifically, the page template renders XML and only includes certain custom post types and only if these posts contain specific meta data. I'm using the data to feed WordPress content to an iOS application. It seems to work great; however, the response times from the server vary and often fail. My hosting company ( MediaTemple ) has suggested I could improve …
Category: Web

Multisites, upload issues, and iOS!

This question has changed significantly. I have the latest version of Wordpress and am hosting it on an Apache server. Link to Blog: http://blogs.bzaeds.org/test/2012/05/11/video-test/ Now, here's the thing. When I upload a video to Wordpress it will play on a Mac in Firefox with the Wordpress URL the item is given (ex: http://blogs.bzaeds.org/test/files/2012/05/720-dunk.mp4" provider="video). In fact, I can go to that link right now on my Firefox browser and have no problems, it plays fine. However, if I upload a …
Category: Web

How to query WordPress from another application?

We're building an iOS app for BarbadosPropertyList.com. The iOS app needs to query the website and download recent listings data, including titles, datestamps, thumbnails and custom fields. We would like to know the best practice for querying WordPress data from an external app?
Topic: ios api Wordpress
Category: Web

Installing Android on iPhone 3G

Possible Duplicate: Can I install Android on my non-Android device? I read somewhere that someone managed to get Android running on an iPhone 3G. Is there an easy tutorial on how to do that? It's just for testing purposes. Thanks!
Category: Android

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.