On Wed, Mar 5, 2014 at 3:55 PM, Daniel Passos <daniel@passos.me> wrote:
Hi Sebi,

I not sure if we really need this, because we already have an example very close of it on ag.org,
If think it can not hurt to have these snippets integrated in the UPS Console pre-filled with the "in context" values and in both time having our classic documentation. What I can do is add a link to our doc under the snippet.
 
btw on Android snippet you are using MainActity, but your class is an Application and missed "Category" Gist fixed => https://gist.github.com/danielpassos/f7e6e4b723d71c4c56e9 
Thx for the MainActivity, (bad copy paste ;) ) and I  did not add Category and alias since they are optional , I just want the mandatory data for the snippets
 


On Tue, Mar 4, 2014 at 2:09 PM, Sebastien Blanc <scm.blanc@gmail.com> wrote:
Hi,

I've started to work on AGPUSH-550  where the idea is to generate Device Registration code Snippets that the user can copy/paste into his client application.

The flow is quite simple : he chooses a Variant, then click a link on the right that brings you to the Snippets page. 
Since  the console knows the type of the selected variant, the appropriate  snippet is generated ... Yes "generated" , that means it's not a static code snippet but it's actually filled with the needed info : UPS Server URL, Variant ID, Variant Secret, SenderId (for Android).

For each code snippet, there also the Cordova version for it. So, if you choose an Android variant for instance you will have : 

Inline image 1 

And as you can see,  there is also a link to cordova : 

Inline image 2

This is still work in progress, needs polishing etc ... But once we got this, it will be really easy for a new user to get started. All the variants type are covered : iOS, Android and SPS

Oh, want to test it live ? Give it a try here : https://newpush-sblanc.rhcloud.com/ (admin / 123)

I will probably PR that very soon, in the same time you can check this branch https://github.com/sebastienblanc/aerogear-unified-push-server-admin-ui/tree/AGPUSH-550 if you want to play with it locally.

See you ! 
Sebi


 


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev