Can't detect my iPad target when I launch a hybrid app compiled on PhoneGap build

170 views
Skip to first unread message

panda...@gmail.com

unread,
Apr 12, 2013, 5:47:30 AM4/12/13
to wei...@googlegroups.com
Hello, I've been trying to fix this problem for 2 days but I am always blocked..

I am developing a hybrid app for Android/iOS. I use Sencha Touch 2.2b and compile the project on PhoneGap build. 

I installed a local weinre server on my PC which is in the same LAN of my iPad.

Here's my parameters :
weinre server's ip : 
192.168.10.224

with port 8081 because wampp occupied the 8080.
in the config.xml, (I use phonegap 2.5.0)
<access origin="http://192.168.10.224:8081" subdomains="true" />    
<preference name="load-url-timeout" value="60000" />

The project contains 2 pages html : 
main : an empty page who load index.html (I tried this in order to minimize page loading-time, learnt from another post)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">       
<html class="ui-mobile-rendering">
    <head>
        <title></title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
  <script>
            window.location='./index.html';
        </script>
    <body>        
    </body>
</html>
and in "index.html" I've included phonegap.js as well as 
Everything seems correct, but when I launch my app, the target list is empty...

I made several tests who may help figure out the problem :
  • the iPad and PC are both connected to the same LAN by wifi
  • I checked the PC's firewall, added my iPad ip on the list of authorisation
  • From Safari on iPad, I can connect to  
  • The demo website works fine on my iPad : the target list contains my iPad's IP.
  • If I test my own website from PC's Chrome, weinre detects my PC.
Only when I compile my website and install it on iPad, weinre detects nothing.

I don't have a Mac and my hybrid app has some mysterious bugs that I can't fix without console logs.. weinre is a super tool but I'm sad that I can't set it work..

All help is welcome, thanks in advance. ^_^

panda...@gmail.com

unread,
Apr 12, 2013, 6:11:21 AM4/12/13
to wei...@googlegroups.com
More information: I activate the debug option on PhoneGap build, but nothing is detected. 

I guess I might have missed some important configurations. But I can't see where it is. 
Does anyone has a demo project with a full set of configurations (html, config.xml, etc) and share it ? I read many times the official tutorial, but I find it not complete enough for someone (like me) unfamiliar with network settings.

As the online debug tool of PhoneGap build, I'm a bit disappointed : the site is from time to time "temporarily inaccessible"; as there're few configurations for users, when I followed the guide and it doesn't work, I feel helpless 

All what I want is just to read the log info of iPad from Windows (Mac is not affordable for the moment), no matter from a local server or online debug tool. 

Thx

Patrick Mueller

unread,
Apr 12, 2013, 7:21:25 AM4/12/13
to wei...@googlegroups.com
Did you set up your whitelist correctly?  


It's going to be very difficult for you to completely develop your app without a Mac.  One thing you are missing with the latest versions of iOS is the actual debugger from Apple which I assume everyone else is using instead of weinre (for iOS anyway).

Can you use weinre with the Android version of your app?



--
--
From the weinre Google Group -- http://groups.google.com/group/weinre
 
---
You received this message because you are subscribed to the Google Groups "weinre" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Patrick Mueller
http://muellerware.org

panda...@gmail.com

unread,
Apr 12, 2013, 8:15:11 AM4/12/13
to wei...@googlegroups.com
For the whitelist, I thought I did it correctly, after reading the guide specific to PhoneGap build who suggests :
        <access origin="http://192.168.10.224:8081" subdomains="true" />    
However, I'm not sure whether it works for iOS as it has the same syntax for Android PhoneGap.

My app works fine on Android side. I can read synchronous log, ressources, etc. It's fantastic ! But on iOS side... snif

Any suggestions besides buying a Mac for its console ? Thanks :-)


Le vendredi 12 avril 2013 13:21:25 UTC+2, Patrick Mueller a écrit :
Did you set up your whitelist correctly?  


It's going to be very difficult for you to completely develop your app without a Mac.  One thing you are missing with the latest versions of iOS is the actual debugger from Apple which I assume everyone else is using instead of weinre (for iOS anyway).

Can you use weinre with the Android version of your app?

Patrick Mueller

unread,
Apr 12, 2013, 11:23:10 AM4/12/13
to wei...@googlegroups.com
Since I suspect most people on iOS >= 6 are using the Apple-provided debug facilities, perhaps there's something that's leaked into recent iOS Safari versions that breaks weinre.  

As I said before, it's going to be very difficult for you to completely develop your app without a Mac.


--
--
From the weinre Google Group -- http://groups.google.com/group/weinre
 
---
You received this message because you are subscribed to the Google Groups "weinre" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages