Send Push message with Text and URL on iOS
by Andreas Røsdal
Hi there!
I have just installed the AeroGear UnifiedPush Server 1.0.1, and so far I'm very impressed with it.
I have a requirement to send Push messages to an iPhone app which must contain both a text message and an URL.
Currently only sending a text message seems to be supported.
So I wonder how I should go about trying to modify the UnifiedPush Server Admin gui so that I can also include an URL in the Push Message. Any help with this would be greatly appreciated!
Regards,
Andreas R.
10 years, 11 months
HTTP method POST is not supported by this URL
by mutulong
I am using curl to test my unifiedpush server setup, I had to turn off curl
performing SSL certificate verification by add -k argument in the command.
This is the command:
curl -k -3 -u
"cd085f44-4920-4164-92d8-1965ea163885:8d9e903a-8ff1-4048-b0c6-11f5c78efcbc"
-v -H "Accept: application/json" -H "Content-type: application/json" -X POST
-d '{"message": {"alert":"Hello baby this is a test breaking news haha
world! ab.co/1oNOpx9", "url":"ab.co/1oNOpx9"}}'
https://dymamic.com:28443/ag-push/
And this is the result:
* Hostname was NOT found in DNS cache
* Trying 54.201.126.209...
* Connected to dymamic.com (54.201.126.209) port 28443 (#0)
* SSL 3.0 connection using SSL_NULL_WITH_NULL_NULL
* Server certificate: luke du
* Server auth using Basic with user 'cd085f44-4920-4164-92d8-1965ea163885'
> POST /ag-push/ HTTP/1.1
> Authorization: Basic
> Y2QwODVmNDQtNDkyMC00MTY0LTkyZDgtMTk2NWVhMTYzODg1OjhkOWU5MDNhLThmZjEtNDA0OC1iMGM2LTExZjVjNzhlZmNiYw==
> User-Agent: curl/7.37.1
> Host: dymamic.com:28443
> Accept: application/json
> Content-type: application/json
> Content-Length: 113
>
* upload completely sent off: 113 out of 113 bytes
< HTTP/1.1 405 Method Not Allowed
< Connection: keep-alive
< X-Powered-By: Undertow/1
* Server WildFly/8 is not blacklisted
< Server: WildFly/8
< Content-Type: text/html;charset=ISO-8859-1
< Content-Length: 104
< Date: Thu, 06 Nov 2014 00:09:56 GMT
<
* Connection #0 to host dymamic.com left intact
<html><head><title>Error</title></head><body>HTTP method POST is not
supported by this URL</body></html>
I am kind stuck here, could anyone please help me on this, thanks a lot.
--
View this message in context: http://aerogear-dev.1069024.n5.nabble.com/HTTP-method-POST-is-not-support...
Sent from the aerogear-dev mailing list archive at Nabble.com.
10 years, 11 months
Re: [aerogear-dev] Eating our own dog food, or ShootAnsShare
by Bruno Oliveira
Nice Corinne!
On Wed, Nov 5, 2014 at 11:49 AM, Lucas Holmquist <lholmqui(a)redhat.com>
wrote:
> coolio
> > On Nov 5, 2014, at 6:44 AM, Corinne Krych <corinnekrych(a)gmail.com>
> wrote:
> >
> > Hello Guys
> >
> > ShootAnsShare made it to AppStore:
> >
> https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=934441...
> >
> > One remaining task to be able to post to Facebook is to make Facebook
> Shoot App production ready. I’ve just added privacy policy page and I’m
> waiting for approval (within 7 days).
> >
> > ++
> > Corinne
> >
> > On 10 Oct 2014, at 16:48, Daniel Passos <daniel(a)passos.me> wrote:
> >
> >> Jira created
> >>
> >> On Fri, Oct 10, 2014 at 11:20 AM, Bruno Oliveira <bruno(a)abstractj.org>
> wrote:
> >> On 2014-10-10, Daniel Passos wrote:
> >>> Hi guys,
> >>>
> >>> Yep, In Android land we have secret request and qrcode scan.
> >>>
> >>> 1) May be is a good idea remove the secret request?
> >>
> >> +1
> >>
> >> https://issues.jboss.org/browse/AGDROID-299
> >>
> >>>
> >>> 2) In related news, today we not store the secret. I think store that
> >>> before publish is a good thing to do
> >>
> >> +1 Feel free to file jiras and assign to me if you want.
> >>
> >> https://issues.jboss.org/browse/AGDROID-300
> >>
> >>> -- Passos
> >>>
> >>>
> >>> On Fri, Oct 10, 2014 at 4:47 AM, Matthias Wessendorf <
> matzew(a)apache.org>
> >>> wrote:
> >>>
> >>>>
> >>>>
> >>>> On Fri, Oct 10, 2014 at 9:00 AM, Corinne Krych <
> corinnekrych(a)gmail.com>
> >>>> wrote:
> >>>>
> >>>>> Same here Bruno I would like to publish Shoot, in its Swift version
> to
> >>>>> apple store.
> >>>>>
> >>>>
> >>>> +1 that is even useful :)
> >>>> so not a "demo" at all.
> >>>>
> >>>> Great idea!
> >>>>
> >>>>
> >>>>> We have a ticket to enhance it with an iOS photo sharing dialog. Once
> >>>>> this one is done, let's submit.
> >>>>> For the app store I might limit it to Facebook and Google+, to start
> with.
> >>>>>
> >>>>> ++
> >>>>> Corinne
> >>>>>
> >>>>> On 10 October 2014 08:48, Christos Vasilakis <cvasilak(a)gmail.com>
> wrote:
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> answers inline
> >>>>>>
> >>>>>> On Oct 9, 2014, at 11:42 PM, Bruno Oliveira <bruno(a)abstractj.org>
> wrote:
> >>>>>>
> >>>>>>> No way, Matthias. OTP must be always offline. To retrieve the
> shared
> >>>>>>> secret, we scan the QR Code.
> >>>>>>>
> >>>>>>> Maybe the iOS demo is doing it (have to revisit and confirm)[1].
> >>>>>>> On Android, I'm pretty much sure that QR Code scanning was already
> >>>>>>> implemented.
> >>>>>>>
> >>>>>>
> >>>>>> revisiting this, I can see indeed on iOS the shared secret is
> retrieved
> >>>>>> from the server and that is only the option offered. Our Android
> example
> >>>>>> offers both options, either from server, or using QR code scanning,
> so
> >>>>>> implementing the latter on our iOS demo need to be also done.
> >>>>>>
> >>>>>> created to track it :
> >>>>>> https://issues.jboss.org/browse/AGIOS-289
> >>>>>>
> >>>>>>> We don't need to be perfect, get what is already done, improve if
> >>>>>>> possible or release what is already done.
> >>>>>>
> >>>>>> +1 for releasing on the app store. My fear is, as Matthias said
> earlier,
> >>>>>> the ‘demo’ aspect, but with a nice description/walkthrough
> submission
> >>>>>> details, maybe there is chance.. and tbh I have seen far far
> simplest apps
> >>>>>> accepted on their store.
> >>>>>>
> >>>>>>
> >>>>>> -
> >>>>>> Christos
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>
> >>>>>>> [1] -
> >>>>>>>
> >>>>>>
> https://github.com/aerogear/aerogear-otp-ios-demo/blob/5b23acbaf5c3cd7437...
> >>>>>>>
> >>>>>>>
> >>>>>>> On 2014-10-09, Matthias Wessendorf wrote:
> >>>>>>>
> >>>>>>>> On Thu, Oct 9, 2014 at 5:26 PM, Bruno Oliveira <
> bruno(a)abstractj.org>
> >>>>>> wrote:
> >>>>>>>>
> >>>>>>>>> On 2014-10-09, Matthias Wessendorf wrote:
> >>>>>>>>>> On Thu, Oct 9, 2014 at 4:57 AM, Bruno Oliveira <
> bruno(a)abstractj.org
> >>>>>>>
> >>>>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>>> Good morning,
> >>>>>>>>>>>
> >>>>>>>>>>> TOTP was implemented on AeroGear for iOS[1] and Android[2] two
> >>>>>> years
> >>>>>>>>>>> ago. On conferences most of the developers get amazed with our
> API.
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> It's always great feedback when I show the OTP demo. Attendees
> at
> >>>>>>>>>> conferences love it!
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Although we don't have any app published on Google Play or App
> >>>>>> Store. I
> >>>>>>>>>>> think it's time to release our demos and get some feedback
> from our
> >>>>>>>>>>> community.
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> with release, what do you mean? Submit to the stores?
> >>>>>>>>>> On Apple one reason we never submitted anything to their App
> Store
> >>>>>> is
> >>>>>>>>> their
> >>>>>>>>>> rules clearly indicate no demos are allowed in there.
> >>>>>>>>>
> >>>>>>>>> I understand, it can be a real and non paid app. Once it does not
> >>>>>> depends
> >>>>>>>>> on
> >>>>>>>>> internet connection at this moment.
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>> isn't the iOS OTP "demo" connecting to a JAX-RS backend for the
> >>>>>> tokens?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Into this way we can exercise things like:
> >>>>>>>>>>>
> >>>>>>>>>>> - Properly store the shared secret
> >>>>>>>>>>> - Password protection with offline authentication
> >>>>>>>>>>> - If we are very confident, sync the TOTPs across authorized
> >>>>>> devices
> >>>>>>>>>>>
> >>>>>>>>>>> At the moment, we don't need to do so much once most of our
> demos
> >>>>>> are
> >>>>>>>>>>> already on GH.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> The only thing is perhaps making sure the backend part of our
> OTP
> >>>>>> demo is
> >>>>>>>>>> (always) up :)
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> I think it's just the matter of release it.
> >>>>>>>>>>>
> >>>>>>>>>>> Thoughts?
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> I like giving these nice demos, and their used AeroGear
> technology,
> >>>>>> some
> >>>>>>>>>> more love and visibility.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> [1] - https://github.com/aerogear/aerogear-otp-ios-demo
> >>>>>>>>>>> [2] - https://github.com/aerogear/aerogear-otp-android-demo
> >>>>>>>>>>>
> >>>>>>>>>>> --
> >>>>>>>>>>>
> >>>>>>>>>>> abstractj
> >>>>>>>>>>> PGP: 0x84DC9914
> >>>>>>>>>>> _______________________________________________
> >>>>>>>>>>> aerogear-dev mailing list
> >>>>>>>>>>> aerogear-dev(a)lists.jboss.org
> >>>>>>>>>>> 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
> >>>>>>>>>> aerogear-dev(a)lists.jboss.org
> >>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>>
> >>>>>>>>> abstractj
> >>>>>>>>> PGP: 0x84DC9914
> >>>>>>>>> _______________________________________________
> >>>>>>>>> aerogear-dev mailing list
> >>>>>>>>> aerogear-dev(a)lists.jboss.org
> >>>>>>>>> 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
> >>>>>>>> aerogear-dev(a)lists.jboss.org
> >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>>
> >>>>>>> abstractj
> >>>>>>> PGP: 0x84DC9914
> >>>>>>> _______________________________________________
> >>>>>>> aerogear-dev mailing list
> >>>>>>> aerogear-dev(a)lists.jboss.org
> >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> aerogear-dev mailing list
> >>>>>> aerogear-dev(a)lists.jboss.org
> >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >>>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> aerogear-dev mailing list
> >>>>> aerogear-dev(a)lists.jboss.org
> >>>>> 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
> >>>> aerogear-dev(a)lists.jboss.org
> >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >>>>
> >>
> >>> _______________________________________________
> >>> aerogear-dev mailing list
> >>> aerogear-dev(a)lists.jboss.org
> >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >>
> >>
> >> --
> >>
> >> abstractj
> >> PGP: 0x84DC9914
> >> _______________________________________________
> >> aerogear-dev mailing list
> >> aerogear-dev(a)lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >>
> >> _______________________________________________
> >> aerogear-dev mailing list
> >> aerogear-dev(a)lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
--
--
"The measure of a man is what he does with power" - Plato
-
@abstractj
-
Volenti Nihil Difficile
10 years, 11 months
Eating our own dog food, or TOTP demos for AeroGear
by Bruno Oliveira
Good morning,
TOTP was implemented on AeroGear for iOS[1] and Android[2] two years
ago. On conferences most of the developers get amazed with our API.
Although we don't have any app published on Google Play or App Store. I
think it's time to release our demos and get some feedback from our
community.
Into this way we can exercise things like:
- Properly store the shared secret
- Password protection with offline authentication
- If we are very confident, sync the TOTPs across authorized devices
At the moment, we don't need to do so much once most of our demos are
already on GH. I think it's just the matter of release it.
Thoughts?
[1] - https://github.com/aerogear/aerogear-otp-ios-demo
[2] - https://github.com/aerogear/aerogear-otp-android-demo
--
abstractj
PGP: 0x84DC9914
10 years, 11 months