On Thursday, July 24, 2014, bradrickcarter <bradrickcarter(a)gmail.com> wrote:
Thanks
On Jul 24, 2014, at 1:50 PM, Matthias Wessendorf [via aerogear-dev] <[hidden
email] <
http://user/SendEmail.jtp?type=node&node=8526&i=0>> wrote:
Hello Brad!
On Thu, Jul 24, 2014 at 8:44 PM, bradrickcarter <<a
href="x-msg://7/user/SendEmail.jtp?type=node&node=8523&i=0"
target="_top" rel="nofollow" link="external">[hidden
email]> wrote:
> HA! Yes! Thanks!
>
> Not sure why i did that. Been up late nights trying to make this work...
>
the devil is always in the details. sorry for that.
Let us know if/how we can improve our getting started experience!
>
> BTW - can I send a push from a web app using ajax?
>
well, if the pushAppID/masterSecret is stored somewhere in a web-browser,
everyone can read that (view source).
I'd send it form a backend. We have libraries for
* PHP
* node.js
* Java
Since the endpoints are HTTP/REST, you can use any platform :)
Now, using a backend as a "proxy", your web-app can bing the backend, via
ajax, like "hey send 'XYZ' push", and the backend than has the
credentials
and simply delegates the XYZ payload to the UPS. That way
pushAppID/masterSecret are not exposed on the "web site"
-M
>
> Thanks!
> On Jul 24, 2014, at 1:40 PM, Matthias Wessendorf [via aerogear-dev] <[hidden
> email] <
http://user/SendEmail.jtp?type=node&node=8522&i=0>> wrote:
>
> You should have received a message :-)
>
>
> here is my curl:
>
> curl -3 -u
>
"ffeaec0b-ebc9-48e7-bab7-1cee73d38221:34882347-03ed-4561-95b6-6eeedc0adbd6"
> -v -H "Accept: application/json" -H "Content-type:
application/json" -X
> POST -d '{"message": {"alert":"This is a test push from
>
cURL","sound":"default","badge":7,"content-available"
: true}}'
>
https://push-1127studios.rhcloud.com/ag-push/rest/sender
>
>
> I removed the {} from the applicationID and from the masterSecret as well.
>
> I wonder, why did you enter these {} around the credentials ?
>
>
>
>
>
>
> On Thu, Jul 24, 2014 at 8:35 PM, bradrickcarter <<a href="<a
>
href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=8521&amp;i=0">x-msg://5/user/SendEmail.jtp?type=node&node=8521&i=0"
> target="_top" rel="nofollow" link="external">[hidden
email]> wrote:
>
>> Hi Matthias,
>>
>> Yes, the "Send Push" dialog works on the server.
>>
>> I had a typo in my url but I am now getting a 401 Unauthorized. curl
>> request below;
>>
>> curl -3 -u
>>
"{ffeaec0b-ebc9-48e7-bab7-1cee73d38221}:{34882347-03ed-4561-95b6-6eeedc0adbd6}"
>> -v -H "Accept: application/json" -H "Content-type:
application/json" -X
>> POST -d '{"message": {"alert":"This is a test push
from
>>
cURL","sound":"default","badge":7,"content-available"
: true}}'
>>
https://push-1127studios.rhcloud.com/ag-push/rest/sender
>>
>>
>> Thank you!
>>
>>
>> On Jul 24, 2014, at 1:28 PM, Matthias Wessendorf [via aerogear-dev] <[hidden
>> email] <
http://user/SendEmail.jtp?type=node&node=8520&i=0>>
wrote:
>>
>>
>>
>>
>> On Thu, Jul 24, 2014 at 8:13 PM, bradrickcarter <<a href="<a
href="<a
>>
href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=0"><a
>>
href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&node=8519&i=0"
>> target="_top" rel="nofollow"
link="external">[hidden email]> wrote:
>>
>>> First I'd like to say I spent about 3 days trying to get the push
>>> plugin to
>>> work in my cordova project (pulled out all of my hair!). I finally got
>>> it
>>> working and I am able to push to iOS and Android. The issue is I can
>>> only
>>> push messages from the Aerogear Push server on OpenSift. I have tried
>>> all
>>> day to send a message using the rest end-points with cURL and Ajax. I
>>> have
>>> no more hair to pull out.
>>>
>>> I have used the following urls to send and none work;
>>>
>>>
https://push-1127studios.rhcloud.com/ag-push/rest/sender
>>> returns - HTTP/1.1 400 Bad Request
>>>
>>
>> Can share the CURL that cause the 400 ?
>> I bet there is some tiny error on the actual CURL/JSON
>>
>> PS: Does the "Send Push" dialog work? The Server has a little page to
>> actually send messags
>>
>> -M
>>
>>
>>>
>>>
https://push-1127studios.rhcloud.com/rest/sender
>>> returns - HTTP/1.1 404 Not Found
>>>
>>> I have double checked my applicationID and master secret but nothing is
>>> working.
>>>
>>> Help!
>>> please...
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>>
http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-fo...
>>> Sent from the aerogear-dev mailing list archive at
Nabble.com
>>> <
http://nabble.com/>.
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> <a href="<a href="<a
>>>
href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=1"><a
>>>
href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&node=8519&i=1"
>>> target="_top" rel="nofollow"
link="external">[hidden email]
>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>
>>
>>
>> --
>> Matthias Wessendorf
>>
>> blog:
http://matthiaswessendorf.wordpress.com/
>> sessions:
http://www.slideshare.net/mwessendorf
>> twitter:
http://twitter.com/mwessendorf
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> <a href="<a href="<a
>>
href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=2"><a
>>
href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&node=8519&i=2"
>> target="_top" rel="nofollow"
link="external">[hidden email]
>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>>
>>
http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-fo...
>> To unsubscribe from push sender rest not working for me, click here.
>> NAML
>>
<
http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=...
>>
>>
>>
>> ------------------------------
>> View this message in context: Re: [aerogear-dev] push sender rest not
>> working for me
>>
<
http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-fo...
>>
>> Sent from the aerogear-dev mailing list archive
>> <
http://aerogear-dev.1069024.n5.nabble.com/> at
Nabble.com
>> <
http://nabble.com/>.
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> <a href="<a
>>
href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=8521&amp;i=1">x-msg://5/user/SendEmail.jtp?type=node&node=8521&i=1"
>> target="_top" rel="nofollow"
link="external">[hidden email]
>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
>
> --
> Matthias Wessendorf
>
> blog:
http://matthiaswessendorf.wordpress.com/
> sessions:
http://www.slideshare.net/mwessendorf
> twitter:
http://twitter.com/mwessendorf
>
> _______________________________________________
> aerogear-dev mailing list
> <a href="<a
>
href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=8521&amp;i=2">x-msg://5/user/SendEmail.jtp?type=node&node=8521&i=2"
> target="_top" rel="nofollow" link="external">[hidden
email]
>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> ------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
>
>
http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-fo...
> To unsubscribe from push sender rest not working for me, click here.
> NAML
>
<
http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=...
>
>
>
> ------------------------------
> View this message in context: Re: [aerogear-dev] push sender rest not
> working for me
>
<
http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-fo...
> Sent from the aerogear-dev mailing list archive
> <
http://aerogear-dev.1069024.n5.nabble.com/> at
Nabble.com.
>
> _______________________________________________
> aerogear-dev mailing list
> <a
href="x-msg://7/user/SendEmail.jtp?type=node&node=8523&i=1"
> target="_top" rel="nofollow" link="external">[hidden
email]
>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
--
Matthias Wessendorf
blog:
http://matthiaswessendorf.wordpress.com/
sessions:
http://www.slideshare.net/mwessendorf
twitter:
http://twitter.com/mwessendorf
_______________________________________________
aerogear-dev mailing list
<a
href="x-msg://7/user/SendEmail.jtp?type=node&node=8523&i=2"
target="_top" rel="nofollow" link="external">[hidden
email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-fo...
To unsubscribe from push sender rest not working for me, click here.
NAML
<
http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=...
------------------------------
View this message in context: Re: [aerogear-dev] push sender rest not
working for me
<
http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-fo...
Sent from the aerogear-dev mailing list archive
<
http://aerogear-dev.1069024.n5.nabble.com/> at
Nabble.com.