Closed SebastianSingle99 closed 7 years ago
Did you configure FCM Cloud messaging credentials ?
yes. The problem is in class MFPPushInvoker
.
@Override
public void onSuccess(Response response) { logger.debug("MFPPushInvoker.onSuccess() - Success response in invoker is: "+ response.toString()); responseListener.onSuccess(response); }
The response gets logged here and afterwards the response is null, because you can call methods like getResponseText
or getResponseJSON
just once as documented in the Response
class.
@SebastianSingle99 add the following in build.gradle(Module:app)
compile 'com.ibm.mobilefirstplatform.clientsdk.android:core:2.2.7'
This doesn't solve the problem. At the moment i have to include this lib as local module and comment out the log-statement and everything works.
We will give the fix soon @SebastianSingle99
I'm trying to register a device via
registerDeviceWithUserId(deviceId, new MFPPushResponseListener<String>() {...
The classMFPPushInvoker
receives the correctsenderId
in itsonSuccess
listener. But afterwards the listener ingetSenderIdFromServerAndRegisterInBackground
receivces an empty response-object and the complete register-process has failed. Any ideas?