2019-09-26 18:02:25.464 30047-30047/it.geosolutions.savemybike E/SaveMyBikeActivity: Can not update firebase token for this Device
java.lang.Throwable: 500 Internal Server Error
at it.geosolutions.savemybike.data.server.RetrofitClient$2.onResponse(RetrofitClient.java:231)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:70)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
I've tested the method and it works correctly from Postman. Just call the method with:
my-devices/<registration_id>/
NOTICE: The registration_id must be included in the PUT body too
The curl call is
but when called from the app (Android) I get:
This fixes https://github.com/geosolutions-it/smb-portal/issues/206