<div dir="ltr">Hi,<div><br></div><div>I noticed that the ctor, currently, takes the entire URL of the "registration" endpoint:</div><div><a href="https://github.com/secondsun/PushEEDemo/blob/master/src/com/example/pusheedemo/MainApplication.java#L23">https://github.com/secondsun/PushEEDemo/blob/master/src/com/example/pusheedemo/MainApplication.java#L23</a><br>
</div><div><br></div><div style>That's ok, for now. but I think that ideally the application specific part (here "/rest/registry/device") should not be exposed. It could be changed, by PushEE.</div><div style>
<br></div><div style>In the iOS SDK, we only "require" the URL + the name of the servlet context.</div><div style><br></div><div style>For instance:</div><div style><a href="https://github.com/aerogear/aerogear-push-ios-registration/blob/master/push-sdkTests/AGDeviceRegistrationSpec.m#L47">https://github.com/aerogear/aerogear-push-ios-registration/blob/master/push-sdkTests/AGDeviceRegistrationSpec.m#L47</a><br>
</div><div style>(from a "mocked" test)</div><div style><br></div><div style>So the SDK internally appends the "rest/registry/device":</div><div style><a href="https://github.com/aerogear/aerogear-push-ios-registration/blob/master/push-sdk/AGDeviceRegistration.m#L71">https://github.com/aerogear/aerogear-push-ios-registration/blob/master/push-sdk/AGDeviceRegistration.m#L71</a><br>
</div><div style><br></div><div style>Would you think this is good for the Android-SDK as well ? </div><div style><br></div><div style><br></div><div style>Greetings.</div><div style>Matthias</div><div style><br></div><div>
<div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>