Trying to redirect to another upon first time launch getting non-allowed URL: gap://ready

1,274 views
Skip to first unread message

Francis Cheung

unread,
Aug 13, 2015, 12:15:12 PM8/13/15
to phonegap
Hi,

I am new to PhoneGap and am developing an app for Android and IOS, in IOS everything is working, but in Android, the first thing I want to do is to redirect to setup.html, however, I am getting this error

8-12 23:00:00.369  14003-14003/com.sfcontracting W/CordovaWebViewImpl﹕ Blocked (possibly sub-frame) navigation to non-allowed URL: gap://ready

I have added this to config.xml

    <name>HelloCordova</name>

    <description>

        A sample Apache Cordova application that responds to the deviceready event.

    </description>

    <author email="d...@cordova.apache.org" href="http://cordova.io">

        Apache Cordova Team

    </author>

    <content src="index.html" />

    <access origin="*" />

    <allow-intent href="http://*/*" />

    <allow-intent href="https://*/*" />


Can someone please tell me what am I doing wrong?

Jesse Monroy

unread,
Aug 13, 2015, 5:20:06 PM8/13/15
to phonegap
Asking what you are doing wrong?
Is like asking me if you put your underwear on right. I don't know.
I don't even know if you are wearing underwear.

On our issue,

What are you doing?
What are you trying to do?
What have you tried?

Jesse

William Le

unread,
Aug 21, 2015, 6:19:29 PM8/21/15
to phonegap
I signed up just to say that you sound like an asshole.

Steve Husting

unread,
Aug 21, 2015, 6:58:35 PM8/21/15
to phonegap
I don't know what you're doing wrong, but I suggest doing a cordova platform rm android then cordova platform add android to see if the platform files had been corrupted.


On Thursday, August 13, 2015 at 9:15:12 AM UTC-7, Francis Cheung wrote:

Steve Sobol - Lobos Studios

unread,
Aug 21, 2015, 10:36:59 PM8/21/15
to phon...@googlegroups.com, willia...@gmail.com
You signed up to the list just to say that Jesse sounds like an asshole? Well. Since you're complaining about his behavior, I'm glad *you're* not behaving that way.

(Oh, wait...)

Ok, William, let me explain something to you:

Could Jesse have reacted better? Yes.

HOWEVER...

I do understand how frustrated he is.

The VAST MAJORITY of recent posts to this group recently have consisted of: "I can't get my Phonegap/Cordova app working. Help!"

And that's IT. These messages have been completely devoid of *any* information that will allow us to help the original posters...

And I KNOW that is EXACTLY what he's frustrated about.

I deal with it too, as part of my job, but the difference is that I deal with it with paying clients. Helpdesk/tech support work is one of the things I am paid to do.

But I don't get paid to help people here, nor does anyone else who participates here regularly; this is a community forum.

And while we don't mind helping people for free, it is unbelievably frustrating when the very people asking for help throw roadblocks in front of the people trying to help them.

Keep in mind, none of us works for Adobe.  None of us works for the Apache Software Foundation, either.

WE ARE ALL VOLUNTEERS.

And however bad you think Jesse's actions were, yours were about a million times worse. Again, yes, Jesse could have reacted better, but he contributes a lot to this group, answers a lot of questions and generally makes some very valuable contributions to the community, both here and on the web, where he has been gracious enough to post some good tutorials.

Contrast this with your actions, which consist of signing up with the explicit purpose of being abusive to a longtime contributor.

Please apologize to Jesse. Or if you're not going to apologize, just let me know so I can remove you and ban you from re-subscribing, because your actions are so far out of line that the line isn't even on the same CONTINENT.

Please also understand that on a community forum where you are not paying people to support you, you are not owed anything. Not a single thing.

Thank you.

William Le wrote:
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Lobos Studios - Website and Mobile App Design & Development; IT Support; Computer Maintenance
Toll Free  877.919.4WEB - Apple Valley 760.684.8859 - Los Angeles 310.945.2410 - Cleveland 216.242.4010
www.LobosStudios.com * www.facebook.com/LobosStudios * @LobosStudios

Jesse Monroy

unread,
Aug 22, 2015, 12:31:42 AM8/22/15
to phonegap
All ways happy to see new members.

Enjoy your day.
Jesse

William Le

unread,
Aug 22, 2015, 12:38:56 AM8/22/15
to phonegap
Francis, it could be a Content-Security-Policy problem. Check your entry point HTML file (usually index.html, but sounds like setup.html in your case).

Make sure you have this in there:

 <!--- Debug CSP -->
 
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com; script-src 'self' * 'unsafe-inline'; img-src * data:; connect-src *; style-src 'self' 'unsafe-inline';">


 
<!--- Production CSP
 <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src * data:; connect-src *; style-src 'self' 'unsafe-inline';">
 -->



The key there is the "gap:" value. That establishes a relationship to Cordova for the native-JS bridge.

NOTE: Change it to the "Production CSP" when you go to production.

Rob Willett

unread,
Aug 22, 2015, 1:54:06 AM8/22/15
to phon...@googlegroups.com
William


When you have written up a load of tutorials for free and donated them to this group


AND


You have answered hundreds of emails asking for help


AND


You have provided an FAQ for beginners


AND


You have worked your way through difficult problems and resolved them for users


THEN


You might be able to say you disagree with somebodies point of view. Until that point I would suggest you go back into lurking mode.

If you wish to constructively contribute to the group, I have an FAQ list that will need sections added to.

As has already been pointed out Jesse is not paid to do anything here. He does this to help, people out. Many of the questions that we field are too high level for us to help, they are on the lines of "something doesn't work, I can't be bothered to work it out for myself or provide any more information, help me". Where people have provided more information Jesse has dug deep into the problem and helped resolve it. It's very clear to me that the more effort a person puts into helping themselves, the more effort Jesse and the rest of us put into the resolution.

Some people think him too direct, I personally don't think so. His contributions far, far outweigh what you perceive as his faults.

Either apologise or go find an other group to troll.

To the list admins, if no apology is forthcoming I would suggest banning William Le. His absence would be no loss.

Rob

--

Steve Sobol - Lobos Studios

unread,
Aug 22, 2015, 1:56:16 AM8/22/15
to phon...@googlegroups.com
I unsubscribed him first.

So he's gone, but I'm trying to find a way to ban him.

(Sorry, I don't swing the ban hammer very often. I am a little rusty)

Steve Sobol - Lobos Studios

unread,
Aug 22, 2015, 1:58:27 AM8/22/15
to phon...@googlegroups.com
What bugs the living crap out of me is during my out-of-band conversation with him, he used the phrase "I mean no disrespect".

Really? REALLY? Tell me again - exactly why did you join, William?

His behavior here was bad enough. I HATE being lied to. That was worse.

Rob Willett

unread,
Aug 22, 2015, 1:59:10 AM8/22/15
to phon...@googlegroups.com
Steve

Thanks for update.

Rob
Reply all
Reply to author
Forward
0 new messages